• 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
Re: Parsing XML Files Consisting of a Sequence of Top Level Elements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parsing XML Files Consisting of a Sequence of Top Level Elements


  • Subject: Re: Parsing XML Files Consisting of a Sequence of Top Level Elements
  • From: Thomas Wetmore <email@hidden>
  • Date: Sun, 21 Oct 2012 16:18:02 -0400

Doing it programmatically is trivial so I'll stick with it.

Tom Wetmore, CBW, DeadEnds Software

On Oct 21, 2012, at 6:50 AM, Thomas Wetmore wrote:

> I am using NSXMLDocument to parse XML files. Some of the files are not legal XML because they contain a sequence of top level elements (legal XML must have a unique root element).
>
> Currently I handle this issue by programmatically adding a root element to surround the entire file before parsing. This seems ugly and heavy-handed.
>
> Is there a way to easily parse an XML file consisting of a sequence of top level elements? I don't actually need the NSXMLDocument object for anything. If there were an easy way to parse the files to an array of NSXMLElements it would be fine.
>
> Thanks,
>
> Tom Wetmore


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Parsing XML Files Consisting of a Sequence of Top Level Elements (From: Thomas Wetmore <email@hidden>)

  • Prev by Date: Re: Parsing XML Files Consisting of a Sequence of Top Level Elements
  • Next by Date: Re: Parsing XML Files Consisting of a Sequence of Top Level Elements
  • Previous by thread: Re: Parsing XML Files Consisting of a Sequence of Top Level Elements
  • Next by thread: Re: Parsing XML Files Consisting of a Sequence of Top Level Elements
  • Index(es):
    • Date
    • Thread