Possible to write XML reading code that will run on Python and IronPython?

LetBizRing

New Member
I am writing code to parse XML (actually, KML) files and load them to a database. I would like to run the code under either Python or IronPython.Unfortunately, I find that \[code\]xml.dom.minidom\[/code\] will not load under IronPython because it has a dependency on expat.py, which is not implemented on IronPython. I also tried using \[code\]try / except\[/code\] blocks to get an XML document object from either platform. Although I can obtain a document gracefully running under either platform the internal implementations of the documents are too different to write code that runs under either platform.Is there an XML parsing strategy that is compatible across Python and IronPython?
 
Back
Top