J
Jan Danielsson
Hello all,
I guess this is a question for people who have written a parser.
Does an XML parser ever need to be recursive? I mean like:
&fo&bar;o;
I know this particular example is in the XML specs, and it says that
it will not happen. But are there some really wild constructions that
are allowed, that would require recurive parsing?
Like.. <tag <!-- Comment <tag2 attr="<fo&ou<!-- comment!
-->ml;o/>"></tag2> -->></tag>
Please, don't start taking that a part, I know all the errors in it.
However, what I want to demonstrate is the level of complexity I'm
wondering about. Any case where recursion is needed?
I guess this is a question for people who have written a parser.
Does an XML parser ever need to be recursive? I mean like:
&fo&bar;o;
I know this particular example is in the XML specs, and it says that
it will not happen. But are there some really wild constructions that
are allowed, that would require recurive parsing?
Like.. <tag <!-- Comment <tag2 attr="<fo&ou<!-- comment!
-->ml;o/>"></tag2> -->></tag>
Please, don't start taking that a part, I know all the errors in it.
However, what I want to demonstrate is the level of complexity I'm
wondering about. Any case where recursion is needed?