W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2001

Re: XML version number via DOM

From: Americo Albuquerque <chainsword@altavista.com>
Date: 29 Mar 2001 05:18:51 -0800
Message-ID: <20010329131851.15319.cpmta@c012.sfo.cp.net>
To: pbwiz@PBWizard.com
Cc: www-DOM@w3.org
On Wed, 21 March 2001, "Jeff Yates" wrote:

> At the beginning of every XML document there is a <?xml version="1.0" ?>
> tag.  Is there a way to get this version number from within DOM?  I know at
> this time there is only one version number, but in the future there may be
> more.
I don't know if this has been replied to, have been way from email for a few days. never the less, here goes :)

when you open an xml file with var.open(...) it creates a #document node with at least two child nodes, the first one is the xml node that has is own actributes (one of wich is the version acttribute, sinse it has to be set) and the other is the root node (what ever it might be called). Has you can see the way to get the version is to get that attribute in the xml node has you would do with any other attribute.

Find the best deals on the web at AltaVista Shopping!
Received on Thursday, 29 March 2001 08:19:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:08 UTC