You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by Matthew Oatham <ma...@hotmail.com> on 2003/05/06 14:31:35 UTC

Help DOCTYPE stuff

Hi,

I would like to know what the following element is called in an x,l document 
and how I can retrieve this from a DOM.

<?xml version="1.0" encoding="UTF-8"?>

Thanks.

Matt





_________________________________________________________________
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger


---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Re: Help DOCTYPE stuff

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Matthew Oatham wrote:
> I would like to know what the following element is called in an x,l 
> document and how I can retrieve this from a DOM.
> 
> <?xml version="1.0" encoding="UTF-8"?>

This is the XML declaration:
   http://www.w3.org/TR/REC-xml#sec-prolog-dtd

You can't retrieve it from a DOM as such (DOM3 allows retrieving
the values for the standardized pseudo-attributes).

J.Pietschmann



---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org