Re: XML Parser Error

2010-04-16 Thread Open Source
> - Original Message - > From: Brad Baxter > Sent: 04/16/10 01:31 AM > To: beginners@perl.org > Subject: Re: XML Parser Error > On 4/15/2010 1:40 PM, Open Source wrote: > I'm getting this error: > > Undefined subroutine&XML::Simple::XMLin called at ./

Re: XML Parser Error

2010-04-16 Thread Brad Baxter
On 4/15/2010 1:40 PM, Open Source wrote: I'm getting this error: Undefined subroutine&XML::Simple::XMLin called at ./sample.pl line 3. Here's my code and input file: use XML::Simple; use Data::Dumper; $data = XMLin("sample.xml"); print Dumper($data); John 43 M Operations There mu

RE: XML Parser Error

2010-04-16 Thread Wagner, David --- Senior Programmer Analyst --- CFS
>-Original Message- >From: Open Source [mailto:open.sou...@gmx.com] >Sent: Thursday, April 15, 2010 11:41 >To: Beginners, Perl >Subject: XML Parser Error > >I'm getting this error: > >Undefined subroutine &XML::Simple::XMLin called at ./sample.pl line 3. > >Here's my code and input file: >

Re: XML::Parser::Expat example

2008-09-02 Thread Mr. Shawn H. Corey
On Tue, 2008-09-02 at 11:53 +0300, Vyacheslav Karamov wrote: > Hi All! > > Could someone give me some examples how to use XML::Parser::Expat? You should use XML::Parser instead. Most Perl Mongers prefer to use XML::Twig or XML::SAX or XML::DOM. All are available at CPAN

RE: xml parser

2005-06-09 Thread Dermot Paikkos
Yeap that seems to have done it. Thanx Thomas. Dp. On 9 Jun 2005 at 12:23, Thomas Bätzler wrote: > Dermot Paikkos <[EMAIL PROTECTED]> asked: > > Thanx for the replies. At the moment I am testing the water > > so I am using Activestate 5.8. All I have done with > > XML::Simple is below. > > > > =

RE: xml parser

2005-06-09 Thread Thomas Bätzler
Dermot Paikkos <[EMAIL PROTECTED]> asked: > Thanx for the replies. At the moment I am testing the water > so I am using Activestate 5.8. All I have done with > XML::Simple is below. > > = xml-parse.pl = > #!/bin/perl > use strict; > use XML::Simple; > use Data::Dumper; > > m

Re: xml parser

2005-06-08 Thread Wiggins d'Anconia
Dermot Paikkos wrote: > Hi, > > I need to create a cgi program that will parse an xml file for > output. I haven't began to write anything yet but had a look at the > xml file I am going to work with. The snippet below contains 3 > records. > > My question is what would be the best (easiest/f

Re: xml parser

2005-06-08 Thread Chris Devers
On Wed, 8 Jun 2005, Dermot Paikkos wrote: > My question is what would be the best (easiest/fastest) way to parse > the file. Should I try and set the record separator to something like > > $/ = "\n"; > > Or should I use a XML::Parser (which looks a bit scary) or > XML::Simple (my first attempt at

Re: XML::Parser -- Problem with undefined entities in element attributes

2001-08-15 Thread M.W. Koskamp
- Original Message - From: KAVANAGH, Michael <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 15, 2001 12:28 PM Subject: XML::Parser -- Problem with undefined entities in element attributes > Hi there, > I've been bumping my head up against this problem all morning no

Re: XML::Parser -- Problem with undefined entities in element attributes

2001-08-15 Thread Michel Rodriguez
On Wednesday 15 August 2001 13:19, KAVANAGH, Michael wrote: > Interestingly, in testing this problem, I found that XML::Parser handles > ® in the attribute fine, but not, as I said, ®. The ascii value > entity seems to be handled ok. Can you confirm that in your experience this > is the case gen

RE: XML::Parser -- Problem with undefined entities in element attribu tes

2001-08-15 Thread KAVANAGH, Michael
ntity seems to be handled ok. Can you confirm that in your experience this is the case generally? Mike -Original Message- From: Michel Rodriguez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 15, 2001 12:12 PM To: KAVANAGH, Michael; [EMAIL PROTECTED] Subject: Re: XML::Parser -- Problem

Re: XML::Parser -- Problem with undefined entities in element attribu tes

2001-08-15 Thread Michel Rodriguez
On Wednesday 15 August 2001 12:28, KAVANAGH, Michael wrote: > Is there any way to handle entity references in attribute values? > > My problem is I have tags in my xml that contain entity references like > this: > and XML::Parser generates the following error: > undefined entity at line 6, colum

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

2001-06-13 Thread Chas Owens
Always, always proofread your work, Sigh. I meant to say: Line 14 should be: print $mail->child('smtp_server')->value; not print $mail->child('smtp_server')->{VALUE}; On 13 Jun 2001 16:46:06 -0400, Chas Owens wrote: > line should be: > print $mail->child('smtp_server')->va

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

2001-06-13 Thread Chas Owens
line should be: 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.html > I wanted something really simple for