Re: I can't fetch dom node in svg file with getElementById method (module minidom and libxml2dom)

2008-08-25 Thread Paul Boddie
On 25 Aug, 14:56, KLEIN Stéphane <[EMAIL PROTECTED]> wrote: > [DOM implementations, identifiers and validation] > Thanks ! It work. I've since updated libxml2dom to support validation and provide a more reliable getElementById method. Unfortunately, I can't seem to make the example document vali

Re: I can't fetch dom node in svg file with getElementById method (module minidom and libxml2dom)

2008-08-25 Thread KLEIN Stéphane
Le Mon, 25 Aug 2008 04:30:00 -0700, Paul Boddie a écrit : >> Well, my final purpose isn't to fetch root dom node but to fetch many >> other sub node. > > You could always try using an XPath expression: > > node = (dom2.xpath("//[EMAIL PROTECTED]'svg2383']") or [None])[0] > > Similar things co

Re: I can't fetch dom node in svg file with getElementById method (module minidom and libxml2dom)

2008-08-25 Thread Paul Boddie
On 25 Aug, 11:43, KLEIN Stéphane <[EMAIL PROTECTED]> wrote: > Hi, > > I've a xml svg file and I would like to update it with Python. > > First, I would like to fetch one dom node with getElementByID. I've one > issue about this method. [SVG file with id attribute on svg element] > In [1]: from xm

I can't fetch dom node in svg file with getElementById method (module minidom and libxml2dom)

2008-08-25 Thread KLEIN Stéphane
Hi, I've a xml svg file and I would like to update it with Python. First, I would like to fetch one dom node with getElementByID. I've one issue about this method. This is my example : My SVG file : """ http://purl.org/dc/elements/1.1/"; xmlns:cc="http://creativecommons.org/ns#"; xmln