Although I was able to find past XML parsing questions, as the questions were a little different than this, I had a pretty hard time adapting those answers to this scenario.
-> May I ask if anyone knows how to extract the IP addresses of the below "servers.xml" file into an array called IP[]?
(Hopefully using KSH in Solaris)
(note: there can be a varying # of server lines [sometimes zero] within this list, and will most likely be formatted on multiple lines, like below--Also note lines 1-2 and the last line below are guaranteed to be there.)
Thanks in advance...
CG
I want to use wget comment to parse an xml parse that exist in an online website. How can I connect it using shell script through Unix and how can I parse it?? (1 Reply)
Hi All,
I have a xml file for example as described below
<xml>
<address>
<street><street>
<address/>
<isbn>426728783932020308393930303</isbn>
<book>
<name>
</name>
</book>
.
.
.
</xml>
My problem is to get the isbn number from the above described file using ksh script. Could... (6 Replies)
I have a xml file attached. I need to parse parameterId and its value
My output should be like
151515 38
151522 32769
and so on..
Please help me. Its urgent (6 Replies)
Learned People,
Hello !
Till today, for the most part, all of the tricky questions/situations that I encountered were already posted by other folks and all I had to do was peruse through these one at a time and I could find some sort of an answer and all I had to do was add some minor tweaks... (5 Replies)
I had a big XML and from which I have to make a layout as below
*TOTAL+CB | *CB+FX | CS |*IR | *TOTAL |
--------------------------------------------------------------------------------------------------
|CB FX | | | |
DMFXNY EMSGFX... (6 Replies)
I am trying to parse the XML Google contact file using tools like xmllint and I even dived into the XSL Style Sheets using xsltproc but I get nowhere.
I can not supply any sample file as it contains private data but you can download your own contacts using this script:
#!/bin/sh
# imports... (9 Replies)
HI
I want to parse below file in to two output :-
Input :-
?xml version="1.0" encoding="UTF-8"?>
<bulkCmConfigDataFile xmlns:un="utranNrm.xsd"
<configData dnPrefix="Undefined">
<xn:SubNetwork id="ONRM_ROOT_MO_R">
<xn:MeContext id="C136">
... (3 Replies)
I have an xml file where the format looks like below
<SESSIONCOMPONENT REFOBJECTNAME ="pre_session_command" REUSABLE ="NO" TYPE ="Pre-session command">
<TASK DESCRIPTION ="" NAME ="pre_session_command" REUSABLE ="NO" TYPE ="Command" VERSIONNUMBER ="1">
... (8 Replies)
Discussion started by: r_t_1601
8 Replies
LEARN ABOUT DEBIAN
cgi::xml
XML(3pm) User Contributed Perl Documentation XML(3pm)NAME
CGI::XML - Perl extension for converting CGI.pm variables to/from XML
SYNOPSIS
use CGI::XML;
$q = new CGI::XML;
# convert CGI.pm variables to XML
$xml = $q->toXML;
$xml = $q->toXML($root);
# convert XML to CGI.pm variables
$q->toCGI($xml);
DESCRIPTION
The CGI::XML module converts CGI.pm variables to XML and vice versa.
CGI::XML is a subclass of CGI.pm, so it reads the CGI variables just as CGI.pm would.
METHODS
$q = new CGI::XML
creates a new instance of CGI::XML. You also have access to all of the methods in CGI.pm.
$q->toXML([$root])
where $root is an optional parameter that specifies the root element. By default, toXML will not return a root element.
$q->toCGI($xml)
where $xml is the XML you would like to convert to CGI.pm parameters. Values in the XML will overwrite any existing values if they
exist.
NOTE
CGI::XML does not currently handle multiple selections passed from HTML forms. This will be added in a future release.
AUTHOR
Jonathan Eisenzopf <eisen@pobox.com>
CONTRIBUTORS
David Black <dblack@candle.superlink.net>
SEE ALSO perl(1), XML::Parser(3).
perl v5.8.8 2004-12-05 XML(3pm)