XPointer Interview Preparation Guide
Download PDF

XPointer Interview Questions and Answers will guide us now that XPointer is a system for addressing components of XML based internet media. XPointer is divided among four specifications, a framework which forms the basis for identifying XML fragments, a positional element addressing scheme, a scheme for namespaces, so learn more about XPointer by the help of this XPointer Interview Questions with Answers guide

19 XPointer Questions and Answers:

1 :: What is XPointer?

The part of the XLL specification that is concerned with identifying sections of documents so that they can be referenced in links or included in other documents.

2 :: What is XML registry?

An infrastructure that enables the building, deployment, and discovery of Web services. It is a neutral third party that facilitates dynamic and loosely coupled business-to-business (B2B) interactions.

3 :: Can I use a relative URI as a namespace name?

Yes. However, such usage is deprecated, so you should never do it.

4 :: How do I install the XPointer processor?

Download the latest "cweb-xpointer" release from SourceForge. This project uses Apache Maven and Java 1.4+, so you will need to install those as well. Normally you will also want to download one of the XPointer Framework integrations, such as the xpointer+dom4j or the xpointer+jdom package. These "integration packages" provide support for a specific XML Document model.

5 :: What characters are allowed in a qualified name?

The prefix can contain any character that is allowed in the Name production in XML 1.0 except a colon. The same is true of the local name. Thus, there can be at most one colon in a qualified name -- the colon used to separate the prefix from the local name.

6 :: Explain about XML signature?

XML signature is recommended by w3c. It acts as a digital signature for XML documents. This technology is used by various technologies such as SAML, SOAP, etc.

7 :: Define XPointer?

XPointer is an compact name of XML Pointer Language.
XPointer give facility hyperlink to point one or parts in an XML document.

8 :: How to integrate XPointer into my application?

There are several ways to do this. The easiest is to use the uberjar release, which can be directly executed on any Java enabled platform. This makes it trivial to test and develop XPointer support in your applications, including server-side XPointer. The uberjar release contains a Java class org.CognitiveWeb.xpointer.XPointerDriver that provides a simple but flexible command line utility that exposes an XPointer processor.

9 :: Define XML registry?

An infrastructure that enables the building, deployment, and discovery of Web services. It is a neutral third party that facilitates dynamic and loosely coupled business-to-business (B2B) interactions.

10 :: Define the syntax of XPointer?

We use XPointer to made hyperlink that point one or more parts in an XML document.means using XPointer we can made a hyperlink that point points to web page or bookmarks that are inside the web page by using #.

Example:
href="http://www.allexamples.com/cdlist.xml#id('kate').child(4,item)"

In the above example we use XPointer to point the fourth item in a list with a unique id "kate":