Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^4: How can I force findnodes() to check value of attributes in either xpath1 or xpath2?

by ravi06 (Novice)
on Jul 19, 2013 at 12:44 UTC ( #1045351=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    <book:bookResource xmlns:book="http://api.iop.org/Book/1.0/">
    <book:book>
    ...
    </book:contents>
    </book:book>
    </book:bookResource>
    
  2. or download this
    my %book_columns = (
                         'Book_Id' => '@publisherId',
    ...
                            'Chapter_Id' => '@id',
                            'Chapter_Title' => 'book:locator[contains(@xli
    +nk:href, "format=epub")]/@xlink:title',                        
                          );
    
  3. or download this
    my $dom = $parser->parse_string(book.xml);
    my $root = $dom->documentElement();
    ...
            print $xpc->findvalue($chapter_columns{$col}, $chapter_node);
        }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1045351]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2022-05-28 04:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (98 votes). Check out past polls.

    Notices?