I am trying to parse xliff which is a kind of xml for localization.
There will be elements like:
I use xmlsax to parse it and I cannot get the first text part "Styles like " in the _EndElement event.
The result using xml2map:
I try to use jsoup to parse it and it has the right result:
Is xmlsax wrapped correctly? I prefer to use xml2map which parses xml to map.
There will be elements like:
<g id="1">Styles like <g id="2">bold</g> is supported.</g>
I use xmlsax to parse it and I cannot get the first text part "Styles like " in the _EndElement event.
The result using xml2map:
B4X:
(MyMap) {g={Attributes={id=1}, g={Attributes={id=2}, Text=bold}}}
I try to use jsoup to parse it and it has the right result:
B4X:
(TextNode)
Styles like
(Element) <g id="2">
bold
</g>
(TextNode)
bold
(TextNode) is supported.
Is xmlsax wrapped correctly? I prefer to use xml2map which parses xml to map.