All Questions
Tagged with xml python-2.x
8 questions
14
votes
2
answers
4k
views
O PC, why are you so slow?
In order to test some software I've written, I need to write values to a test harness with OLE for Process Control (OPC). The problem is, for a larger range of values I'm generating points for (say ...
13
votes
1
answer
205
views
#TODO Remove duplication in XML parsing
I have to modify the number of points in this XML in order to test the performance of another program of mine. Here is an example of the XML I have to modify.
performance.xml:
...
8
votes
1
answer
1k
views
Extending the functionality of lxml.etree
I wrote a class to slightly customize the behavior of lxml.etree.ElementTree and I use it quite extensively. It works great, but there are a few methods that I'm ...
7
votes
2
answers
6k
views
Parse and write data from/to a xml file
I recently started to learn Python for the purpose of making my life as a network engineer easier when performing repetitive tasks.
The script below does parse a huge inventory.xml file I get from a ...
7
votes
1
answer
859
views
Python XML parsing, extraction and renaming files
I've written some code to:
Parse an XML file.
Extract some strings.
Make copies of the original XML whose names are suffixed with the extracted strings.
Please review this.
...
4
votes
1
answer
17k
views
Extracting the text of a specific XML node
I have to extract friendlyName from the XML document.
Here's my current solution:
...
8
votes
2
answers
120
views
Comparing Server Version Number History
I have this code that compares all version numbers of servers. (The version numbers are stored in an XML file) Before the code would compare the current version number with the previous. This caused ...
3
votes
1
answer
4k
views
Reading a large XML file and parsing necessary elements into MySQLdb
I have fair concept in a programming (learner) but not an expert to refactor code at the highest level. I am trying to read a huge (100MB-2GB) XML file and parse necessary element (attributes) from a ...