Questions tagged [nsxmlnode]

Objects of the NSXMLNode class are nodes in the abstract, logical tree structure that represents an XML document. Node objects can be of different kinds, corresponding to the following markup constructs in an XML document: element, attribute, text, processing instruction, namespace, and comment. In addition, a document-node object (specifically, an instance of NSXMLDocument) represents an XML document in its entirety.

7 questions
2
votes
2 answers

Getting an attribute value from an XML node in Swift

I am trying to get the value of an attribute in an XML Node in swift. The following is a code example. I don't see any way of getting the value as no properties or methods seem to allow for this. for word in dictionary.words { let xpath =…
doodle
  • 47
  • 7
2
votes
1 answer

Swift: Creating an NSXMLNode

I'm trying to create an NSXMLNode using Swift. This seems like it should be pretty straightforward based on the class reference (and Xcode's autocompletion): var anAttribute: NSXMLNode = NSXMLNode.attributeWithName("name", stringValue:…
Mike
  • 227
  • 2
  • 5
2
votes
2 answers

Compare two XMLNodes in C (libxml library)

I'm parsing some xml files in C using libxml library. I want to compare two xmlnodes to see whether they contain the same data or not. Is there any function available to do so?
Saba Jamalian
  • 750
  • 2
  • 10
  • 24
1
vote
0 answers

Add a new NSXMLElement to an existing NSXMLDocument

I have following NSXMLDocument: 1234 Now I would like to add another NSXMLElement directly behind the first…
3ef9g
  • 781
  • 2
  • 9
  • 19
1
vote
0 answers

nsarraycontroller and bindings: how to debug?

I have an NSXMLNode containing a series of child node and I would like to show the attribute of those child nodes in an NSTableView using NSArrayController and bindings. I'm new to NSArrayControllers and bindings so I decided to start by populating…
Jacopo
  • 1,031
  • 2
  • 12
  • 25
0
votes
1 answer

Spring Exception in thread "main" java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.clearCache()V

I am new in spring and I am trying to construct the object using Spring Container which shall parse my XML file, so I have one .xml and two .java class. Spring version 5.1.0 I was looking into similar solution but some are maven solution not for…
Rito Sarkar
  • 35
  • 1
  • 8
-2
votes
1 answer

How to implement a swift code to generate xml file

well i've tried to do some code that can do a xml file in a "well done" way, I found this code https://gist.github.com/brentdax/caaaa134c500e00efd36 and i think is a good option to implement that i wish. but i can implementa that. actually i…
jhuazano
  • 31
  • 4