Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Need Help with XPointer java example

941395Jun 4 2012
Hi Everyone,

We need help regarding the XPointer usage in Java. In theory we completely understand how XPointer works and we have read the spec even. The Problem is the implementation.

We cannot find any implementation for XPointer API. We have cweb, Xerces-J, even JDK 1.6 but we are unable to understand how to use the XPointer.

Our index xml file will have references to all the resources like:
<superlink xlink:type="extended" xlink:show="new" xlink:actuate="onRequest">
<locator xlink:type="locator"
*xlink:href="http://localhost:8080/Docgeneration_web/xmlfiles/AlmondDescription1.xml#description1//description[@id='almond description']"*
xlink:title="almond description" xlink:show="replace" xlink:actuate="onRequest" xlink:role="description" rank="2">
</locator>
</superlink>

We have the xml files in a tomcat server and the superlink holds links to the specific part in the xml. We are unable to understand how to use XPointer API.

Any help is appreciated with XPointer. Like how to use it, parse xpointer expressions. Awaiting reply. Thank you.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 2 2012
Added on Jun 4 2012
0 comments
1,361 views