[
Lists Home |
Date Index |
Thread Index
]
John Cowan wrote:
>
>
> I'm confused. If the above is meant to be a WF XML document, it isn't.
> The tags of the root element have to be explicitly within the document
> entity -- an entity reference is not legal at top level. See
> production 1.
Er uh you sure John? I betcha most parsers accept it. The XML Spec
never did a good job of making up its mind whether it was defining the
pre-entity-expansion or post-entity-expansion infoset. The correct
solution is of course to discard all entities except numeric character
references, cf XML-SW. -Tim
|