Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

no support for initWithData option NSXMLDocumentTidyXML #17

Open
Daij-Djan opened this Issue · 7 comments

2 participants

@Daij-Djan

actually there is no tidy support :) AFAIK

@Daij-Djan

i would 'fix this' by incorporating libtidy into KissXML -- but only if we build for iPhone

@Daij-Djan

#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

@Daij-Djan

fixed in pull request

@Zer007

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!

@Daij-Djan

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
@Daij-Djan Daij-Djan reopened this
@Zer007

Thank you very much...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.