From: drscrypt on
Is there an easy way to extract the node/element structure from an xml
file? Do I need to have an xml schema file for this or would it be
easier to get it from xml data file? (I can use tDom and could load the
whole file and iterate over the nodes I guess.)


DrS
From: tomk on
On Feb 5, 2:05 pm, drscr...(a)gmail.com wrote:
> Is there an easy way to extract the node/element structure from an xml
> file?  Do I need to have an xml schema file for this or would it be
> easier to get it from xml data file?  (I can use tDom and could load the
> whole file and iterate over the nodes I guess.)
>
> DrS

No, you don't have to have a schema file. I would recommend using the
tDom package to work with xml (and/or html). You can find it and other
packages for working with xml in the ActiveState teapot repository.
tomk