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
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
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:
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
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
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:
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