Proper way to construct an Attribute NSXMLNode so that its prefix is included in its XMLString

2011-03-07 Thread Heath Borders
I have the following NSXMLDocument: document xmlns=http://example.com/document; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; /document I want to add an xsi:schemaLocation to the document so that I can validate it. The documentation says: attributeWithName:URI:stringValue: Returns an

Re: Proper way to construct an Attribute NSXMLNode so that its prefix is included in its XMLString

2011-03-07 Thread Matt Neuburg
Thus, I do the following: NSXMLElement rootXmlElement = ... NSXMLNode *schemaLocationAttributeXmlNode = [NSXMLNode attributeWithName:@schemaLocation URI:@xsi stringValue:@http://example.com/document document.xsd]; So, now, I tried specifying the prefix in the attribute name when creating the