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
Microsoft Briefcase
Get Stored Procedure's Return Schema
Remote Viewing
Replace Harddisk in Software RAID - 2003
Installing OCX (EasyInk) for IE Mobile on Windows Mobile 5 PDS
Create and deploy a web service in borland builder c++ 10
modify output of del command
How to push a ghost image to a newly built raid 1 system?
EventID 1030 + 1058
Disabling Outlook Security to connect outlook from my java application