3 ms·
Wouldnt one obvious solution be to allow tags from different namespaces to overlap? Maybe it is mentioned in the article but I could not see it: <ns1:root>
by laszlokorte 4y ago
Wouldnt one obvious solution be to allow tags from different namespaces to overlap? Maybe it is mentioned in the article but I could not see it:
<ns1:root>
<ns2:root>
<ns1:elemA>This is some <ns2:mark>content</ns1:elemA>
<ns1:elemB>that is split</ns:mark> into two nodes</ns1:elemB>
</ns2:root>
</ns1:root>
Then in this case two trees with common leaf nodes (4 text nodes) are constructed.
From point of ns2-root there are only 3 children (the 2 next nodes outside <mark> and the <mark>) and from point fof ns1-root there are two children (elemA and elemB).
Then when parsing one could even pre-select which namespaces to parse and skip all other, for example if I am only interested in ns1, ns2 could be skipped during parsing.
- tingletech 4y agoparser error : Opening and ending tag mismatch
- layer8 4y agoYour proposal is very similar to SGML’s CONCUR feature mentioned in the Wikipedia article.