Sys Admin TALK Forums : Powered by vBulletin version 2.3.6 Sys Admin TALK Forums > Software Forums > Programming / Hacking > XML get info command line
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
crow
SAT Newbie

Registered: May 2004
Location:
Posts: 13

XML get info command line

I am have an xml file that look like this:

<?xml version="1.0" encoding="UTF-8" ?>
<FMPXMLRESULT xmlns="http://www.filemaker.com/fmpxmlresult">
<ERRORCODE>0</ERRORCODE>
<PRODUCT BUILD="08-11-2005" NAME="FileMaker Pro" VERSION="8.0v1"/>
<DATABASE DATEFORMAT="M/d/yyyy" LAYOUT="" NAME="records_database" RECORDS="17820" TIMEFORMAT="h:mm:ss a"/>
<METADATA>
<FIELD EMPTYOK="YES" MAXREPEAT="1" NAME="JobNumber" TYPE="NUMBER"/>
<FIELD EMPTYOK="YES" MAXREPEAT="1" NAME="company name" TYPE="TEXT"/></METADATA>
<RESULTSET FOUND="2">
<ROW MODID="57" RECORDID="122">
<COL><DATA>921066</DATA></COL>
<COL><DATA>Joe Products</DATA></COL>
</ROW>
<ROW MODID="54" RECORDID="149">
<COL><DATA>921345</DATA></COL>
<COL><DATA>Daves Doors</DATA></COL>
</ROW>
------end of xml deleted

I am using Solaris. I want to be able to do something like

#xmlcommand get "company name"
Joe Products
Daves Doors
#

Lots of web based xml stuff. I need to use it in conjuctionion with shell scritping. Any points in the right direction would be appreciated.

Report this post to a moderator | IP: Logged

Old Post 05-19-2007 08:11 PM
crow is offline Click Here to See the Profile for crow Click here to Send crow a Private Message Find more posts by crow Add crow to your buddy list Edit/Delete Message Reply w/Quote
crow
SAT Newbie

Registered: May 2004
Location:
Posts: 13

I think I am going to get everything I want by using this:

http://sourceforge.net/projects/xmlstar/

Report this post to a moderator | IP: Logged

Old Post 05-20-2007 08:49 PM
crow is offline Click Here to See the Profile for crow Click here to Send crow a Private Message Find more posts by crow Add crow to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 11:49 AM. Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Powered by: vBulletin Version 2.3.6
Copyright ©2000, 2001, Jelsoft Enterprises Limited.
Copyright 2001-2002 SysAdminTalk.com All Rights Reserved