XML Interview Question and Answers

21. How XML is related with other technologies?
    There are many XML related technologies directly or non directly:
  • SAX - Simple API for XML: reads and writes XML data in a server.
  • DOM - Document Object Model: converts an XML document into a collection of objects.
  • JDOM - Java DOM: processes more data oriented structures.
  • exml - Commerce XML
  • SOX - Schema for Object Oriented XML
  • dom4j - DOM for Java: a factory based implementation, easier to modify for complex, special purpose apps.
  • DTD - Document Type Definition: specifies the kinds of tags that can be included in XML document.
  • Namespace - writes an XML document that uses two or more sets of XML tags in modular fashion.
  • XSL - Extensible stylesheet Language: specifies how to identify data, not how to display it.
  • XSLT - Extensible Stylesheet Language for Transformations: specifies what to convert an XML tag into.
  • SAAJ - SOAP with attachments API for Java.
  • JAXR - Java API for XML Registeries, used to look and find web services
  • TREX - Tree Regular Expression for XML, part of RELAX NG.
Your Name Your Email-ID
Your Answer
22. Where to use XML?
    XML can be used in many places:
  • Data representation in Web, especially for Java client/server web
  • Data interchange in all sorts of transactions as long as both sides agree on
  • Document Driven Programming (DDP)
  • Binding
  • Archiving
Your Name Your Email-ID
Your Answer
23. What is the difference between SAX and DOM?
  • The Simple API for XML(SAX) and the Document Object Model(DOM) are both defined by the W3C.
  • Unlike a SAX parser, a DOM parser allows random access to particular pieces of data in an XML document.
  • Another difference is that with a SAX parser, you can only read an XML document, but with a DOM parser, you can build an object representation of the document and manipulate it in memory, adding a new element or deleting an existing one.
Your Name Your Email-ID
Your Answer
24. What is SML Registry?
  • An XML registry is 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.
  • A registry is available to organizations as a shared resource, often in the form of Web based service.
  • There are many kinds of specifications for XML registries, including ebXML Registry and Repository and the Universal Description, Discovery, and Integration (UDDI).
Your Name Your Email-ID
Your Answer
25. What is xsi?
  • xsi:noNamespaceSchemaLocation = 'YourSchemaDefinition.xsd'
  • The line specifies the schema to use for elements in the document that do not have a namespace prefix.
Your Name Your Email-ID
Your Answer
123456 Page 5 of 6