KissXML
KissXML copied to clipboard
no support for initWithData option NSXMLDocumentTidyXML
actually there is no tidy support :) AFAIK
i would 'fix this' by incorporating libtidy into KissXML -- but only if we build for iPhone
#if TARGET_OS_IPHONE if (mask & DDXMLDocumentTidyHTML) { data = [[CTidy tidy] tidyData:data inputFormat:TidyFormat_HTML outputFormat:TidyFormat_XHTML diagnostics:NULL error:&theError]; } else if (mask & DDXMLDocumentTidyXML) { data = [[CTidy tidy] tidyData:data inputFormat:TidyFormat_XML outputFormat:TidyFormat_XML diagnostics:NULL error:&theError]; } #endif
fixed in pull request
Excuse me but i really can not understand the solution ! I'm a beginner and would be very grateful if you could explain what exactly should i do ? I really need to to fix this but i don't even understand the code... Thanks for your help!
hi, the KissXML has no tidy support and thus behaves differently than NSXMLDoc.... On OSX I therefore embedded CTidy
also I added the ability to falling to html parsing mode as this seems to be NSXMLDoc..'s way
https://github.com/robbiehanson/KissXML/pull/18
Thank you very much...