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?
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?