• 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
preserving newline and whitespaces while using NSXmlDocumentTidyXML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

preserving newline and whitespaces while using NSXmlDocumentTidyXML


  • Subject: preserving newline and whitespaces while using NSXmlDocumentTidyXML
  • From: aashish tiwari <email@hidden>
  • Date: Tue, 17 Oct 2006 10:33:06 +0100 (BST)

I have an issue in my cocoa application, when i
initialize an NSXmlDocumet from an NSString all the
newlines does not apper in the xmldocument.

the code is like this...

NSXMLDocument *xmlDoc = [[NSXMLDocument alloc]
initWithXMLString:httpResponse
options:NSXMLDocumentTidyXML error:&err];

where httpResponse is an NSMutableString.

when i use NSXmlDocumentTextKind, the above conversion
does not work for malformed xml.

i want to preserve newlines while using
NSXmlDocumentTidyXML, what should i do?
please help me.

Thanks
Aashish



__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/
 _______________________________________________
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

  • Prev by Date: Re: multi-threading, AppKit etc
  • Next by Date: Re: multi-threading, AppKit etc
  • Previous by thread: Re: keypress events + responder chain
  • Next by thread: Re: Excluding non-export file types from the Export dialog.
  • Index(es):
    • Date
    • Thread