• 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: NSXMLParserErrorDomain 4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSXMLParserErrorDomain 4


  • Subject: Re: NSXMLParserErrorDomain 4
  • From: Steven LeMaire <email@hidden>
  • Date: Wed, 22 Feb 2006 21:41:05 -0500

Really simple. And it's definitely located in /

parsetest.xml
--------------------

<?xml version="1.0" encoding="UTF8">
<article author="Steven">
	<para> this is a short paragraph</para>
</article>


On 22-Feb-06, at 9:34 PM, Chris Parker wrote:


On Feb 22, 2006, at 6:23 PM, Steven LeMaire wrote:

I am getting this error trying to parse a simple xml doc.
Can someone provide more info, with what is going wrong ?

The xml file is local on my HD, it is very simple. The code is very simple.

NSString *filePath = @"/parsetest.xml";
NSURL *xmlURL = [NSURL fileURLWithPath:filePath];
NSXMLParser *myParser = [[NSXMLParser alloc] initWithContentsOfURL:xmlURL];


I set the delegate to self, send a message to parse, which returns a bool value of NO,
and get this error when I send a parserError message.

Well, error code 4 is NSXMLParserEmptyDocumentError - how simple is your document? :)


.chris

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSXMLParserErrorDomain 4
      • From: Andrew Farmer <email@hidden>
References: 
 >NSXMLParserErrorDomain 4 (From: Steven LeMaire <email@hidden>)
 >Re: NSXMLParserErrorDomain 4 (From: Chris Parker <email@hidden>)

  • Prev by Date: Re: NSXMLParserErrorDomain 4
  • Next by Date: - awakeFromFetch (Then Adding objects in a relationship)
  • Previous by thread: Re: NSXMLParserErrorDomain 4
  • Next by thread: Re: NSXMLParserErrorDomain 4
  • Index(es):
    • Date
    • Thread