[XML-SIG] DOM Extension Proposal

Paul Prescod paul@prescod.net
Fri, 23 Jun 2000 10:30:46 -0500

Walter Doerwald wrote:
> ...
> But this could be easily built on top of a parser that delivers the
> attribute value as a plain string, simply call the parser again with
> the attribute value string. The problem is keeping the correct namespace
> context.

Very few parsers return attribute values as plain strings and arguably
they would be in violation of the XML spec....unless it were an option
you could turn off it would be really annoying. Attempting to get the
exact string representation of an XML document is swimming against the
tide defined in the XML spec. That could be interpreted as a flaw in XML
but it doesn't really matter. If you try it, it's going to be really,
really painful...even with sgmlop/xmllib. (try getting the attributes in
the right order...)

 Paul Prescod  - ISOGEN Consulting Engineer speaking for himself
Out of timber so crooked as that which man is made nothing entirely
straight can be built. - Immanuel Kant