On Friday 29 October 2004 10:44, E.Horn wrote: > geben Sie ein gtpprotein ein > ras > <?xml version="1.0"?> > <!DOCTYPE Result PUBLIC "-//NLM//DTD eSearchResult, January 2004//EN" > "http://www.ncbi.nlm.nih.gov/entrez/query/DTD/egquery.dtd"> > > <!-- > This is the Current DTD for all Entrez databases eGSearch > $Id: egquery_template.xml,v 1.10 2004/09/15 21:36:24 osipov Exp > $ > --> > <!-- ================================================================= > --> > > <Result> > > <Term>ras</Term> > > <eGQueryResult> > > <ResultItem> > <DbName>pubmed</DbName> > <MenuName>PubMed</MenuName> > <Count>27832</Count> > <Status>Ok</Status> > </ResultItem> > > <ResultItem> > <DbName>pmc</DbName> > <MenuName>PMC</MenuName> > <Count>6921</Count> > <Status>Ok</Status> > </ResultItem> > > ..................... > > </eGQueryResult> > > </Result> > > that is the output! > I ONLY want to have somethimg like this: Pubmed 27832 > > Pmc 6921
In this case, take a look at the thread "how to parse this xml file" which started yesterday - the XML schema seems to be the same. If you want to combine this code with the code you posted earlier, just take the string you received from the URL (it was called $doc, I think) and take it as input param for XMLin() (see my last mail). BTW: Is this some kind of programming request - it seems as if at least Franklin and you are trying to write the same script ;-) Philipp -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>