File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Product and Other Certifications and the fly likes general xml question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "general xml question" Watch "general xml question" New topic

general xml question

Jayadev Pulaparty
Ranch Hand

Joined: Mar 25, 2002
Posts: 662
Which of the following XML technologies can be used to determine the location of
a particular XML element in XML document?

XML Schema




I guess these are xpath and xpointer....
Any indifferences??
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1183
Looks like a trivial question, but in order 'to determine the location of
a particular XML element in XML document' all that is needed and used is an XPath expression. An XPointer is simply an XPath expression, often a location path, enclosed in the parentheses of xpointer().
However, An XPointer can identify points and ranges, which are two new nodes types.
So, I would also answer XPath and XPointer but it's a close call

William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Vasudha Deepak
Ranch Hand

Joined: Mar 15, 2002
Posts: 86
That's right.XPATH and XPOINTER would be the correct choices.

IBM Certified Developer -XML and Related Technologies(141)<br />SCJP2 SCWCD
I agree. Here's the link:
subject: general xml question
jQuery in Action, 3rd edition