06-20-2002
XML parsers for UNIX
Hi,
I'm looking for XML parsers for UNIX!
Thanks in advance
Tim
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i wanted to add a child element child2 into a below xml .
<parent1>
<child1></child1>
</parent1>
like
<parent1>
<child1></child1>
<child2></child2>
</parent1>
What is the best way to do this using unix commands.
I donot want to create a temp file....
cat original |... (3 Replies)
Discussion started by: sehgalniraj
3 Replies
2. UNIX for Dummies Questions & Answers
Hello, newbie (non-techie) here.
I'm a business analyst for a software company in the Bay Area. A
project I just got assigned to involved researching for an enterprise
version of a XML translator that will run on UNIX. I'm looking for
something that won't be too costly to purchase as the... (4 Replies)
Discussion started by: Antsy
4 Replies
3. Linux
Can you please tell for some freeware unix based command line XML parser/tool which will check whether a particular XML corresponds to its XSD or not.
please help immediately......... (15 Replies)
Discussion started by: infyanurag
15 Replies
4. Shell Programming and Scripting
Does anyone know of a lightweight freeware utility that will do the following?:
1) Input an XML file and XLS file
2) Do a transform
3) Then output a pdf file
for Unix Platform.
Thanks
Andrea (3 Replies)
Discussion started by: andrea.giovanno
3 Replies
5. Programming
Does anyone can tell me what is the best way to post a xml request to a web service on C. I am using expat for parsing the response, but until now i build my xml request with a bunch of strcat functions, then connect to the port and send it that way. I am wondering if there are libraries or a... (3 Replies)
Discussion started by: loquito
3 Replies
6. Shell Programming and Scripting
Hello Everyone!!!
I have a list of XML files, in different directories, the structure for which is:
<Data>
<Info>
<a> some text </a>
<b> some text </b>
<c> 3000 </c>
</Info>
<Info>
... (2 Replies)
Discussion started by: ad23
2 Replies
7. Shell Programming and Scripting
Hi,
I have around one lakh records. I have used XML for the creation of the data.
I have used these 2 Perl modules.
use XML::DOM;
use XML::LibXML;
The data will loo like this and most it is textual entries.
<eid>19000</eid>
<einfo>This is the ..........</einfo>
......... (3 Replies)
Discussion started by: vanitham
3 Replies
8. Shell Programming and Scripting
I need help
I have a unix command :
VERSION=$(ls -d /vsn/v12.??.??.?? | sort | tail -1)
when i do echo $VERSION, i get the exact value, i want.
Now i want to use this variable and pass it to an xml. How can i do that? (1 Reply)
Discussion started by: samk
1 Replies
9. Programming
Hi,
Am pretty new for perl scripting and confused how to use XML Parser..
I just want to know how to use perl and XML parser..
The scenario is when i execute a command, it will generate a XML file..
From that XML file generated i need to grep for specific term that has HTML TAG say... (2 Replies)
Discussion started by: Priya Amaresh
2 Replies
10. UNIX for Advanced & Expert Users
Hi,
I am new in shell scripting. i want to extract tag values in xml files by using shell script. my files like this:
<cw: properties>
<cw:std_properties>
<tns: properties>
<tns:name>AdminOutQueue</tns:name>
<tns:type>String</tns:type>
<tns:subtype>QueueName</tns:subtype>
<tns:value... (25 Replies)
Discussion started by: arindam guha
25 Replies
LEARN ABOUT DEBIAN
test::xml::sax
Test::XML::SAX(3pm) User Contributed Perl Documentation Test::XML::SAX(3pm)
NAME
Test::XML::SAX - Test XML::SAX handlers
SYNOPSIS
use Test::XML::SAX tests => 1;
use My::XML::Filter;
my $handler = My::XML::Filter->new;
test_sax( $handler, '<foo />', '<bar/>', 'translates foo to bar' );
# ... In Another File ...
use Test::XML::SAX; use My::XML::Filter;
sub do_tests {
my $handler = My::XML::Filter->new;
test_sax( $handler, '<foo />', '<bar/>', 'translates foo to bar' );
}
test_all_sax_parsers( &do_tests, 1 );
DESCRIPTION
This module is for testing XML::SAX handlers.
FUNCTIONS
All functions are exported.
test_sax ( HANDLER, INPUT, EXPECTED [, TESTNAME ] )
This function will process INPUT using HANDLER, and compare the result with EXPECTED. TESTNAME can optionally be used to name the test
in the output (a good idea).
test_all_sax_parsers ( SUB [, NUMTESTS ] )
This function will repeat a set of tests for all installed SAX parsers. SUB must be a coderef to run a series of tests. NUMTESTS is
the number of tests inside SUB.
NB: You must not issue a plan to Test::More if you call this function! The plan will be set for you, according to the number of
parsers installed and NUMTESTS. This also means that you must not have any tests outside of SUB or you will get an error.
When SUB is called, it will be passed two arguments. The name of the parser being used and the number of tests. It can use this
information to decide whether or not to skip this set of tests.
SEE ALSO
Test::More, Test::XML, XML::SAX.
AUTHOR
Dominic Mitchell, <cpan2 (at) semantico.com>
COPYRIGHT AND LICENSE
Copyright 2002 by semantico
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2009-07-02 Test::XML::SAX(3pm)