[XML-SIG] 'searching' XML documents to extract 'chunks' of XML

Tony McDonald tony.mcdonald@ncl.ac.uk
Fri, 12 Mar 1999 10:36:51 +0000


>
> from xml.dom import utils
> reader = utils.FileReader('foo.xml')
> reader.document is then the root of the DOM tree. 

There doesn't seem to be a utils.py in the DOM distribution of XML-0.5...

47 % tar ztf xml-0.5.tar.gz | grep dom
xml-0.5/demo/dom/
xml-0.5/demo/dom/building.py
xml-0.5/demo/dom/domconv.py
xml-0.5/demo/dom/html2html
xml-0.5/dom/
xml-0.5/dom/.writer.py.swp
xml-0.5/dom/README
xml-0.5/dom/__init__.py
xml-0.5/dom/builder.py
xml-0.5/dom/core.py
xml-0.5/dom/esis_builder.py
xml-0.5/dom/html_builder.py
xml-0.5/dom/sax_builder.py
xml-0.5/dom/transform.py
xml-0.5/dom/transformer.py
xml-0.5/dom/walker.py
xml-0.5/dom/writer.py
xml-0.5/test/test_dom.py
xml-0.5/test/output/test_dom
I worked-around it though, so I'm still on track for figuring out the 
nuances of Python, DOM and XSL a bit more....

Tone.
------
Dr Tony McDonald,  FMCC, Networked Learning Environments Project
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2