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
0
votes
1 answer

Create nsxmlobject iOS for xml response,

I am working on the chat application and at one place i need to create nsxmlobject which has the xml structure as desired. ios code i used for the simple xml. NSString* server = @"conference.server.local"; //or whatever the server address for muc…
Satish
  • 1,012
  • 2
  • 15
  • 32
0
votes
1 answer

How to get attribute values inside an XmlElement?

I have an XmlElement containing this data: :d
Darf Zon
  • 6,268
  • 20
  • 90
  • 149
0
votes
1 answer

php - xml data parsing

I am working on getting some xml data into a php variable so I can easily call it in my html webpage. I am using this code below: $ch = curl_init(); $timeout = 5; $url =…
Bryce
  • 447
  • 2
  • 9
  • 24
0
votes
1 answer

Inserting NSXMLElement/Child at top of document

This inserts a new element and child at the very bottom of the doc within the "main" root: NSXMLElement *root = [[xmlDoc rootElement] initWithName:@"main"]; NSXMLElement *firstElement = [[NSXMLElement alloc] initWithName:@"first"]; …
Paul
  • 189
  • 10
0
votes
1 answer

Filtering out BOM characters from an NSXMLDocument

The stringValue of some elements from an XML files contain BOM characters in them. The xml file is marked as UTF-8 encoding. Some of those characters are at the beginning of the string (as it should be from what I read about it) but some are in the…
Didier Malenfant
  • 729
  • 1
  • 10
  • 25
0
votes
1 answer

NSXMLNode variable name not found

Strange error here.... For this piece of code: NSXMLNode *root = [[ads_user_defined_manufacturer_model objectAtIndex:i] parent]; NSXMLNode *make = [root childAtIndex:0]; First line returns an error "Unused variable root", second line returns an…
Kevin
  • 1,469
  • 2
  • 19
  • 28
0
votes
1 answer

Cocoa replacing XMLElements

If I have the following example code: NSXMLDocument* doc = [[NSXMLDocument alloc] initWithContentsOfURL: [NSURL fileURLWithPath:@"file2.xml"] options:0 error:NULL]; NSXMLElement* root = [doc rootElement]; NSArray* objectElements = [root…
Kevin
  • 1,469
  • 2
  • 19
  • 28
0
votes
1 answer

Writing to XML in Cocoa

is it possible to write to an XML file that I've read from without using an external library ? I have read about writing using things KissXML, but I would like to write without anything extra. So if I have an NSXMLElement or an NSXMLDocument in…
Kevin
  • 1,469
  • 2
  • 19
  • 28
1 2
3