Dear Xerces-(DOM)-users,

I have a problem:

Can I identify ID or NMTOKEN attributes without validating the document? "Canonical XML", Section 2.1 "Data Model" states:

<SNIP URL="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; >
  The input octet stream MUST contain a well-formed
  XML document, but the input need not be validated.
  However, the attribute value normalization and entity
  reference resolution MUST be performed in accordance
  with the behaviors of a validating XML processor.
  As well, nodes for default attributes (declared in
  the ATTLIST with an AttValue but not specified) are
  created in each element. Thus, the declarations
  in the document type declaration are used to help
  create the canonical form, even though the
  document type declaration is not retained
  in the canonical form.
</SNIP>

I have to:

- make ID attribute normalisation
- resolve entity references
- detect default attributes

without javax.xml.parsers.DocumentBuilderFactory.setValidating(true)


Is this possible?

Best regards,
Christian






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to