A
Adam Tauno Williams
Say I have an XML document that begins with:
<?xml version="1.0" encoding="utf-8"?>
<dsml:dsml xmlns:dsml="http://www.dsml.org/DSML">
....
How can one access the namespaces define in this node? I've done a fair
amount of XML in Python, but haven't been able to uncover the call to
enumerate the namespaces.
Primarily I am using etree from lxml.
<?xml version="1.0" encoding="utf-8"?>
<dsml:dsml xmlns:dsml="http://www.dsml.org/DSML">
....
How can one access the namespaces define in this node? I've done a fair
amount of XML in Python, but haven't been able to uncover the call to
enumerate the namespaces.
Primarily I am using etree from lxml.