You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I have a question
When I parse an e-book, I get a mass of XML files
Then I do as in your example and combine everything in one line
let document = try AEXMLDocument (xml: data)
var parsedText = String ()
// parse unknown structure
for child in document.root.children {
parsedText + = child.xml + "\ n"
}
After that I get one long line of code, realizing that this is XML, how can I convert it to HTML to display it in the WebView, or how to convert it to tex to display it in TextView?
The text was updated successfully, but these errors were encountered:
Hello!
I have a question
When I parse an e-book, I get a mass of XML files
Then I do as in your example and combine everything in one line
let document = try AEXMLDocument (xml: data)
var parsedText = String ()
// parse unknown structure
for child in document.root.children {
parsedText + = child.xml + "\ n"
}
After that I get one long line of code, realizing that this is XML, how can I convert it to HTML to display it in the WebView, or how to convert it to tex to display it in TextView?
The text was updated successfully, but these errors were encountered: