lionofmasses has asked for the wisdom of the Perl Monks concerning the following question:
hi all , iam just learning the basics of PERL and XPATH. can anyone show me.... how can i extract the editors name or wadevva information i want by specyfyin XPATH statements...... from the following XML document which is TEI encoded
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE TEI.2 SYSTEM "tei-epidoc.dtd" > <TEI.2 lang="eng" id="eAla001"> <teiHeader status="new" type="text"> <fileDesc> <titleStmt> <title type="main" level="m">1. Letter of Valerian and Gallien +us</title> <editor role="editor">Joyce M. Reynolds</editor> </titleStmt> <publicationStmt> <date>2004</date> </publicationStmt> <sourceDesc default="NO"> <p><!-- to be added --></p> </sourceDesc> </fileDesc> <profileDesc> <langUsage default="NO"> <language id="eng">English</language> <language id="fre">French</language> <language id="ger">German</language> <language id="grc">Ancient Greek</language> <language id="gre">Modern Greek</language> <language id="ita">Italian</language> <language id="lat">Latin</language> <language id="spa">Spanish</language> <language id="tur">Turkish</language> </langUsage> </profileDesc> </body> </text> </TEI.2>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl xpath extraction
by wind (Priest) on Apr 11, 2011 at 04:54 UTC | |
by mertserger (Curate) on Apr 11, 2011 at 09:43 UTC | |
|
Re: perl xpath extraction
by Anonymous Monk on Apr 11, 2011 at 04:14 UTC | |
|
Re: perl xpath extraction
by Gulliver (Monk) on Apr 11, 2011 at 15:36 UTC | |
|
Re: perl xpath extraction
by choroba (Cardinal) on Apr 12, 2011 at 15:00 UTC | |
|
Re: perl xpath extraction
by lionofmasses (Initiate) on Apr 16, 2011 at 04:02 UTC | |
by Gulliver (Monk) on Apr 28, 2011 at 14:34 UTC |