Help for this page

Select Code to Download


  1. or download this
    use strict;
    use XML::LibXML;
    ...
    my $ra_node = $doc->find('/Catalogue/Segments/Segments[@Name="Products
    +"]');
    
    print "NB NODE ".scalar(@{ $ra_node })."\n";
    
  2. or download this
    namespace.xml:2: namespace error : xmlns: 'http://www.exchangefortrave
    +l.org/xft/current http://www.exchangefortravel.org/xft/current/xft.xs
    +d' is not a valid URI
    efortravel.org/xft/current http://www.exchangefortravel.org/xft/curren
    +t/xft.xsd"
    ...
    namespace.xml:2: namespace error : xmlns:xsi: 'http://www.exchangefort
    +ravel.org/xft/current http://www.exchangefortravel.org/xft/current/xf
    +t.xsd' is not a valid URI
    efortravel.org/xft/current http://www.exchangefortravel.org/xft/curren
    +t/xft.xsd"
                                                                          
    +          ^
    
  3. or download this
     <?xml version='1.0' encoding='UTF-8'?>
    <Catalogue xmlns="http://www.exchangefortravel.org/xft/current http://
    +www.exchangefortravel.org/xft/current/xft.xsd" xmlns:h="http://www.ex
    +changefortravel.org/xft/current http://www.exchangefortravel.org/xft/
    +current/xft.xsd" xmlns:xi="http://www.exchangefortravel.org/xft/curre
    +nt http://www.exchangefortravel.org/xft/current/xft.xsd" xmlns:xsi="h
    +ttp://www.exchangefortravel.org/xft/current http://www.exchangefortra
    +vel.org/xft/current/xft.xsd" Implementation="2.0.7" xsi:schemaLocatio
    +n="http://www.exchangefortravel.org/xft/current http://www.exchangefo
    +rtravel.org/xft/current/xft.xsd">
    ...
        <Segments What="Defaults"/>
      </Segments>
    </Catalogue>