You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Anthony Dodd <An...@synergy-fs.com> on 2001/03/23 10:16:13 UTC

DTD Defauilt Values - Not being realised.

Hi

	I'm using xerces 1.2.0, I parse an xml document using DOMParser. The
xml document refers to a dtd which has default attributes and values defined
for many of the nodes in the xml document. The document is parsed
successfully. If I pick a particular node and call getAttributes() I can see
the default attributes applied to the node, so every thing appears to be OK.
But there are two problems ( it may be down to something I've done but as
far as I'm aware I just followed the documentation).

1. Using XMLSerialiser, I would expect to be able to see these default
attributes and values but they don't appear.
2. I tried using importNode() to effectively copy the document to a new
DeferredDocumentImpl , hoping this would realise the default attributes.
This merely copied what the XMLSerialiser had shown me.

	I assume what's happening is that the default attributes and values
are remaining deferred, is there any way I can force the document to realise
these attributes.

Regards 
Anthony Dodd  

--
     _/_/_/_/  _/   _/   _/    _/  _/_/_/_/  _/_/_/    _/_/_/   _/    _/
Anthony Dodd - Software Development   
   _/         _/  _/   _/_/  _/  _/        _/    _/  _/        _/  _/
Phone: +44 (0)115 9677990 
  _/_/_/_/    _/_/    _/ _/ _/  _/_/_/    _/_/_/    _/  _/_/   _/_/
Email: anthonydodd@synergy-fs.com 
       _/     _/     _/  _/_/  _/        _/    _/  _/   _/     _/
Synergy Financial Systems Limited 
_/_/_/_/     _/     _/    _/  _/_/_/_/  _/    _/   _/_/_/     _/ 



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org