[MOBY-l] mobyxmlobject.pm question

Michael Jensen mdjgf8 at mizzou.edu
Sat Nov 22 04:28:18 UTC 2003


I have been trying to use the MobyXMLObject.pm as Ken suggested, but am 
having a few problems beyond the samples used. I am trying to combine 
the two pubmed services by piping the PMIDs from SearchPubmed to 
getting Medline output from getPubmed. I have been trying to get 
MobyXMLObject.pm to work with SearchPubmed but it doesn't want to work, 
returning nothing except for the webservice. I think the problem might 
be that the output has <Simple> tags instead of <moby:Simple> like so:

<moby:queryResponse>
	<Simple>
		<moby:Object namespace='PMID' id="14607285">
  		</moby:Object>
	</Simple>
</moby:queryResponse>

as opposed to the XML from the test xml found on Ken's learning site.

<moby:queryInput>
	<moby:Simple>	
		<moby:GenericSequence namespace='AGI_LocusCode' id='At3g19yyy'>
			<moby:Integer namespace='' id='' 
articleName='Length'>4</moby:Integer>
			<moby:String namespace='' id='' 
articleName='SequenceString'>MGGC</moby:String>
		</moby:GenericSequence>
	</moby:Simple>
</moby:queryInput>

I tried to slowly put in the results from SearchPubmed into the test 
xml script from Ken's site, and I can get a result as long as I keep a 
<moby:queryInput> from the example script along with a 
<moby:queryResponse> from the results of SearchPubmed (just copied and 
pasted). The mobyxmltest.pl file attached here is the one referred to 
just now, and the pubmed_combined.pl is my other attempt at using 
SearchPubmed to list the PMIDs (so next I can feed those into 
getPubmed).

I am not sure if I am just missing something obvious or what, but I 
have tried a lot of different things to understand how to get the 
elements I need. Any help would be greatly appreciated! Thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pubmed_combined.pl
Type: application/octet-stream
Size: 1781 bytes
Desc: not available
URL: <http://lists.open-bio.org/pipermail/moby-l/attachments/20031121/1c187020/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mobyxmltest.pl
Type: application/octet-stream
Size: 1286 bytes
Desc: not available
URL: <http://lists.open-bio.org/pipermail/moby-l/attachments/20031121/1c187020/attachment-0001.obj>


More information about the moby-l mailing list