Mike
2004-10-13 15:18:48 UTC
Phew. Subject title kinda says it all really...
I am trying to parse an XML file, which contains multiple namespaces. Of
these, there is always a default namespace which contains (sometimes)
multiple scoped entities.
I know I cannot use GetElementsByTagName as this always returns nothing as
it cannot work with default namespaces. Does anyone know a workaround for
this?
My next workaround would be to develop a "find" function to recurse through
the DOM tree and return (as a collection of nodes) each node that matches
the name. Does anyone have a function to do this?
If I attempt to call objDOMDocument.setProperty - I cannot set an alias to
the default namespace as it contains multiple ":" characters! Therefore, I
cannot use .selectsinglenode as I cannot specify the alias to the default
namespace, because the default namespace contains colon characters, and this
is not allowed to be set using the setProperty property of the
DOMDocument50.
Any ideas are warmly welcomed.
Thakns in advance for your time!
Mike :)
I am trying to parse an XML file, which contains multiple namespaces. Of
these, there is always a default namespace which contains (sometimes)
multiple scoped entities.
I know I cannot use GetElementsByTagName as this always returns nothing as
it cannot work with default namespaces. Does anyone know a workaround for
this?
My next workaround would be to develop a "find" function to recurse through
the DOM tree and return (as a collection of nodes) each node that matches
the name. Does anyone have a function to do this?
If I attempt to call objDOMDocument.setProperty - I cannot set an alias to
the default namespace as it contains multiple ":" characters! Therefore, I
cannot use .selectsinglenode as I cannot specify the alias to the default
namespace, because the default namespace contains colon characters, and this
is not allowed to be set using the setProperty property of the
DOMDocument50.
Any ideas are warmly welcomed.
Thakns in advance for your time!
Mike :)