Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free XML Master Basic I10-001 Exam Questions

Last updated: · 11 practice questions with answers and explanations

Page: 1 / 13 Total 129 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Section 1 - XML Overview

Skill tested: Distinguishes XML structural validation from application-level processing technologies.

A data-integration team receives XML purchase orders from several suppliers. The receiving system must check whether each document follows a shared structural contract before passing accepted data to business processing. The team is comparing technologies that operate at different layers: some define document structure, while others query, transform, or expose document nodes to programs. The solution must validate permitted elements, attributes, and their relationships without writing a custom parser. Which technology is the most appropriate foundation for defining and checking this structural contract?

Correct Answer: C. XML Schema, because it defines document structure and supports validation of XML instances.
Explanation:

XML Schema is a schema definition language: it declares allowed elements, attributes, content models, and data types, and an XML validator can assess instances against those declarations. XPath selects nodes, but it does not define a complete structural contract. DOM provides an application-facing tree model rather than validation rules. XSLT transforms XML; templates do not, by themselves, establish schema validity.

Question 2

New Single answer

Topic: Section 2 - Creating XML Documents

Skill tested: Applies XML well-formedness rules for markup nesting and empty-element syntax.

A supplier's import fails before any DTD or schema validation is attempted. The receiving parser reports a fatal syntax error near a product description. The supplier's document contains this fragment: `ValveUse < carefully4`. The supplier says the intended data is clear and asks whether the receiver can simply treat it as valid because the fields are known. The receiver cannot repair malformed input automatically and must identify a correction that makes the fragment syntactically acceptable XML, without asserting anything about a schema or DTD. Which correction is required?

Correct Answer: B. Close `name` before `item`, and represent the less-than sign as `&lt;` in character data.
Explanation:

XML requires properly nested markup: the `name` element must close before its parent `item` closes. A literal `

Question 3

New Multiple answers

Topic: Section 2 - Creating XML Documents

Skill tested: Differentiates parsed and unparsed external entities and their permitted references.

A publishing system stores reusable text in an external file and also maintains a separate image file that must remain an external binary resource. Its DTD is being revised so XML processors can handle the text when parsing an instance, while the application can identify the image resource without inserting its binary contents into parsed character data. The authors want to use entity references for reusable text and an entity declaration for the image. Which two statements correctly describe the required XML entity handling? Select TWO answers.

Correct Answer: C. Declare the reusable text as a parsed external general entity; its replacement text is processed as XML when referenced in content.; D. Declare the image as an unparsed entity with a notation; it is not expanded as parsed XML character content.
Explanation:

A parsed external general entity can supply replacement text that the processor parses in the context of the reference. An unparsed entity is declared with a notation and is intended to identify non-XML data for application-level handling; its contents are not parsed into element character data. A notation does not turn a parsed entity into an unparsed one. Unparsed entities cannot be expanded as binary bytes in content, and parameter entities are DTD constructs, not a binary-resource mechanism.

Question 4

New Single answer

Topic: Section 3 - DTD

Skill tested: Selects DTD content models that enforce ordering, repetition, and required attributes.

A records service must accept only documents whose root is `record`. Each record must contain exactly one `title` followed by one or more `author` elements, and it must have a required `id` attribute. The service uses a DTD because its interface is fixed and no datatype checking beyond DTD capabilities is needed. A developer proposes a content model and attribute-list declaration, but the team needs to choose the exact declarations that enforce the stated sequence and attribute requirement. Which pair is appropriate?

Correct Answer: B. `` and ``
Explanation:

The comma in `(title, author+)` requires a `title` first, then at least one `author`; `+` means one or more. `#REQUIRED` makes the `id` attribute mandatory. The choice using `|` permits alternatives rather than the required sequence and makes `id` optional. The reversed sequence does not match the requirement, and its attribute is optional. `EMPTY` forbids child elements, while `#FIXED` does not express a required, freely supplied identifier.

Question 5

New Multiple answers

Topic: Section 3 - DTD

Skill tested: Evaluates DTD entity declarations and internal versus external subset precedence.

A software vendor distributes a DTD as an external subset, but a deployment team must add a local declaration for one general entity without editing the vendor's file. The team proposes adding an internal subset to the document's document type declaration. The external DTD also declares an entity with the same name as the local entity. The team wants predictable replacement text and needs to avoid confusing parameter-entity references used in DTD markup with general-entity references used in document content. Which TWO statements are accurate? Select TWO answers.

Correct Answer: A. An internal subset can declare a general entity, and a reference such as `&local;` can use it in document content.; C. When the same entity is declared in both subsets, the first declaration encountered is binding; the internal subset is processed before the external subset.
Explanation:

The internal subset may declare general entities, and general-entity references such as `&local;` are used in document content. XML processes the internal subset before the external subset; if an entity is declared more than once, the first declaration is binding, so an internal declaration takes precedence over a duplicate external declaration. Parameter entities are referenced in DTD contexts, not as replacements for general-entity references in document character content. Being declared externally does not automatically make an entity a parameter entity.

Question 6

New Single answer

Topic: Section 4 - XML Schema

Skill tested: Uses XML Schema simple-type restrictions to enforce lexical and value constraints.

A shipping interface accepts a `priority` element whose content must be an integer from 1 through 5, inclusive. The value cannot have child elements or attributes, and the interface already uses XML Schema for validation. The schema author wants to reuse the built-in integer datatype while narrowing its permitted values, rather than create a complex type or enumerate every value. Which schema design best meets the requirement?

Correct Answer: C. Define a simple type derived by restriction from `xs:integer` and apply inclusive minimum and maximum facets of 1 and 5.
Explanation:

A simple type derived by restriction can constrain the value space of the built-in `xs:integer` type. Inclusive minimum and maximum facets enforce the range 1 through 5 while keeping the element simple content. Complex types are for structured content or attributes, not for adding child elements to an integer value. A string declaration does not provide the required numeric bounds, and simple types are restricted rather than extended in this manner.

Question 7

New Multiple answers

Topic: Section 4 - XML Schema

Skill tested: Distinguishes local element qualification from namespace-qualified global declarations.

A company publishes an XML Schema with target namespace `urn:acme:orders`. Its instance documents use the prefix `o` for that namespace on the root and on the globally declared `Order` element. A local `line` element is declared inside the `Order` type. The consumers require `line` to be in the target namespace too, but the existing schema relies on the default qualification behavior. The team wants the smallest schema-level change that makes local elements namespace-qualified without adding a namespace declaration or prefix to each local declaration. Which two changes or consequences are appropriate? Select TWO answers.

Correct Answer: A. Set `elementFormDefault="qualified"` on the schema element.; B. The instance must identify the `line` element in `urn:acme:orders`, for example using the `o` prefix or a default namespace.
Explanation:

By default, locally declared elements are not necessarily namespace-qualified; setting `elementFormDefault="qualified"` makes local element declarations qualified by the schema's target namespace. Consequently, the instance's `line` element must be represented in that namespace, using an appropriate prefix or default namespace. `attributeFormDefault` concerns local attributes, not elements. A schema's namespace prefix declaration does not itself qualify instance nodes, and removing the target namespace would not satisfy the requirement.

Question 8

New Single answer

Topic: Section 5 - XSLT, XPath

Skill tested: Builds XPath location paths using child, descendant, and attribute axes.

An inventory publisher has XML where each `catalog` can contain nested `section` elements, and any section may contain `item` elements. Each item has an `sku` attribute. An XSLT template must select every item anywhere below the document's catalog element, but only when its `sku` attribute is present. The source may add additional wrapper elements in future revisions, so the selection must not depend on a fixed number of child steps. Which XPath expression meets the requirement?

Correct Answer: C. `/catalog//item[@sku]`
Explanation:

`/catalog//item[@sku]` starts at the document element `catalog`, searches through any number of descendant levels for `item`, and filters those items to ones having a `sku` attribute. The direct-child path in the first choice misses nested sections. The second path searches for `item` directly below a `catalog` found anywhere, so it also misses nested items. The last path reverses the node relationship: attributes are not parents of item elements.

Question 9

New Multiple answers

Topic: Section 5 - XSLT, XPath

Skill tested: Chooses XSLT template and output settings for portable text serialization.

A reporting service uses XSLT 1.0 to transform an XML source into a plain-text report. It must emit the text `Total: ` followed by the string value of each `total` element, with one total per line. The output must not contain an XML declaration or markup tags. The report is generated from a template matching the document root, and the implementation must use standard XSLT 1.0 constructs rather than processor-specific extensions. Which TWO choices are appropriate? Select TWO answers.

Correct Answer: C. Use an `xsl:for-each` selecting `//total` and emit its value with `xsl:value-of`, adding a newline as text.; E. Declare `xsl:output` with `method="text"` to request text serialization.
Explanation:

For plain-text output, XSLT 1.0 provides `xsl:output` with `method="text"`. Within the template, an `xsl:for-each` over `//total` and `xsl:value-of` can emit each element's string value, while literal text or a character reference supplies the label and line break. XML output with its declaration omitted still serializes markup. `xsl:copy-of` copies nodes rather than guaranteeing text-only output, and stylesheet instructions must be children of the stylesheet root.

Question 10

New Single answer

Topic: Section 6 - Namespace

Skill tested: Determines namespace scope and expanded names for default and prefixed elements.

A configuration document begins with ``. Inside it, a child `` contains `12ms`. A downstream XPath-based consumer is configured to match the `config` and `m:limit` elements by namespace URI and local name. The team needs to document the expanded names correctly and avoid mistakenly treating every unprefixed element as belonging to the original default namespace. Which statement accurately describes the elements shown?

Correct Answer: C. `config` is in `urn:acme:config`; `m:limit` and `m:unit` are in `urn:acme:metrics`; `value` is in no namespace.
Explanation:

The default namespace applies to unprefixed element names in its scope, so `config` is in `urn:acme:config`. The `m` prefix binds `m:limit` and `m:unit` to `urn:acme:metrics`. The `xmlns=""` declaration on `value` cancels the inherited default namespace for that element, placing it in no namespace. Namespace declarations have scoped effects; an unprefixed descendant does not remain in the original default namespace after that default is reset.

Question 11

New Single answer

Topic: Section 1 - XML Overview

Skill tested: Selects an XML processing interface based on streaming and memory constraints.

A telemetry gateway processes very large XML event files on a device with limited memory. Its task is to read events in document order, inspect each event's attributes and text when encountered, and discard the data before moving on. The gateway does not need random access, parent navigation, or modifications to an in-memory document tree. The current implementation builds a complete tree and frequently runs out of memory. Which XML processing approach best fits the workload?

Correct Answer: D. Use SAX, handling parser events sequentially without constructing a complete document tree.
Explanation:

SAX is an event-driven parsing interface that reports document content sequentially, allowing the application to process and discard data without retaining the full tree. DOM is attractive when random access and tree navigation are needed, but it generally requires an in-memory representation of the document. XSLT is a transformation language and does not guarantee the streaming behavior described. XPath expressions require an XML processing context and do not replace a parser interface.