Skip to content

Instantly share code, notes, and snippets.

@netmanchris

netmanchris/XML

Last active Aug 29, 2015
Embed
What would you like to do?
>>> x = '''<device>
<id>116</id>
<label>Cisco2811.haw.int</label>
<ip>10.101.0.1</ip>
<mask>255.255.255.0</mask>
<status>1</status>
<statusDesc>Normal</statusDesc>
<sysName>Cisco2811.haw.int</sysName>
<contact>changed this too</contact>
<location>changed this too</location>
<sysOid>1.3.6.1.4.1.9.1.576</sysOid>
<sysDescription></sysDescription>
<devCategoryImgSrc>router</devCategoryImgSrc>
<topoIconName>iconroute</topoIconName>
<categoryId>0</categoryId>
<symbolId>1147</symbolId>
<symbolName>Cisco2811.haw.int</symbolName>
<symbolType>3</symbolType>
<symbolDesc></symbolDesc>
<symbolLevel>2</symbolLevel>
<parentId>1</parentId>
<typeName>Cisco 2811</typeName>
<mac>00:1b:d4:47:1e:68</mac>
<link op="GET" rel="self" href="http://10.3.10.220:8080/imcrs/plat/res/device/116"/>
</device>'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.