I am using dart/Flutter package xml 6.5.0 to parse xml documents. Parsing content with
element.findElements("content").first.innerText
gives my the content, but xml formatting is lost. I would like to keep the xml formatting (at least linebreaks ). Is that possible?
The answer is to replace innerText with innerXml in the code snippet; ie.
findElements("content").first.innerXml