You are viewing a plain text version of this content. The canonical link for it is here.
Posted to p-dev@xerces.apache.org by Igor Tsives <ig...@actiweb.com> on 2002/04/14 10:39:16 UTC

XML Decl ???

Hello,
 
I was wandering why 
 
XML::Xerces::DOMParse::print (\*STDOUT, $doc); 
 
is not printing out a declaration line 
 
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
 
 
I am using Xerces version 1.7.0 on linux
 
 
Thank you.
__________ 
Igor Tsives 
AIM: IgTsvi 
  
 

Re: XML Decl ???

Posted by "Jason E. Stewart" <ja...@openinformatics.com>.
"Igor Tsives" <ig...@actiweb.com> writes:

> I was wandering why 
>  
> XML::Xerces::DOMParse::print (\*STDOUT, $doc); 
>  
> is not printing out a declaration line 
>  
> <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
>  
> I am using Xerces version 1.7.0 on linux

Hi Igor,

Yes, this behavior is new for 1.7. The issue is that I converted the
DOM to use Xerces' new IDOM implementation, and IDOM provides no
XML_Decl nodes in it's heirarchy, so when the document is serialized,
it is not there. 

I guess I should change the code to print one out manually.

jas.

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