preserving newline and whitespaces while using NSXmlDocumentTidyXML

  • 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/
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today