xml parsing

2004-10-28 Thread E.Horn
this gives me a DTD as output. My problem is I want to parse this output! But how can ich give it to the second code that this parses the result of (sub_daten_einlesen) I hope someone understands my question ;-) #!/usr/bin/perl -w use LWP::Simple; sub daten_einlesen { print "geben Sie ein gtppro

XML parsing

2002-01-28 Thread VitolD
Hello everyone! It's my first expirience with XML. I have simple XML document like this And I need to produce something like this .. something like header here .. root is 'site'

xml parsing

2009-04-29 Thread Sharan Basappa
Hi, I have a kind of user defined xml file where users enter their test information. I need to parse the xml file, get the relevant data and then use the test information to invoke low level scripts that run the tests. Is there a xml parser that can do this job? Also, I have heard a bit about xml

XML Parsing

2007-06-24 Thread Mike Blezien
I need to parse a fairly large XML response file and would like some suggestions on which XML module would work the best. We've been using the XML::Simple module, but I don't think that's the right one for the job. Below is the XML file we need to parse. In particular getting the data from the e

xml parsing

2012-08-16 Thread Irfan Sayed
hi, i need to parse the xml file and store the data in array : here is the code: use XML::Simple; my $ItemGroup = XMLin('C:\Users\bvcontrolbuild\Desktop\data.xml'); foreach my $BuildProject (@{$ItemGroup->{BuildProject}}) {     print $BuildProject->{Include} . "\n"; } and xml file is :  

Re: xml parsing

2004-10-29 Thread Philipp Traeder
On Thursday 28 October 2004 10:56, E.Horn wrote: Good morning, > this gives me a DTD as output. DTD? As in the kind of document that describes XML files? If yes, an XML Parser might be the wrong tool for parsing this kind of file. Could you give us an example? > My problem is I want to parse th

Re: XML parsing

2002-01-28 Thread Matt C.
I recently used XML::Simple for something very similar. You just tell it to read your xml file and it'll parse it up and create a handy data structure to work with. Use it with Data::Dumper if you want to see how it handles your xml: #!/usr/local/bin/perl -w use Data::Dumper;

RE: xml parsing

2009-04-29 Thread sanket vaidya
April 29, 2009 4:31 PM To: Perl Beginners Subject: xml parsing Hi, I have a kind of user defined xml file where users enter their test information. I need to parse the xml file, get the relevant data and then use the test information to invoke low level scripts that run the tests. Is there a xml pa

RE: xml parsing

2009-04-29 Thread Bob McConnell
From: Sharan Basappa > Also, I have heard a bit about xml schemas. Does the fact that I am > using my own format > of xml file make any difference? Only if you actually need to formally validate your files against a schema. In that case, you would need to create the schema and follow its rules whe

Re: xml parsing

2009-04-29 Thread Bruce Ferrell
module. > > Thanks, > Sanket Vaidya > > -Original Message- > From: Sharan Basappa [mailto:sharan.basa...@gmail.com] > Sent: Wednesday, April 29, 2009 4:31 PM > To: Perl Beginners > Subject: xml parsing > > Hi, > > I have a kind of user defined xml fi

Re: xml parsing

2009-04-29 Thread Sharan Basappa
On Wed, Apr 29, 2009 at 7:54 PM, Bruce Ferrell wrote: > Have a look at XML::Simple > > I'm a lousy programmer and even I can use it :) > Thanks, Bruce. My requirements are really modest, so I think this should be sufficient ... -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additi

Re: xml parsing

2009-04-29 Thread Jenda Krynicky
From: Sharan Basappa > I have a kind of user defined xml file where users enter their test > information. > I need to parse the xml file, get the relevant data and then use the > test information to invoke > low level scripts that run the tests. Is there a xml parser that can > do this job? > Als

XML Parsing/Modules

2010-04-07 Thread Open Source
I'm new to perl and I need to parse an file which contains both structured and unstructured XML messages. Can someone help me to understand how to parse XML files/data into either simple readable or html format? I'm not sure how to proceed like which module I've have to use etc. any pointers wou

Re: XML Parsing

2007-06-24 Thread 吴小勇
XML::XPath? Something related with DRM(DIgital Rights Management)? 2007/6/25, Prabu Ayyappan <[EMAIL PROTECTED]>: Hi, Have you tried XML::XPath for this one.It may help you. Thnx and Rgds, [EMAIL PROTECTED] Mike Blezien <[EMAIL PROTECTED]> wrote: I need to parse a fairly large XML response f

Re: XML Parsing

2007-06-24 Thread Chas Owens
On 6/24/07, 吴小勇 <[EMAIL PROTECTED]> wrote: XML::XPath? Something related with DRM(DIgital Rights Management)? Not in the slightest. You may want to read this http://search.cpan.org/~msergeant/XML-XPath-1.13/XPath.pm

Re: XML Parsing

2007-06-24 Thread Prabu Ayyappan
Hi, Have you tried XML::XPath for this one.It may help you. Thnx and Rgds, [EMAIL PROTECTED] Mike Blezien <[EMAIL PROTECTED]> wrote: I need to parse a fairly large XML response file and would like some suggestions on which XML module would work the best. We've been using the XML::Simple modul

Re: XML Parsing

2007-06-26 Thread mirod
On Jun 25, 3:47 am, [EMAIL PROTECTED] (Mike Blezien) wrote: > I need to parse a fairly largeXMLresponse file and would like some suggestions > on whichXMLmodule would work the best. We've been using theXML::Simple > module, but I don't think that's the right one for the job. Below is theXML > file

Re: XML Parsing

2007-06-26 Thread mirod
On Jun 25, 5:29 am, [EMAIL PROTECTED] (Prabu Ayyappan) wrote: > Have you tried XML::XPath for this one.It may help you. As far as I can tell, XML::XPath is not supported any more (look at its RT list at http://rt.cpan.org/Public/Dist/Display.html?Name=XML-XPath). If you want to go that route, use

RE: XML Parsing

2007-06-26 Thread Andrew Curry
XML::LibXML is also a good one for general xml parsing/manipulation. -Original Message- From: mirod [mailto:[EMAIL PROTECTED] Sent: 26 June 2007 08:47 To: beginners@perl.org Subject: Re: XML Parsing On Jun 25, 3:47 am, [EMAIL PROTECTED] (Mike Blezien) wrote: > I need to parse a fai

Re: XML Parsing

2007-06-26 Thread Mike Blezien
- Original Message - From: "mirod" <[EMAIL PROTECTED]> To: Sent: Tuesday, June 26, 2007 2:46 AM Subject: Re: XML Parsing On Jun 25, 3:47 am, [EMAIL PROTECTED] (Mike Blezien) wrote: I need to parse a fairly largeXMLresponse file and would like some suggestions o

Re: XML Parsing

2007-06-26 Thread Karjala
You could use XML::MyXML for this job (works well), if you know the exact position in the XML tree where is located. Say $xml holds your XML. Then: use XML::MyXML qw(:all); $obj = &xml_to_object($xml) $msg_obj = $obj->path('response/idalertresponse/candidateresults/candidateactivit

Re: XML Parsing

2007-06-26 Thread Jenda Krynicky
From: "Mike Blezien" <[EMAIL PROTECTED]> > I need to parse a fairly large XML response file and would like some > suggestions > on which XML module would work the best. We've been using the XML::Simple > module, but I don't think that's the right one for the job. Below is the XML > file we need

Re: XML Parsing

2007-06-26 Thread Mike Blezien
Karjala, - Original Message - From: "Karjala" <[EMAIL PROTECTED]> To: Cc: "Mike Blezien" <[EMAIL PROTECTED]> Sent: Tuesday, June 26, 2007 9:56 AM Subject: Re: XML Parsing You could use XML::MyXML for this job (works well), if you know the exact po

Re: XML Parsing

2007-06-26 Thread Mike Blezien
- Original Message - From: "mirod" <[EMAIL PROTECTED]> To: Sent: Tuesday, June 26, 2007 2:46 AM Subject: Re: XML Parsing On Jun 25, 3:47 am, [EMAIL PROTECTED] (Mike Blezien) wrote: I need to parse a fairly largeXMLresponse file and would like some suggestions o

Re: XML Parsing

2007-06-26 Thread Karjala
Mike Blezien wrote: can this handle multiple elements with the same name? IE. the path used above may have more then one element within the ... ... Mike It can, as follows: my @message_objects = $obj->path('response/idalertresponse/candidateresults/candidateactivity/messaging/ra

Re: XML Parsing

2007-06-26 Thread Mike Blezien
- Original Message - From: "Karjala" <[EMAIL PROTECTED]> To: Cc: "Mike Blezien" <[EMAIL PROTECTED]> Sent: Tuesday, June 26, 2007 11:35 AM Subject: Re: XML Parsing Mike Blezien wrote: can this handle multiple elements with the same name? IE. the pat

Re: XML Parsing

2007-06-26 Thread Prabu Ayyappan
Hi All, XML::Simple XML::twig XML::Myxml XML::Rules XML::path all these do the XML parsing,But which one is the efficient and stable one to parse a large XML file. Thanks, [EMAIL PROTECTED] Mike Blezien <[EMAIL PROTECTED]> wrote: - Original Message - From: "Karjala"

XML parsing question

2012-03-15 Thread Anirban Adhikary
Hi List , I have a xml file which looks like 10 1,3,4,7 12,16,21 2,3,3 1,3,6,8 12,17,25 50 AMI_BRANLY_B_1 10 1,3,4,7 12,16,21 2,3,3 1,3,6,8 ON ON 0 I need to create a new xml file from

Re: xml parsing

2012-08-16 Thread Shlomi Fish
Hi Irfan, On Thu, 16 Aug 2012 04:55:33 -0700 (PDT) Irfan Sayed wrote: > hi, > > i need to parse the xml file and store the data in array : > > here is the code: > use XML::Simple; > > my $ItemGroup = XMLin('C:\Users\bvcontrolbuild\Desktop\data.xml'); > > foreach my $BuildProject (@{$ItemGrou

Re: xml parsing

2012-08-16 Thread Irfan Sayed
12 6:07 PM Subject: Re: xml parsing Hi Irfan, On Thu, 16 Aug 2012 04:55:33 -0700 (PDT) Irfan Sayed wrote: > hi, > > i need to parse the xml file and store the data in array : > > here is the code: > use XML::Simple; > > my $ItemGroup = XMLin('C:\Users\bvcontrolbu

Re: xml parsing

2012-08-16 Thread Lawrence Statton
On 08/16/2012 07:46 AM, Irfan Sayed wrote: can you please give me sample code to store the xml contents to perl array using LibXML lets say xml files is as : regards irfan I'm going to assume what you wanbt is the list of Included filenames... #!/usr/bin/perl use st

Re: xml parsing

2012-08-16 Thread 'lesleyb'
On Thu, Aug 16, 2012 at 04:55:33AM -0700, Irfan Sayed wrote: > hi, > > i need to parse the xml file and store the data in array : > > here is the code: > use XML::Simple; > > my $ItemGroup = XMLin('C:\Users\bvcontrolbuild\Desktop\data.xml'); > > foreach my $BuildProject (@{$ItemGroup->{BuildPro

Re: xml parsing

2012-08-16 Thread Irfan Sayed
thanks. it worked however, i cant give xml file path instead of all the contents in the start tag << regards, irfan From: Lawrence Statton To: beginners@perl.org Sent: Thursday, August 16, 2012 6:24 PM Subject: Re: xml parsing On 08/16/2012 07

Re: xml parsing

2012-08-16 Thread Lawrence Statton
On 08/16/2012 08:09 AM, Irfan Sayed wrote: thanks. it worked however, i cant give xml file path instead of all the contents in the start tag<< regards, irfan (BTW: The custom on this list is NOT to top post -- trim, and put your replies at the BOTTOM of the email you are responding to) Ca

Re: xml parsing

2012-08-16 Thread Lawrence Statton
please find the attached xml file. please suggest. regards irfan The file attached does not match the sample XML file you included in your email. The string passed to findnodes() is called an "XPath Selector" - you will need to adjust that to match the actual path of the elements you

Re: xml parsing

2012-08-16 Thread Lawrence Statton
Okay -- I've looked at the attachment -- remember when I mentioned namespaces a while back? This document uses one, so things get more complicated. The solution I always use for this is to put the root element into an XPath Context object and assign a prefix for the default namespace (I wa

Re: xml parsing

2012-08-16 Thread Irfan Sayed
From: Lawrence Statton To: Irfan Sayed Cc: "beginners@perl.org" Sent: Thursday, August 16, 2012 7:28 PM Subject: Re: xml parsing Okay -- I've looked at the attachment -- remember when I mentioned namespaces a while back?  This docume

Re: XML Parsing/Modules

2010-04-07 Thread Robert Wohlfarth
On Wed, Apr 7, 2010 at 2:39 PM, Open Source wrote: > I'm new to perl and I need to parse an file which contains both structured > and unstructured XML messages. Can someone help me to understand how to > parse XML files/data into either simple readable or html format? I'm not > sure how to procee

Re: XML Parsing/Modules

2010-04-07 Thread Shawn H Corey
Robert Wohlfarth wrote: On Wed, Apr 7, 2010 at 2:39 PM, Open Source wrote: I'm new to perl and I need to parse an file which contains both structured and unstructured XML messages. Can someone help me to understand how to parse XML files/data into either simple readable or html format? I'm not

Re: XML Parsing/Modules

2010-04-07 Thread Open Source
Thanks Shawn/Rob! I'll give a try now. one more thing, anyway to convert these parsed output to html format directly with the help another module? > - Original Message - > From: Shawn H Corey > Sent: 04/08/10 04:00 AM > To: Robert Wohlfarth > Subject: Re: XML Parsi

Re: XML Parsing/Modules

2010-04-07 Thread Shlomi Fish
/10 04:00 AM > > To: Robert Wohlfarth > > Subject: Re: XML Parsing/Modules > > Robert Wohlfarth wrote: > > On Wed, Apr 7, 2010 at 2:39 PM, Open Source wrote: > >> I'm new to perl and I need to parse an file which contains both > >> structured and unstructu

XML parsing REST responses

2007-03-29 Thread Beginner
Hi, I might be in above my head here so bear with me if I am not making sense. I have to retrieve and extract an xml fragment from a REST server. I have followed some examples from the "Web Services" book. I am able to retrieve the data via LWP::UserAgent but I am baffled by the hash ref that

Re: XML parsing question

2012-03-15 Thread Shawn H Corey
On 12-03-15 11:01 AM, Anirban Adhikary wrote: I need to create a new xml file from this xml. Now I need to store the first BSC id and need to check it against the other BSC ids. If both ids are same then I need to write the the contents of between the BSC id tag in a new xml file. What have you

Re: XML parsing question

2012-03-15 Thread Anirban Adhikary
I am writting a following code to parse this xml but not able yo understand that why the value of $bsc_id_1 getting changed. here is my code use strict; use warnings; my $xml_file_to_read = "BSC-19478.xml"; my $counter = 1; my $bsc_id_1; my $bsc_id; open my $RFH,'<',$xml_file_to_read or die "Can'

Re: XML parsing question

2012-03-15 Thread Lawrence Statton
On 03/15/2012 09:11 AM, Anirban Adhikary wrote: > I am writting a following code to parse this xml but not able yo understand > that why the value of $bsc_id_1 getting changed. > here is my code > > use strict; > use warnings; > > my $xml_file_to_read = "BSC-19478.xml"; > my $counter = 1; > my $

Re: XML parsing question

2012-03-15 Thread Graeme St.Clair
: anirban.adhik...@gmail.com Subject: Re: XML parsing question On 03/15/2012 09:11 AM, Anirban Adhikary wrote: I am writting a following code to parse this xml but not able yo understand that why the value of $bsc_id_1 getting changed. here is my code use strict; use warnings; my

Re: XML parsing question

2012-03-15 Thread Shawn H Corey
On 12-03-15 01:32 PM, Graeme St.Clair wrote: I agree with Lawrence! I am currently using two older packages called XML::SAX and XML::SAX::Expat ; they may well be a bit old-fashioned, but they work for me. I would suggest XML::Twig -- Just my 0.0002 million dollars worth, Shawn Progr

Re: XML parsing question

2012-03-15 Thread Shlomi Fish
Hi Anirban, On Thu, 15 Mar 2012 20:41:31 +0530 Anirban Adhikary wrote: > I am writting a following code to parse this xml but not able yo understand > that why the value of $bsc_id_1 getting changed. > here is my code > > use strict; > use warnings; > > my $xml_file_to_read = "BSC-19478.xml";

Re: XML parsing REST responses

2007-03-29 Thread Mumia W.
On 03/29/2007 06:39 AM, Beginner wrote: Hi, I might be in above my head here so bear with me if I am not making sense. I have to retrieve and extract an xml fragment from a REST server. I have followed some examples from the "Web Services" book. I am able to retrieve the data via LWP::UserA

XML Parsing error - regex problem?

2006-03-10 Thread Graeme McLaren
Hi all, I'm getting the following XML parsing error: [Fri Mar 10 09:37:39 2006] insert_xml.pl: not well-formed (invalid token) at line 13628, column 24, byte 413248: [Fri Mar 10 09:37:39 2006] insert_xml.pl: LA14 [Fri Mar 10 09:37:39 2006] insert_xml.pl: 5741726 [Fri Mar 10 09:37:39

Re: XML parsing REST responses - RESOLVED

2007-03-29 Thread Beginner
On 29 Mar 2007 at 12:39, Beginner wrote: > Hi, > > I might be in above my head here so bear with me if I am not making > sense. > > I have to retrieve and extract an xml fragment from a REST server. I > have followed some examples from the "Web Services" book. I am able > to retrieve the data

RE: XML Parsing error - regex problem?

2006-03-10 Thread Graeme McLaren
n" <[EMAIL PROTECTED]> To: beginners@perl.org Subject: XML Parsing error - regex problem? Date: Fri, 10 Mar 2006 10:03:50 + MIME-Version: 1.0 X-Originating-IP: [212.250.155.249] X-Originating-Email: [EMAIL PROTECTED] X-Sender: [EMAIL PROTECTED] Received: from lists.develooper.com ([63

Re: XML Parsing error - regex problem?

2006-03-10 Thread Tom Phoenix
On 3/10/06, Graeme McLaren <[EMAIL PROTECTED]> wrote: > I've checked my XML file and it contains: > St. Patrick<92>s R.C. P.S. > > This is because St. Patrick's contains an apostrophe. I'm guessing that where I see four characters "<92>", the actual file has a single character. Some tools render

XML::Parser XML::SimpleObject -> First XML parsing pls help

2001-06-13 Thread Stout, Joel R
I took the example from http://www.xml.com/pub/a/2001/04/18/perlxmlqstart1.html I wanted something really simple for XML parsing that basically just reads values. But I'm stuck (again). #Here's what I'm trying to run: #!c:\perl\perl.exe use XML::Parser; use XML::SimpleObject;

RE: :Parser XML::SimpleObject -> First XML parsing pls help

2001-06-13 Thread kotto
You're a beginner? -Original Message- From: Stout, Joel R [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 3:25 PM To: [EMAIL PROTECTED] Subject: XML::Parser XML::SimpleObject -> First XML parsing pls help I took the example from http://www.xml.com/pub/a/20

Re: XML::Parser XML::SimpleObject -> First XML parsing pls help

2001-06-13 Thread Chas Owens
> I wanted something really simple for XML parsing that basically just reads > values. But I'm stuck (again). > > #Here's what I'm trying to run: > > #!c:\perl\perl.exe > > use XML::Parser; > use XML::SimpleObject; > use strict; > > my $fi

Re: XML::Parser XML::SimpleObject -> First XML parsing pls help

2001-06-13 Thread Chas Owens
print $mail->child('smtp_server')->value; > not > print $mail->child('smtp_server')->{VALUE}; > > On 13 Jun 2001 20:25:18 +, Stout, Joel R wrote: > > I took the example from > > http://www.xml.com/pub/a/2001/04/18/perlxmlqstart1.

could not find ParserDetails.ini in /usr/lib/perl5/vendor_perl/5.8.3/XML/SAX; also need some advice about XML parsing modules on CPAN

2004-10-06 Thread Ken Wolcott
Hi; I have a Fedora Core 2 full install to which I installedXML::Simple manually (ie: download, extract, perl Makefile.PL, make, make test, sudo make install). Some of the tests did not run since I did not have Tie::IxHash (?) installed. The error message (could not find ParserDetails.ini i

Re: could not find ParserDetails.ini in /usr/lib/perl5/vendor_perl/5.8.3/XML/SAX; also need some advice about XML parsing modules on CPAN

2004-10-11 Thread Ken Wolcott
Ken Wolcott wrote: I suppose it is in bad taste to reply to one's own posting, but I have an update. After reading some in the O'Reilly Perl & XML book, reading the email archives of this mailing list, several FAQS that some people mentioned from the mailing list archives and another reading of

Re: could not find ParserDetails.ini in /usr/lib/perl5/vendor_perl/5.8.3/XML/SAX; also need some advice about XML parsing modules on CPAN

2004-10-11 Thread ajey
ANother observation is that i'm not finding any problem with this warning/err message. There are no side-effects. The XML:: parser is working correctly. regards -Ajey Quoting Ken Wolcott <[EMAIL PROTECTED]>: > Ken Wolcott wrote: > > > I suppose it is in bad taste to reply to one's own posting,

Re: could not find ParserDetails.ini in /usr/lib/perl5/vendor_perl/5.8.3/XML/SAX; also need some advice about XML parsing modules on CPAN

2004-10-11 Thread Wiggins d Anconia
> Ken Wolcott wrote: > > > I suppose it is in bad taste to reply to one's own posting, but I have > > an update. > > > > After reading some in the O'Reilly Perl & XML book, reading the email > > archives of this mailing list, several FAQS that some people mentioned > > from the mailing list arc

Re: could not find ParserDetails.ini in /usr/lib/perl5/vendor_perl/5.8.3/XML/SAX; also need some advice about XML parsing modules on CPAN

2004-10-11 Thread Wiggins d Anconia
> > Ken Wolcott wrote: > > > > > I suppose it is in bad taste to reply to one's own posting, but I have > > > an update. > > > > > > After reading some in the O'Reilly Perl & XML book, reading the email > > > archives of this mailing list, several FAQS that some people mentioned > > > from the

Re: could not find ParserDetails.ini in /usr/lib/perl5/vendor_perl/5.8.3/XML/SAX; also need some advice about XML parsing modules on CPAN

2004-10-14 Thread Ken Wolcott
Wiggins d Anconia wrote: See if I can actually get somewhere with this. XML::Simple is just a wrapper around one of the lower level XML parsers. Essentially any parser can be used. XML::DOM and XML::SAX are two examples, within these examples they can/do wrap lower level C libs, such as expat[1] o

Re: could not find ParserDetails.ini in /usr/lib/perl5/vendor_perl/5.8.3/XML/SAX; also need some advice about XML parsing modules on CPAN

2004-10-06 Thread Ken Wolcott
Ken Wolcott wrote: Hi; I have a Fedora Core 2 full install to which I installedXML::Simple manually (ie: download, extract, perl Makefile.PL, make, make test, sudo make install). Some of the tests did not run since I did not have Tie::IxHash (?) installed. The error message (could not find