[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [hobbit] XML Parsing
- To: "'hobbit (at) hswn.dk'" <hobbit (at) hswn.dk>
- Subject: RE: [hobbit] XML Parsing
- From: Jason Chambers <Jason.Chambers (at) geosoft.com>
- Date: Wed, 2 Dec 2009 10:20:06 -0500
- Accept-language: en-US
- Acceptlanguage: en-US
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=geosoft.com; i=Jason.Chambers (at) geosoft.com; l=15990; q=dns/txt; s=mail; t=1259767209; x=1291303209; h=from:sender:reply-to:subject:date:message-id:to:cc: mime-version:content-transfer-encoding:content-id: content-description:resent-date:resent-from:resent-sender: resent-to:resent-cc:resent-message-id:in-reply-to: references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:list-owner:list-archive; z=From:=20Jason=20Chambers=20<Jason.Chambers (at) geosoft.com> |Subject:=20RE:=20[hobbit]=20XML=20Parsing|Date:=20Wed, =202=20Dec=202009=2010:20:06=20-0500|Message-ID:=20<5FE94 042A3B7764CA4E47D5F670889ED0BFC27DA94 (at) reddo.geosoft.com> |To:=20"'hobbit (at) hswn.dk'"=20<hobbit (at) hswn.dk> |MIME-Version:=201.0|In-Reply-To:=20<79d511080912020708r4 d3f216fy61c9f475f82c8db9 (at) mail.gmail.com>|References:=20<5 FE94042A3B7764CA4E47D5F670889ED0BFC27DA47 (at) reddo.geosoft.c om>=0D=0A=20<79d511080912020708r4d3f216fy61c9f475f82c8db9 @mail.gmail.com>; bh=3KKK3KFwmUIwi+iSajnScnktpB4L3Y2wwTw76NnLS5A=; b=sEeBo2/NYzp+ZB2CjgEpKGSllMluNm8dLe4QQTpmSqgrZqhG7lqOqviJ 320K8kzTyHSVz9JnSvzr0g3DVACrSZ2CGUaTfpY3MQlKRWC57X7sY3s3o azPfCwysgBZc59e4uTKtsmSmWpNXMnxebJwq1jv3X4F/XPSrubUS951Cm 4=;
- Domainkey-signature: s=mail; d=geosoft.com; c=nofws; q=dns; h=Received:Received:From:To:Date:Subject:Thread-Topic: Thread-Index:Message-ID:References:In-Reply-To: Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:acceptlanguage:Content-Type: MIME-Version; b=qTJ0Kzif5vphKoNaBILTVAvaNwpayBw9LskJn8OPSqWH9OEdXuOeG6HE YVCKJ9vgxywjcRGBJ4Lrtz1+f0IEx0DJgNlkQKYb3qN1zsmZ9D9D1nIUg GOWJth90nXK5NfQNTCZLRwcUthKOaAZwVNkADapVt3q7oDRwafTCWKHd6 Q=;
- References: <5FE94042A3B7764CA4E47D5F670889ED0BFC27DA47 (at) reddo.geosoft.com> <79d511080912020708r4d3f216fy61c9f475f82c8db9 (at) mail.gmail.com>
- Thread-index: AcpzYhUUPvDqNAXOSGe5KFzNG7mznAAAL49Q
- Thread-topic: [hobbit] XML Parsing
I want to parse the Ironport xml status file and make it useful... kinda looks like this:
<status build="phoebe 6.5.3-007" hostname="mail.somemailserver.com" timestamp="20091202095834">
<birth_time timestamp="20091010092305 (53d 1h 35m 29s)"/>
<last_counter_reset timestamp="20080408102414"/>
<system status="online" />
<oldest_message secs="191115" mid="2033351" />
<features>
<feature name="IronPort Anti-Spam" time_remaining="75474158" />
<feature name="Sophos" time_remaining="75430958" />
<feature name="McAfee" time_remaining="-50177672" />
</features>
<counters>
<counter name="inj_msgs"
reset="1672658"
uptime="135602"
lifetime="1672668" />
<counter name="inj_recips"
reset="1879254"
uptime="147263"
lifetime="1879264" />
<counter name="gen_bounce_recips"
reset="52001"
uptime="3664"
lifetime="52006" />
<counter name="rejected_recips"
reset="391394"
uptime="16835"
lifetime="391394" />
<counter name="dropped_msgs"
reset="476453"
uptime="16952"
lifetime="476453" />
<counter name="soft_bounced_evts"
reset="42976"
uptime="7217"
lifetime="42976" />
<counter name="completed_recips"
Etc...
Jason Chambers
IT Help Desk Associate
GEOSOFT INC.
freedom to explore
T +1 416.369.0111 #344
F +1 416.369.9599
Visit our site at www.geosoft.com
From: Jerald Sheets [mailto:questy (at) gmail.com]
Sent: December-02-09 10:08 AM
To: hobbit (at) hswn.dk
Subject: Re: [hobbit] XML Parsing
For what purposes and in what way?
Are you wanting to use it as a config element? Are you wanting to search through it for a pattern match?
With the open-ended scripting you can do in Hobbit, the *what* you are asking is a non-issue. The *how* based on the *why* is the important part.
---
Jerald M. Sheets jr.
On Wed, Dec 2, 2009 at 9:41 AM, Jason Chambers <Jason.Chambers (at) geosoft.com<mailto:Jason.Chambers (at) geosoft.com>> wrote:
Does anyone know how I can go about parsing data out of an XML txt file and then including it into hobbit? That would be extremely cool if there is an easy way to do that.
Jason Chambers
IT Help Desk Associate
GEOSOFT INC.
freedom to explore
T +1 416.369.0111 #344
F +1 416.369.9599
Visit our site at www.geosoft.com<http://www.geosoft.com>