Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Free practice questions with explanations

XML I10-002 Dumps 2026 with Free Practice Questions and Answers

10 original XML Master Professional Application Developer exam practice questions with answers and explanations.

Covers Section 5 - XML Processing System Design Technology, Section 2 - DOM / SAX Programming, Section 6 - Utilizing XML, Section 1 - DOM / SAX and 2 more.

Question types: single answer, multiple answers, order list and drag and drop. A new question is added every 15 days.

I10-002 Practice Set Details

Vendor
XML
Exam Code
I10-002
Questions On This Page
10
Exam Topics Covered
6 of 6
Question Types
4
Newest Question
New Question
Every 15 days
Full Question Set
80
Certification
XML Master
10 questions

XML I10-002 Exam Questions and Answers by Topic

Section 1 - DOM / SAX

1 practice question on this topicWhat this topic covers

Question 1

Added

Single Answer

A document-ingestion service handles XML files up to several gigabytes. A downstream audit requires the service to preserve the exact source formatting, including quote style, entity-reference spelling, and whitespace, while also exposing the complete document as a navigable tree. The team proposes DOM Level 2 Core because it represents the document as nodes and allows arbitrary navigation. The service has a strict memory ceiling and cannot retain a separate copy of the original bytes. Which design decision best addresses the requirements?

Correct answer: B

DOM exposes a logical tree of nodes; it does not guarantee preservation of lexical details such as quote delimiters, entity-reference spelling, or the original byte encoding. Exact source reproduction therefore requires retaining the original bytes separately, which conflicts with the stated memory ceiling and must be addressed as an architectural constraint. Namespace awareness does not add lexical preservation. SAX reports parsing events rather than retaining source token spelling, and entity-reference settings do not make DOM a lossless source archive.

Section 2 - DOM / SAX Programming

2 practice questions on this topicWhat this topic covers

Question 2

Added

Multiple Answers

A Java application reads an XML document into a DOM tree, finds an element in a different document, and must insert a copy under a target element. The source document must remain unchanged, and the inserted node must be owned by the target document so later DOM operations do not fail with a wrong-document error. The application uses namespace-aware parsing and must preserve the element's attributes and descendants. Which two actions satisfy these requirements? (Choose two.)

Correct answer: A, C

importNode creates a copy owned by the target document, and deep=true copies the element's attributes and descendants without changing the source. Reconstructing the required target-document element with createElement is also valid when the application explicitly recreates its required content, though it must copy the attributes and descendants itself. cloneNode alone leaves the clone associated with its source document. adoptNode transfers rather than copies the source node. A shallow import does not copy descendants.

Question 3

Added

Single Answer

A Java SAX2 pipeline processes orders in a namespace-qualified vocabulary. It must distinguish elements that share a local name but have different namespace URIs, and it must not treat indentation between child elements as order data. The parser is namespace-aware, and the application currently compares qName strings while appending every characters() callback to the current field. Which change is the most reliable while remaining portable across SAX2 parsers?

Correct answer: A

With namespace processing enabled, SAX exposes namespace URI and local name as the reliable expanded-name identity; prefixes are syntactic aliases and can vary. SAX may divide text across multiple characters() callbacks, so text must be accumulated across callbacks and interpreted according to the document vocabulary's whitespace rules. Removing prefixes can collapse distinct namespaces. Namespace-prefix reporting does not remove whitespace, and disabling external entities is unrelated. Neither localName alone nor a single callback per text node is a safe assumption.

Section 3 - XSLT

1 practice question on this topicWhat this topic covers

Question 4

Added

Order List

A publisher is revising an XSLT 1.0 stylesheet that combines a base stylesheet with an importing customization. Both files define a template matching the same element in the default mode, but the customization must override the base rule. The processor uses standard XSLT import precedence, and the team must preserve the existing base templates while resolving the conflict. Arrange the stylesheet construction steps in the order they must be performed.

Drag the steps into the correct order, or use the arrows.

  1. Declare the overriding template in the importing stylesheet.
  2. Run the transformation with the importing stylesheet as the principal stylesheet.
  3. Place the base stylesheet in its own xsl:stylesheet document.
  4. Add xsl:import for the base stylesheet as the first child of the importing stylesheet.
Correct answer:
  1. Place the base stylesheet in its own xsl:stylesheet document.
  2. Add xsl:import for the base stylesheet as the first child of the importing stylesheet.
  3. Declare the overriding template in the importing stylesheet.
  4. Run the transformation with the importing stylesheet as the principal stylesheet.

The base stylesheet must exist before it can be imported. In XSLT 1.0, xsl:import declarations appear before other top-level declarations, and imported rules have lower import precedence than rules in the importing stylesheet. The importing stylesheet's matching template therefore wins without deleting or editing the base rule. Running the principal importing stylesheet applies those precedence rules; reversing the import relationship would make the base rule have higher precedence.

Section 4 - XML Schema

1 practice question on this topicWhat this topic covers

Question 5

Added

Single Answer

A company publishes a purchase-order schema in namespace urn:acme:orders and reuses a customer type defined by an independently maintained schema in urn:acme:customers. Orders and order-line elements must be globally referenceable by other schemas, but the line's quantity element is private to the order type. Schema documents are versioned separately, and redefining the customer schema is prohibited. Which schema design best meets the requirements?

Correct answer: C

A schema in one target namespace uses xsd:import to reference declarations from a different namespace. Global order and order-line declarations make them independently referenceable, while a local quantity declaration keeps that element scoped to its containing type. xsd:include is for schemas with the same target namespace (or the applicable no-target-namespace case), not this independent customer namespace. Global quantity violates the privacy requirement, and copying the customer type would duplicate the separately governed definition.

Section 5 - XML Processing System Design Technology

3 practice questions on this topicWhat this topic covers

Question 6

Added

Drag And Drop

A B2B gateway team is documenting a SOAP 1.1 integration. One partner sends SOAP over HTTP using document-style messaging, and the contract must identify the abstract operation interface, the concrete protocol and message-format binding, and the network destination. The WSDL is split into abstract and concrete sections to support alternate transports later. Match each WSDL construct to the role it performs.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

Concrete protocol and message-format details
Abstract operation and message definitions
Network-addressed instance of a binding
Grouping of related services
portType
binding
service
port
Correct answer:
  • Abstract operation and message definitions → portType
  • Concrete protocol and message-format details → binding
  • Network-addressed instance of a binding → port
  • Grouping of related services → service

In WSDL 1.1, portType defines abstract operations and their messages, binding supplies concrete protocol and message-format details, and a port associates a binding with a network address. A service groups related ports. Keeping these responsibilities separate permits the abstract interface to be reused with another binding or endpoint. Treating the endpoint as the binding conflates address with protocol details, while treating service as the abstract interface confuses grouping with operations.

Question 7

Added

Multiple Answers

A financial exchange signs XML business messages before transmission. A receiving gateway verifies the signature after parsing, but equivalent documents fail verification when namespace declarations are relocated or attributes are serialized in a different order. The signature is an XML Signature enveloped signature, and the gateway must interoperate with partners that canonicalize the signed node set. The team is considering XML Encryption as a substitute for canonicalization to reduce the failures. Which two actions are appropriate? (Choose two.)

Correct answer: C, D

XML Signature verification applies the declared transforms, including canonicalization, to the referenced node set before calculating and checking the digest. Exclusive XML Canonicalization is useful for a signed subtree whose validity should not be affected by unrelated ancestor namespace context. Encryption provides confidentiality, not canonicalization or signature interoperability. Hashing raw transport bytes ignores the signature's reference and transforms. Deleting namespace declarations can alter the signed data and cannot safely replace the declared canonicalization algorithm.

Question 8

Added

Single Answer

A retailer exchanges XML invoices with suppliers using different systems. The retailer stores invoice data in a relational database and is building an adapter that maps XML elements to database columns. Some suppliers emit UTF-8 and others emit UTF-16; occasional failures show corrupted non-ASCII supplier names, although the XML is well-formed when decoded manually. The integration must remain standards-based and avoid supplier-specific byte heuristics. What should the adapter do first when accepting each document?

Correct answer: B

A conforming XML processor can determine the document encoding using the XML declaration together with the encoding-detection rules and byte signatures, avoiding destructive guesses in the adapter. The parser should receive the original bytes rather than text already decoded under an assumed charset. Replacing non-ASCII bytes corrupts data, and choosing a decoder solely from the declaration can fail where byte-order information or transport-level handling matters. Assuming UTF-16 is equally unsafe for UTF-8 documents.

Section 6 - Utilizing XML

2 practice questions on this topicWhat this topic covers

Question 9

Added

Order List

A Java service must create an XML purchase order conforming to a supplied schema. The schema uses a target namespace and qualified local elements. The service has a DOM Document and will serialize it only after validation; the generated root must identify the namespace correctly, and child elements must be in that namespace. Arrange the construction and validation steps in the required order.

Drag the steps into the correct order, or use the arrows.

  1. Create each required child using createElementNS with the same namespace and append it in schema order.
  2. Validate the completed document against the schema before serialization.
  3. Create the root element using createElementNS with the schema target namespace and qualified name.
  4. Create the Document with a namespace-aware DOM implementation.
Correct answer:
  1. Create the Document with a namespace-aware DOM implementation.
  2. Create the root element using createElementNS with the schema target namespace and qualified name.
  3. Create each required child using createElementNS with the same namespace and append it in schema order.
  4. Validate the completed document against the schema before serialization.

Namespace-aware DOM construction is required before creating namespace-qualified nodes. createElementNS associates each element with the namespace URI; using only a prefixed lexical name does not establish that association. The root and its qualified children must be created and assembled before the complete document can be validated against the schema's content model and ordering constraints. Serializing before validation would not establish conformance, and validating an incomplete tree cannot confirm the final purchase order.

Question 10

Added

Single Answer

A logistics application receives shipment XML governed by an XSD with a target namespace. A Java SAX2 analyzer must count only shipment elements in that namespace and extract their carrier attribute. The partner is free to change prefixes, and the application must not build a DOM because the feed is large. A developer proposes matching the literal qName "s:shipment" and reading attributes by the same prefixed spelling. What is the best correction?

Correct answer: D

SAX namespace processing provides namespaceURI and localName for each element, so matching the URI and local name remains correct when a partner changes its prefix. An unqualified carrier attribute is not in the element's namespace and should be retrieved by its unqualified attribute name. Prefixes are aliases rather than identities, so requiring a fixed qName is brittle. Prefix reporting does not make a prefix semantically authoritative, and building a DOM is unnecessary and violates the memory constraint.

More Practice Questions

Get the Full XML I10-002 Dumps as PDF and Practice Test

10 questions are free on this page and the full set has 80. It comes as a PDF and an online practice test, with 90 days of free updates.