minidom

Empty lines while using minidom.toprettyxml

Empty lines while using minidom.toprettyxml Question: I’ve been using a minidom.toprettyxml for prettify my xml file. When I’m creating XML file and using this method, all works grate, but if I use it after I’ve modified the xml file (for examp I’ve added an additional nodes) and then I’m writing it back to XML, I’m …

Total answers: 7

XML Parsing: Element Tree (etree) vs. minidom

XML Parsing: Element Tree (etree) vs. minidom Question: I’ve been using minidom to parse XML for years. Now I’ve suddenly learned about Element Tree. My question which is better for parsing? That is: Which is faster? Which uses less memory? Do either have any O(n^2) dependencies I should worry about? Is one being depreciated in …

Total answers: 2

Using Python to scrape DataSet and Query data from RDL

Using Python to scrape DataSet and Query data from RDL Question: I set out today with the intent to parse an SSRS RDL file (XML) using Python in order to gather the DataSet and Query data. A recent project has me back tracking on a variety of reports and data sources with the intention of …

Total answers: 1

Get Element value with minidom with Python

Get Element value with minidom with Python Question: I am creating a GUI frontend for the Eve Online API in Python. I have successfully pulled the XML data from their server. I am trying to grab the value from a node called “name”: from xml.dom.minidom import parse dom = parse(“C:\eve.xml”) name = dom.getElementsByTagName(‘name’) print name …

Total answers: 9