mjr1n1 has asked for the wisdom of the Perl Monks concerning the following question:
xml_file:use XML::LibXML; my $parser = XML::LibXML->new(); my $data = $parser->parse_file($xml_file); my @nodes = $data->findnodes("/info/city");
do I need to set something ..am I forgetting something<?xml version="1.0"?> <info xmlns="http://www.mydomain.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mydomain.com infoschema.xsd"> <name>john</name> <city>baltimore</city> <zip>21205</zip> </info>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problem with using LibXML and namespace
by un-chomp (Scribe) on Oct 26, 2007 at 17:05 UTC | |
by mjr1n1 (Initiate) on Oct 26, 2007 at 17:48 UTC | |
|
Re: problem with using LibXML and namespace
by mjr1n1 (Initiate) on Oct 26, 2007 at 16:18 UTC |