troubleshooting Question

Xpath Java query problem(urgent)

Avatar of mostenscer
mostenscer asked on
Web Languages and StandardsJavaXML
22 Comments1 Solution659 ViewsLast Modified:
I am unable to make a query to select information from this schema/XML
from every record i need to pull text for
<ims1_2_1:title>
</ims1_2_1:description> and
<ims1_2_1:keyword>
i am looking forward to have some thing like this for each "record" There are two in this doc in the out put I am using j2SE 5.0 no other apis
If some can guide me in forming the XPATH queries will be a big day saver for me
-----

Title: Digital Channels
Description:An introduction to the components and structure of a digital channel.
Keywords:binary symmetric channel, BPSK..........................................etc



      <OAI-PMH xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/                              http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
<responseDate>2007-07-23T16:50:52Z</responseDate>
<request metadataPrefix="ims1_2_1" verb="ListRecords">http://cooker.cnx.rice.edu:8080/content/OAI</request>

      <ListRecords>

      <record>

      <header>
<identifier>oai:cooker.cnx.rice.edu:8080:m0102</identifier>
<datestamp>2005-04-13T21:39:12Z</datestamp>
</header>

      <metadata>

      <ims1_2_1:lom xsi:schemaLocation="http://www.imsglobal.org/xsd/imsmd_v1p2 http://www.imsglobal.org/xsd/imsmd_v1p2p4.xsd">

      <ims1_2_1:general>

      <ims1_2_1:title>
<ims1_2_1:langstring xml:lang="en">Digital Channels</ims1_2_1:langstring>
</ims1_2_1:title>
<ims1_2_1:language>en</ims1_2_1:language>

      <ims1_2_1:description>

      <ims1_2_1:langstring xml:lang="en">
An introduction to the components and structure of a digital channel.
</ims1_2_1:langstring>
</ims1_2_1:description>

      <ims1_2_1:keyword>
<ims1_2_1:langstring xml:lang="en">binary symmetric channel</ims1_2_1:langstring>
</ims1_2_1:keyword>

      <ims1_2_1:keyword>
<ims1_2_1:langstring xml:lang="en">BPSK</ims1_2_1:langstring>
</ims1_2_1:keyword>

      <ims1_2_1:keyword>
<ims1_2_1:langstring xml:lang="en">digital communication</ims1_2_1:langstring>
</ims1_2_1:keyword>

      <ims1_2_1:keyword>
<ims1_2_1:langstring xml:lang="en">digital communication receiver</ims1_2_1:langstring>
</ims1_2_1:keyword>

      <ims1_2_1:keyword>
<ims1_2_1:langstring xml:lang="en">digital communication systems</ims1_2_1:langstring>
</ims1_2_1:keyword>

      <ims1_2_1:keyword>
<ims1_2_1:langstring xml:lang="en">error probability</ims1_2_1:langstring>
</ims1_2_1:keyword>

      <ims1_2_1:keyword>
<ims1_2_1:langstring xml:lang="en">FSK</ims1_2_1:langstring>
</ims1_2_1:keyword>

      <ims1_2_1:keyword>
<ims1_2_1:langstring xml:lang="en">fundamental model of communication</ims1_2_1:langstring>
</ims1_2_1:keyword>

      <ims1_2_1:keyword>
<ims1_2_1:langstring xml:lang="en">signal set</ims1_2_1:langstring>
</ims1_2_1:keyword>

      <ims1_2_1:keyword>
<ims1_2_1:langstring xml:lang="en">transition diagrams</ims1_2_1:langstring>
</ims1_2_1:keyword>

      <ims1_2_1:keyword>
<ims1_2_1:langstring xml:lang="en">transmission bandwidth</ims1_2_1:langstring>
</ims1_2_1:keyword>

      <ims1_2_1:structure>

      <ims1_2_1:source>
<ims1_2_1:langstring xml:lang="x-none">LOMv1.0</ims1_2_1:langstring>
</ims1_2_1:source>

      <ims1_2_1:value>
<ims1_2_1:langstring xml:lang="x-none">Mixed</ims1_2_1:langstring>
</ims1_2_1:value>
</ims1_2_1:structure>

      <ims1_2_1:aggregationlevel>

      <ims1_2_1:source>
<ims1_2_1:langstring xml:lang="x-none">LOMv1.0</ims1_2_1:langstring>
</ims1_2_1:source>

      <ims1_2_1:value>
<ims1_2_1:langstring xml:lang="x-none">2</ims1_2_1:langstring>
</ims1_2_1:value>
</ims1_2_1:aggregationlevel>
</ims1_2_1:general>

      <ims1_2_1:lifecycle>

      <ims1_2_1:version>
<ims1_2_1:langstring xml:lang="x-none">2.13</ims1_2_1:langstring>
</ims1_2_1:version>

      <ims1_2_1:contribute>

      <ims1_2_1:role>

      <ims1_2_1:source>
<ims1_2_1:langstring xml:lang="x-none">LOMv1.0</ims1_2_1:langstring>
</ims1_2_1:source>

      <ims1_2_1:value>
<ims1_2_1:langstring xml:lang="x-none">Author</ims1_2_1:langstring>
</ims1_2_1:value>
</ims1_2_1:role>

      <ims1_2_1:centity>

      <ims1_2_1:vcard>

BEGIN:vCard
FN:Don Johnson
EMAIL;INTERNET:dhj@rice.edu
END:vCard
            
</ims1_2_1:vcard>
</ims1_2_1:centity>

      <ims1_2_1:date>
<ims1_2_1:datetime>2005/04/13 16:39:12 GMT-5</ims1_2_1:datetime>
</ims1_2_1:date>
</ims1_2_1:contribute>
</ims1_2_1:lifecycle>

      <ims1_2_1:technical>
<ims1_2_1:format>text/html</ims1_2_1:format>

      <ims1_2_1:location type="URI">
http://cooker.cnx.rice.edu:8080/content/m0102/2.13/
</ims1_2_1:location>

      <ims1_2_1:requirement>

      <ims1_2_1:type>

      <ims1_2_1:source>
<ims1_2_1:langstring xml:lang="x-none">LOMv1.0</ims1_2_1:langstring>
</ims1_2_1:source>

      <ims1_2_1:value>
<ims1_2_1:langstring xml:lang="x-none">Browser</ims1_2_1:langstring>
</ims1_2_1:value>
</ims1_2_1:type>

      <ims1_2_1:name>

      <ims1_2_1:source>
<ims1_2_1:langstring xml:lang="x-none">LOMv1.0</ims1_2_1:langstring>
</ims1_2_1:source>

      <ims1_2_1:value>
<ims1_2_1:langstring xml:lang="x-none">Any</ims1_2_1:langstring>
</ims1_2_1:value>
</ims1_2_1:name>
</ims1_2_1:requirement>
</ims1_2_1:technical>

      <ims1_2_1:rights>

      <ims1_2_1:copyrightandotherrestrictions>

      <ims1_2_1:source>
<ims1_2_1:langstring xml:lang="x-none">LOMv1.0</ims1_2_1:langstring>
</ims1_2_1:source>

      <ims1_2_1:value>
<ims1_2_1:langstring xml:lang="x-none">yes</ims1_2_1:langstring>
</ims1_2_1:value>
</ims1_2_1:copyrightandotherrestrictions>

      <ims1_2_1:description>
<ims1_2_1:langstring xml:lang="en">http://creativecommons.org/licenses/by/1.0</ims1_2_1:langstring>
</ims1_2_1:description>
</ims1_2_1:rights>

      <ims1_2_1:classification>

      <ims1_2_1:purpose>

      <ims1_2_1:source>
<ims1_2_1:langstring xml:lang="x-none">LOMv1.0</ims1_2_1:langstring>
</ims1_2_1:source>

      <ims1_2_1:value>
<ims1_2_1:langstring xml:lang="x-none">Discipline</ims1_2_1:langstring>
</ims1_2_1:value>
</ims1_2_1:purpose>

      <ims1_2_1:keyword>
<ims1_2_1:langstring xml:lang="en">('Science and Technology',)</ims1_2_1:langstring>
</ims1_2_1:keyword>
</ims1_2_1:classification>
</ims1_2_1:lom>
</metadata>
</record>

      <record>

      <header>
<identifier>oai:cooker.cnx.rice.edu:8080:m10657</identifier>
<datestamp>2004-02-25T17:51:54Z</datestamp>
</header>

      <metadata>

      <ims1_2_1:lom xsi:schemaLocation="http://www.imsglobal.org/xsd/imsmd_v1p2 http://www.imsglobal.org/xsd/imsmd_v1p2p4.xsd">

      <ims1_2_1:general>

      <ims1_2_1:title>
<ims1_2_1:langstring xml:lang="en">Communications: Using Direct Digital Synthesis</ims1_2_1:langstring>
</ims1_2_1:title>
<ims1_2_1:language>en</ims1_2_1:language>

      <ims1_2_1:description>

      <ims1_2_1:langstring xml:lang="en">
This module introduces Direct Digital Synthesis with prepared code that transmits arbitrary input as an FM radio signal.  The module then explains how to program the DDS hardware and concludes with a simple Frequency Shift Keying exercise.
</ims1_2_1:langstring>
</ims1_2_1:description>

      <ims1_2_1:keyword>
<ims1_2_1:langstring xml:lang="en">communications</ims1_2_1:langstring>
</ims1_2_1:keyword>

      <ims1_2_1:keyword>
<ims1_2_1:langstring xml:lang="en">digital signal processing</ims1_2_1:langstring>
</ims1_2_1:keyword>

      <ims1_2_1:keyword>
<ims1_2_1:langstring xml:lang="en">direct digital synthesis</ims1_2_1:langstring>
</ims1_2_1:keyword>

      <ims1_2_1:keyword>
<ims1_2_1:langstring xml:lang="en">transmitter</ims1_2_1:langstring>
</ims1_2_1:keyword>

      <ims1_2_1:keyword>
<ims1_2_1:langstring xml:lang="en">wireless</ims1_2_1:langstring>
</ims1_2_1:keyword>

      <ims1_2_1:structure>

      <ims1_2_1:source>
<ims1_2_1:langstring xml:lang="x-none">LOMv1.0</ims1_2_1:langstring>
</ims1_2_1:source>

      <ims1_2_1:value>
<ims1_2_1:langstring xml:lang="x-none">Mixed</ims1_2_1:langstring>
</ims1_2_1:value>
</ims1_2_1:structure>

      <ims1_2_1:aggregationlevel>

      <ims1_2_1:source>
<ims1_2_1:langstring xml:lang="x-none">LOMv1.0</ims1_2_1:langstring>
</ims1_2_1:source>

      <ims1_2_1:value>
<ims1_2_1:langstring xml:lang="x-none">2</ims1_2_1:langstring>
</ims1_2_1:value>
</ims1_2_1:aggregationlevel>
</ims1_2_1:general>

      <ims1_2_1:lifecycle>

      <ims1_2_1:version>
<ims1_2_1:langstring xml:lang="x-none">2.5</ims1_2_1:langstring>
</ims1_2_1:version>

      <ims1_2_1:contribute>

      <ims1_2_1:role>

      <ims1_2_1:source>
<ims1_2_1:langstring xml:lang="x-none">LOMv1.0</ims1_2_1:langstring>
</ims1_2_1:source>

      <ims1_2_1:value>
<ims1_2_1:langstring xml:lang="x-none">Author</ims1_2_1:langstring>
</ims1_2_1:value>
</ims1_2_1:role>

      <ims1_2_1:centity>

      <ims1_2_1:vcard>

BEGIN:vCard
FN:Matthew Berry
EMAIL;INTERNET:mjberry@uiuc.edu
END:vCard
            
</ims1_2_1:vcard>
</ims1_2_1:centity>

      <ims1_2_1:date>
<ims1_2_1:datetime>2004/02/25 11:51:54 US/Central</ims1_2_1:datetime>
</ims1_2_1:date>
</ims1_2_1:contribute>
</ims1_2_1:lifecycle>

      <ims1_2_1:technical>
<ims1_2_1:format>text/html</ims1_2_1:format>

      <ims1_2_1:location type="URI">
http://cooker.cnx.rice.edu:8080/content/m10657/2.5/
</ims1_2_1:location>

      <ims1_2_1:requirement>

      <ims1_2_1:type>

      <ims1_2_1:source>
<ims1_2_1:langstring xml:lang="x-none">LOMv1.0</ims1_2_1:langstring>
</ims1_2_1:source>

      <ims1_2_1:value>
<ims1_2_1:langstring xml:lang="x-none">Browser</ims1_2_1:langstring>
</ims1_2_1:value>
</ims1_2_1:type>

      <ims1_2_1:name>

      <ims1_2_1:source>
<ims1_2_1:langstring xml:lang="x-none">LOMv1.0</ims1_2_1:langstring>
</ims1_2_1:source>

      <ims1_2_1:value>
<ims1_2_1:langstring xml:lang="x-none">Any</ims1_2_1:langstring>
</ims1_2_1:value>
</ims1_2_1:name>
</ims1_2_1:requirement>
</ims1_2_1:technical>

      <ims1_2_1:rights>

      <ims1_2_1:copyrightandotherrestrictions>

      <ims1_2_1:source>
<ims1_2_1:langstring xml:lang="x-none">LOMv1.0</ims1_2_1:langstring>
</ims1_2_1:source>

      <ims1_2_1:value>
<ims1_2_1:langstring xml:lang="x-none">yes</ims1_2_1:langstring>
</ims1_2_1:value>
</ims1_2_1:copyrightandotherrestrictions>

      <ims1_2_1:description>
<ims1_2_1:langstring xml:lang="en">http://creativecommons.org/licenses/by/1.0</ims1_2_1:langstring>
</ims1_2_1:description>
</ims1_2_1:rights>

      <ims1_2_1:classification>

      <ims1_2_1:purpose>

      <ims1_2_1:source>
<ims1_2_1:langstring xml:lang="x-none">LOMv1.0</ims1_2_1:langstring>
</ims1_2_1:source>

      <ims1_2_1:value>
<ims1_2_1:langstring xml:lang="x-none">Discipline</ims1_2_1:langstring>
</ims1_2_1:value>
</ims1_2_1:purpose>

      <ims1_2_1:keyword>
<ims1_2_1:langstring xml:lang="en">('Science and Technology',)</ims1_2_1:langstring>
</ims1_2_1:keyword>
</ims1_2_1:classification>
</ims1_2_1:lom>
</metadata>
</record>
</ListRecords>
</OAI-PMH
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 22 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 22 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros