Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Namespace error when parsing with XML::LibXML

by mathieu (Novice)
on Oct 06, 2010 at 14:58 UTC ( #863803=note: print w/replies, xml ) Need Help??


in reply to Re: Namespace error when parsing with XML::LibXML
in thread Namespace error when parsing with XML::LibXML

Hi shriken,

thanks for your reply, it's my understanding also.

Anyway I added the following sed code to remove the additionnal namespace delcaration :

my $file = 'namespace.xml'; system('sed -i "s/http:\/\/www.exchangefortravel.org\/xft\/current //g +" '.$file);

The errors are gone, but now my XPATH expression doesn't return any nodes. Do you have any idea on what is going on ? Is it related to the namespace pb ?

Thanks for your help.

Replies are listed 'Best First'.
Re^3: Namespace error when parsing with XML::LibXML
by ikegami (Pope) on Oct 06, 2010 at 16:04 UTC
    You removed the wrong one. It's the second uri that should be the one that's removed since it's a link to the schema.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://863803]
help
Chatterbox?
[LanX]: unusual that "Pimp my Bride" never made it into TV (?)
LanX sighs ... no idea stupid enough
[choroba]: "Smack My Bitch Up" did, though
[Eily]: that's the internet for you LanX
[Eily]: and I'm pretty sure there's a rule somewhere that states that the stupider the idea, the more likely it is to already have been done
zentara is thinking of moving to Mars to esacpe it all

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (14)
As of 2017-03-27 15:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.