NSXMLParser Round-Tripping
NSXMLParser Round-Tripping
- Subject: NSXMLParser Round-Tripping
- From: The Amazing Llama <email@hidden>
- Date: Tue, 3 Feb 2004 11:23:28 -0800
I'm playing around with NSXMLParser, and it seems to be unable to
round-trip[1] a full document. With the example that they use in the
header:
>
<?xml version="1.0" encoding="UTF-8"?>
>
<?xml-stylesheet type='text/css' href='cvslog.css'?>
>
<!DOCTYPE cvslog SYSTEM "cvslog.dtd">
>
<cvslog xmlns="http://xml.apple.com/cvslog">
>
<radar:radar xmlns:radar="http://xml.apple.com/radar">
>
<radar:bugID>2920186</radar:bugID>
>
<radar:title>API/NSXMLParser: there ought to be an
>
NSXMLParser</radar:title>
>
</radar:radar>
>
</cvslog>
I get a call to my delegate's
-parser:foundProcessingInstructionWithTarget:data: for the
xml-stylesheet PI, but no call to anything for the <?xml ... ?> PI.
Both are in the file's prolog, so I fail to understand why the first is
simply ignored. This seems an oversight on my part or a bug.
Am I just wrong and there's some other call I should be getting, or can
NSXMLParser not round-trip files?
[1] Take a document as input and output the exact same document as
output.
Seth A. Roby The Amazing Llama < mail or AIM me at tallama at mac dot
com>
"Life is like an exploded clown. It's really funny until you figure out
what just happened."
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.