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
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