Questions tagged [nsxmlelement]

Instances of the NSXMLElement class represent element nodes in an XML tree structure. An NSXMLElement object may have child nodes, specifically comment nodes, processing-instruction nodes, text nodes, and other NSXMLElement nodes. It may also have attribute nodes and namespace nodes associated with it.

38 questions
1
vote
1 answer

Get the value for xmlns from NSXMLElement iOS sdk

I am working on iOS application and i want to get the namespace of a nsxmlelement. my NSXMLElement *query has the following value in it.
Satish
  • 1,012
  • 2
  • 15
  • 32
1
vote
1 answer

Retrieving value from NSXMLElement

I'm trying to retrieve "number" from the below mentioned code. 4
DevCali
  • 398
  • 6
  • 20
1
vote
1 answer

Add node to existing XML document using DOm and PHP

I hope someone can help as this is driving me insane. I need to update an existing XML file using PHP. If the values in one of the nodes equals something, then I want to add a new child element with some text in it. Here is an example of the XML…
Daniel Lee
  • 367
  • 5
  • 20
1
vote
1 answer

NSXMLDocument writing to .xml

Does anyone know why the file doesn't format correctly on the line "< taskinprogress>" its the 9th line. It puts "< project>" on the same line as "< taskinprogress> and I have no clue why. I want the "< project>" to be moved to the next line…
MrHappyAsthma
  • 6,332
  • 9
  • 48
  • 78
1
vote
2 answers

Encoding Line Feed Characters in the value of a NSXMLElement's attribute

The comment field of an XML database I'm reading and writing is stored as the attribute of an NSXMLElement. One entry contains a line feed (0x0a) character. These are encoded by a non NSXML encoder in the document I'm parsing as and get parsed…
Didier Malenfant
  • 729
  • 1
  • 10
  • 25
0
votes
1 answer

How to get specific element string from element in XML?

I have this XML file and I want to fill my list with only article id and item_description value.
Mobitel Smasung
0
votes
1 answer

Why am i getting null in java from xml even though value is present in xml?

Im trying to build java object for xml by java code JAXBContext jaxbContext = JAXBContext.newInstance(Enfinity.class); Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller(); Enfinity enfinity = (Enfinity)…
pradeep murugan
  • 531
  • 1
  • 9
  • 18
0
votes
1 answer

How to make NSXMLDocument from filelist

I have a filelist like /Test/Demo1/Demo2/Demo3/demo.mp4 and want make XML document in Objective-C. I have a code for make NSMutableDictionary: -(NSMutableDictionary *)addFile:(NSString *)path toTree:(NSMutableDictionary *)tree { NSMutableDictionary…
Torokh
  • 33
  • 1
  • 8
0
votes
1 answer

How do we get field name if we have field as below. @XmlElement(required = true)

How do we get field name if we have field as below. @XmlElement(required = true) protected String code; If i try to get as: Field f = clazz.getDeclaredField(field); XmlElement xmlElement = f.getAnnotation(XmlElement.class); …
0
votes
2 answers

XMPP: How to parse XMPPMessage element

I'm getting the following xml format for every message coming from xmpp - (void)xmppStream:(XMPPStream *)sender didReceiveMessage:(XMPPMessage *)message { NSLog(@"Message %@",message); } In console its printing
Mahesh Narla
  • 342
  • 2
  • 3
  • 20
0
votes
2 answers

Need to add XML namespace prefix in only one XML element

I am trying to generate an XML with namespace prefix in one element out of few using XMLSerializer. Below is the code - var commRemision = new Contracts.Dtos.Remision(); Transformer transformedRequest = new Transformer(); commRemision =…
0
votes
1 answer

Swift NSXElement addChild unable to add sub child to child

I am in the process of learning Swift and want to create a xml file based on user input. I am able to create the document root and one child level but not sub child. I don't know what I am missing. And How do I "pretty print" to my xml? Example of…
Cat
  • 1
0
votes
0 answers

how to call functions inside xmlelement tag in oracle

I tried calling a function in following format and it did not work, is there a way to call a function inside xmlelement SELECT XMLElement( "routingentry" ,f_rout_en() )FROM dual
0
votes
1 answer

JAXB @XmlElement(name=..) same xmlElement with different name

Is it possible to have same @XmlElement with name that is not constant name? For example I want this: MyObject myObj = new MyObject("myName"); @XmlElement(name=myObj.getName()) public String elementItem; This code is not correct, but can I do…
0
votes
1 answer

Parsing NSXMLElement in ios7

I have "Yt itygvgy…