> ""Beginner"" == "Beginner" <[EMAIL PROTECTED]> writes:
"Beginner"> "running xml2-config...failed
"Beginner"> The installed version of libxml2 not compatible with XML::LibXML."
It's not just a minimum. There are some versions of libxml2 that are
sufficiently broken that the the author of X
On 24 Dec 2006 at 12:23, Rob Dixon wrote:
> Randal L. Schwartz wrote:
> > "Rob" == Rob Dixon <[EMAIL PROTECTED]> writes:
> >
> > Rob> my @bad = $doc->findnodes(q{//address[starts-with(code, "BJPU")]});
> >
> > Actualy, doesn't that require code immediately below addess?
>
> Yes
>
> > Don't you
From: "Beginner" <[EMAIL PROTECTED]>
> Hi All (and a happy holiday to those that will get a break),
>
> I am trying to read in an XML file of addresses. I need to remove all
> the address data from the file where code =~ /^000/ (there are none in
> the example data below). I need to reproduce that
Randal L. Schwartz wrote:
"Rob" == Rob Dixon <[EMAIL PROTECTED]> writes:
Rob> my @bad = $doc->findnodes(q{//address[starts-with(code, "BJPU")]});
Actualy, doesn't that require code immediately below addess?
Yes
Don't you want .//code there ?
Almost certainly not. In the example XML appe
> "Rob" == Rob Dixon <[EMAIL PROTECTED]> writes:
Rob> my @bad = $doc->findnodes(q{//address[starts-with(code, "BJPU")]});
Actualy, doesn't that require code immediately below addess?
Don't you want .//code there ?
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 00
> "Rob" == Rob Dixon <[EMAIL PROTECTED]> writes:
>> my @bad = $doc->findnodes(q{//address[.//code[starts-with(., "BJPU")]]});
Rob> my @bad = $doc->findnodes(q{//address[starts-with(code, "BJPU")]});
It's clear to me that myy XPath-fu is still weak. Thanks for showing
me the better way. At
Randal L. Schwartz wrote:
""Beginner"" == "Beginner" <[EMAIL PROTECTED]> writes:
"Beginner"> I have been trying to use XML::Simple and I had a go with XML::Smart
"Beginner"> but I haven't been able to get the results I want.
I'd use XML::LibXML, with an XPath expression, as follows. I'm de
> ""Beginner"" == "Beginner" <[EMAIL PROTECTED]> writes:
"Beginner"> I have been trying to use XML::Simple and I had a go with
XML::Smart
"Beginner"> but I haven't been able to get the results I want.
I'd use XML::LibXML, with an XPath expression, as follows. I'm demoing by
deleting the o
Hi All (and a happy holiday to those that will get a break),
I am trying to read in an XML file of addresses. I need to remove all
the address data from the file where code =~ /^000/ (there are none
in the example data below). I need to reproduce that data 'as is', so
I need to honour the tag s