Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 ( [id://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?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-03-29 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found