Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

no support for initWithData option NSXMLDocumentTidyXML #17

Open
Daij-Djan opened this Issue Jun 23, 2012 · 7 comments

Comments

Projects
None yet
2 participants

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

Zer007 commented Sep 3, 2012

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

@Daij-Djan Daij-Djan closed this Sep 3, 2012

@Daij-Djan Daij-Djan reopened this Sep 3, 2012

Zer007 commented Sep 3, 2012

Thank you very much...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment