Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

command line tool for xml

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Tools Discussion Forum >> command line tool for xml Page: [1]
Login
Message << Older Topic   Newer Topic >>
command line tool for xml - Mar. 25, '06, 1:21:31 PM   
hemadrid

 

Posts: 5
Joined: Jul. 15, '05,
Status: offline
Hi,
Is there an interix port of a tool like XMLSTARLET(http://xmlstar.sourceforge.net/) to work with xml files and do shell scripting where we extract security token from a response to one web service operation and insert in the request to another operation.

Thanks.
Post #: 1
RE: command line tool for xml - Mar. 25, '06, 5:35:37 PM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Not until someone asks for it

The one you reference (xmlstar) needs libxml2 (available here for a long time) and
needs libxslt (just put in with the other packages). So it should be doable.

(in reply to hemadrid)
Post #: 2
RE: command line tool for xml - Mar. 25, '06, 9:22:51 PM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
It was too easy to do, so it's done.
To be announced in a few minutes.
pkg_update -L xmlstarlet

(in reply to Rodney)
Post #: 3
RE: command line tool for xml - Mar. 25, '06, 9:56:23 PM   
hemadrid

 

Posts: 5
Joined: Jul. 15, '05,
Status: offline
Thank you so much. I am a newbie at this and i was getting lot of errors when i do make.
*********
make all-recursive
Making all in src
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I.. -I../src -I/usr/include/libxml2 -I/usr/include/libxslt -I/usr/include/libexslt -I/usr/include -Wall -g -pedantic -D_ALL_SOURCE -I/usr/local/include -I/usr/local/ssl/include -Wall -g -pedantic -c xml.c
xml.c: In function `main':
xml.c:166: error: `VERSION' undeclared (first use in this function)
xml.c:166: error: (Each undeclared identifier is reported only once
xml.c:166: error: for each function it appears in.)
*** Error code 1
***********

(in reply to Rodney)
Post #: 4
RE: command line tool for xml - Mar. 26, '06, 2:44:33 AM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
You're welcome.
I missed adding the libiconv dependency with my initial posting.
But it's fixed now in the package.

The o/p from your make indicates that you needed to add some options
to configure when you ran it. The dependent libraries are under the /usr/local
tree not /usr. So using the "--with-libxslt-prefix=/usr/local" et al is needed.
Though I have to say, it was weird that configure could do this itself since
most configure's work something like this out.

(in reply to hemadrid)
Post #: 5
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Tools Discussion Forum >> command line tool for xml Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.078