Re: Issue with displaying URI prefixes on child elements using NSXML

2008-06-15 Thread Chris Suter
On 12/06/2008, at 6:54 PM, Nathan Kinsinger wrote: I'm curious about what using elementWithName:URI: is supposed to do when you don't pass a qualified name in, or rather, why have it at all? The URI seems to be redundant if you are already passing the qualified name in. Just as a test (f

Re: Issue with displaying URI prefixes on child elements using NSXML

2008-06-12 Thread Nathan Kinsinger
On Jun 12, 2008, at 12:48 AM, Chris Suter wrote: The documentation says that you need to pass the qualified name in. So you need to do: NSXMLElement *child = [NSXMLNode elementWithName:@"a:child" URI:@"http://www.tempurl.com "]; You can look-up the prefix using NSXMLElement’s resolvePre

Re: Issue with displaying URI prefixes on child elements using NSXML

2008-06-12 Thread Lawrence Johnston
It all makes sense now. Thanks. On Jun 11, 2008, at 11:48 PM, Chris Suter wrote: On 11/06/2008, at 3:19 PM, Lawrence Johnston wrote: Hey everybody, I've got an issue that I can't figure out. If I'm using this code: NSString *XMLForDisplay { NSXMLElement *root = [NSXMLNode elementWithName:

Re: Issue with displaying URI prefixes on child elements using NSXML

2008-06-11 Thread Chris Suter
On 11/06/2008, at 3:19 PM, Lawrence Johnston wrote: Hey everybody, I've got an issue that I can't figure out. If I'm using this code: NSString *XMLForDisplay { NSXMLElement *root = [NSXMLNode elementWithName:@"root"]; [root addNamespace:[NSXMLNode namespaceWithName:@"a" stringValue:@"http://

Issue with displaying URI prefixes on child elements using NSXML

2008-06-10 Thread Lawrence Johnston
Hey everybody, I've got an issue that I can't figure out. If I'm using this code: NSString *XMLForDisplay { NSXMLElement *root = [NSXMLNode elementWithName:@"root"]; [root addNamespace:[NSXMLNode namespaceWithName:@"a" stringValue:@"http://www.tempurl.com "]]; NSXMLElement *child = [NS