[XML-SIG] Structural view of XML files?
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Tue, 7 Nov 2000 21:21:09 +0100
> Well, I thought that would be enough to display a tree
> view, which is all I wanted. I thought there is no need
> for declaring or knowing about entities for such a simple
> tool, as they do not affect the parsing of the elements
> (or maybe IMHO they shouldn't).
The problem is that you can't know what an entity expands to. It could
expand to an element, in which case the parser should pull-in the
definition of the entity, and your tool may want to indent the
resulting text.
I assume that you want the entity reference "unprocessed" in the
output; XML parsers won't do that.
Regards,
Martin