Re: XML Help

2005-11-04 Thread Scott Taylor
Bob Showalter said: > Scott Taylor wrote: >> Hi All, >> >> I'm using XML::Simple to parse a very simple XML file and dump the data >> into hashes of hashes. >> >> The problem I'm getting, is sometimes information is blank in the XMl >> file; it looks like this: >> >> instead of >> 1234 >> >> and

Re: XML Help

2005-11-04 Thread Scott Taylor
Bob Showalter said: > Scott Taylor wrote: >> Dermot Paikkos said: >>>I would also say that the source file is wrong, it should read >>> >> >> >> I read somewhere that is correct syntax (same as ) > > You are correct. The two forms are exactly equivalent. see: > http://www.w3.org/TR/REC-xml/#sec-s

Re: XML Help

2005-11-03 Thread Bob Showalter
Scott Taylor wrote: Dermot Paikkos said: I would also say that the source file is wrong, it should read I read somewhere that is correct syntax (same as ) You are correct. The two forms are exactly equivalent. see: http://www.w3.org/TR/REC-xml/#sec-starttags -- To unsubscribe, e-mail:

Re: XML Help

2005-11-03 Thread Bob Showalter
Scott Taylor wrote: Hi All, I'm using XML::Simple to parse a very simple XML file and dump the data into hashes of hashes. The problem I'm getting, is sometimes information is blank in the XMl file; it looks like this: instead of 1234 and when I print the hash: print "$x->{VEHICLE}->{STREETN

Re: XML Help

2005-11-03 Thread Scott Taylor
Dermot Paikkos said: > On 3 Nov 2005 at 7:45, Scott Taylor wrote: >> >> Hi All, >> >> I'm using XML::Simple to parse a very simple XML file and dump the data >> into hashes of hashes. >> >> The problem I'm getting, is sometimes information is blank in the XMl >> file; it looks like this: >> >> in

Re: XML Help

2005-11-03 Thread Shawn Corey
Scott Taylor wrote: if ($x->{VEHICLE}->{STREETNUM}){ print ... } else { print ""; } but even that doesn't work. Cheers. -- Scott What do you mean when you say it doesn't work? Are you getting something like this? Use of uninitialized value in concatenation (.) or string ... If so, try:

Re: XML Help

2005-11-03 Thread Dermot Paikkos
On 3 Nov 2005 at 7:45, Scott Taylor wrote: > > Hi All, > > I'm using XML::Simple to parse a very simple XML file and dump the data > into hashes of hashes. > > The problem I'm getting, is sometimes information is blank in the XMl > file; it looks like this: > > instead of > 1234 > > and when I