• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSXMLParser Round-Tripping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSXMLParser Round-Tripping
      • From: The Amazing Llama <email@hidden>
  • Prev by Date: Swapping the NSTextContainer on an NSTextView
  • Next by Date: Re: Cocoa/Windows parallel dvlpmt
  • Previous by thread: Re: Swapping the NSTextContainer on an NSTextView
  • Next by thread: Re: NSXMLParser Round-Tripping
  • Index(es):
    • Date
    • Thread