Microsoft
Software
Hardware
Network
Question : parse xml with python
i need to read in an xml file and find several attributes in it. For example i need to get the ip address and service name IIS Admin out of this xml:
...
/>
...
....
Answer : parse xml with python
you should use a XML parser, eg PyXML. However, if your request is just extract these 2 information, just simple string manipulation will do
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
for line in open("xmlfile"): if "" in line: f=1 if f : if "
Open in New Window
Select All
Random Solutions
Can't resize a spredsheet window.
Synchronize table structures accords schemas
How to connect to database using Vbscript?
Does AJAX request go thru full Javascript page cycle (onload, onunload, etc)?
Internet link on desktop using GPO in Server 2003
wav to mp3
bypass login screen on intranet app LDAP authentication VB.Net
Using the keyboard in unix
Ruby - Match/No Match
Drop failed for User 'VRN\kaluk'. (Microsoft.SqlServer.Smo)