Tree markup parsing uses a markup parser that returns a tree of complex markup node data structures (which defaults reading from ‶standard input″):
import bj.xml.*; println (XmlTreeParser.parse ());
When tree markup parsing, the parsed document is a single data structure. For a short document the following would be the output:
<?xml version="1.0"?><doc><p>The text.</p></doc>
Beyond OmniMark | Sam Wilmott |
Slide 23 of 37 | www.wilmott.ca |