Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Can you help me? What I try is read the whole part from <Author ValidYN="Y"> to </Author> using the /s in my regex, but then I cannot hold all of the names, it only matches the last or the first name... I am sure this an easy task using Perl and XML functions, but unfortunatelly I am rather newbie and don't know how to use them...<PubmedArticle> <AuthorList CompleteYN="Y"> <Author ValidYN="Y"> <LastName>van Beilen</LastName> <ForeName>J B</ForeName> <Initials>JB</Initials> </Author> <Author ValidYN="Y"> <LastName>Penninga</LastName> <ForeName>D</ForeName> <Initials>D</Initials> </Author> <Author ValidYN="Y"> <LastName>Witholt</LastName> <ForeName>B</ForeName> <Initials>B</Initials> </Author> </AuthorList> </PubmedArticle> <PubmedArticle> <AuthorList CompleteYN="Y"> <Author ValidYN="Y"> <LastName>Wilde</LastName> <ForeName>A</ForeName> <Initials>A</Initials> </Author> <Author ValidYN="Y"> <LastName>Reaves</LastName> <ForeName>B</ForeName> <Initials>B</Initials> </Author> <Author ValidYN="Y"> <LastName>Banting</LastName> <ForeName>G</ForeName> <Initials>G</Initials> </Author> </AuthorList> </Article> </PubmedArticle>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: xml confuse
by GrandFather (Saint) on Apr 12, 2008 at 12:31 UTC | |
|
Re: xml confuse
by ww (Archbishop) on Apr 12, 2008 at 11:26 UTC | |
|
Re: xml confuse
by deibyz (Hermit) on Apr 12, 2008 at 11:18 UTC | |
by Anonymous Monk on Apr 12, 2008 at 11:38 UTC | |
|
Re: xml confuse
by Jenda (Abbot) on Apr 12, 2008 at 18:04 UTC |