Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looking for best XML module to use

Status
Not open for further replies.

bluedragon2

IS-IT--Management
Joined
Jan 24, 2003
Messages
2,642
Location
US
I am looking for what xml module or best means for extracting the following information from the xml example:

I want to get:

Time: 1182263591000
Source: D1N232
Value: TRUNK DOWN

Out of:

<?xml version="1.0" encoding="UTF-8"?>
<eventRootTag xmlns:xsi="<source>D1N232</source>
<name>IdnxAlarmActiveTrap</name>
<altName>4 3</altName>
<time>1182263591000</time>
<recTime>1182263560957</recTime>
<formatVersion>1</formatVersion>
<details>
<detail>
<key>idnxNodeAlarmSummaryPreviousChecksum</key>
<value>59676</value>
</detail>
<detail>
<key>idnxAlarmLogTimesTriggered</key>
<value>1</value>
</detail>
<detail>
<key>idnxAlarmLogDeviceId</key>
<value>D1N232C28</value>
</detail>
<detail>
<key>idnxAlarmLogFirstSSE</key>
<value>1182263591</value>
</detail>
<detail>
<key>idnxAlarmLogEventSubtype</key>
<value>3</value>
</detail>
<detail>
<key>idnxAlarmLogIndex</key>
<value>1</value>
</detail>
<detail>
<key>idnxAlarmLogNetworkSignificant</key>
<value>false</value>
</detail>
<detail>
<key>idnxAlarmLogDescriptionText</key>
<value>TRUNK DOWN</value>
</detail>
<detail>
<key>idnxAlarmLogEventType</key>
<value>4</value>
</detail>
<detail>
<key>idnxAlarmLogNodeNumber</key>
<value>232</value>
</detail>
<detail>
<key>idnxNodeAlarmSummaryCurrentChecksum</key>
<value>941</value>
</detail>
<detail>
<key>idnxAlarmLogDomainNumber</key>
<value>1</value>
</detail>
<detail>
<key>idnxNodeConfigNodeName</key>
<value>PATCF232</value>
</detail>
<detail>
<key>idnxAlarmLogLastSSE</key>
<value>1182263591</value>
</detail>
<detail>
<key>idnxAlarmLogSeverityLevel</key>
<value>criticalAlarm</value>
</detail>
<detail>
<key>idnxAlarmLogEventTypeText</key>
<value>LINK</value>
</detail>
</details>
</eventRootTag>

Thanks

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
You can search CPAN for an XMP module, or u can read in the file and grep for Time source & value.
 
It is not a file, it is a feed coming in. I have looked at xml:parser, and it may be what I am looking for.

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top