Exam Information
Free practice questions with explanations
XML I10-001 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 11
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Section 1 - XML Overview
A logistics company exchanges shipment manifests between a legacy mainframe and a cloud reporting service. The manifests must be validated against a structural definition that supports namespaces, typed integers and dates, and reusable complex types. The integration team is debating whether to keep the existing DTD or migrate to an XML Schema. Which statement correctly describes the capability difference that should drive the decision?
Correct Answer: DExplanationXML Schema provides built-in simple types such as xs:integer and xs:date, lets you derive custom simple types by restriction, and is itself namespace-aware, so it can validate qualified element names. A DTD only declares element content models and attribute types like CDATA or ID, with no typed content and no namespace awareness. Option A is wrong because DTDs have no date or integer types. Option C is wrong because XML Schema constrains attribute values fully. Option D ignores the real expressiveness gap that drives the migration.
-
2 Question 2 Single choice Section 2 - Creating XML Documents
A healthcare vendor generates patient records as XML and feeds them to a parser that rejects the file with a fatal error. The generator writes the patient note field verbatim from free-text clinical entries, and some notes contain the ampersand and less-than characters used in lab shorthand, such as 'HbA1c < 7 & stable'. The records must remain human-readable in the source and must not be altered in meaning. Which change to the generator is the correct fix?
Correct Answer: CExplanationIn element content, the ampersand and less-than character are markup-significant and must be escaped; the predefined entities & and < do exactly that while the text stays faithful. CDATA would also work, but the stated requirement emphasises escaping the specific characters in the generator output, and the predefined entity approach is the standard minimal fix. Option A is a valid alternative in general but is not the answer intended here because it wraps whole fields rather than fixing the characters. Option C misuses unparsed entities, which apply to non-XML data referenced through NOTATION. Option D is unnecessary and destroys readability.
-
3 Question 3 Single choice Section 3 - DTD
A payments team maintains an XML message format shared by eleven partner systems. Each partner must use the same element structure, but one partner has added a proprietary element that the others must never receive. The team wants the shared structural rules maintained in one place and imported by each partner's documents without copying text. A partner also complains that its documents break when the shared rules are edited because the declarations are duplicated inside each file. Which DTD design best fits these constraints?
Correct Answer: DExplanationAn external DTD subset is referenced from the DOCTYPE declaration, so shared rules live in one file and every document imports them without copying. Internal subsets are then reserved for document-specific declarations, which matches the proprietary element requirement. Option A duplicates declarations and reproduces the drift problem. Option C misuses external parsed entities, which hold content fragments rather than declarations. Option D is impossible because an internal subset belongs to one document and cannot be referenced by another.
-
4 Question 4 Single choice Section 4 - XML Schema
A utility company receives meter readings in XML from field devices. The readings element must hold a decimal kilowatt-hour value that is never negative and never exceeds 99999.999, and the reading must carry a unit attribute restricted to the values kWh or MWh. The schema architect wants the value rules reusable across several elements in the same schema, not repeated inline. Which schema construct best satisfies this requirement?
Correct Answer: DExplanationA named simple type derived by restriction from xs:decimal can carry minInclusive and maxInclusive facets plus an enumeration for the unit, and it can be reused by name wherever needed. xs:key enforces uniqueness and reference rules, not value ranges, so option C is wrong. Option B pushes validation out of the schema, which the requirement rules out. Option D disables validation entirely, so it cannot meet the constraint.
-
5 Question 5 Single choice Section 5 - XSLT, XPath
A publisher transforms a catalogue XML file with an XSLT 1.0 stylesheet on a batch server. The stylesheet must output only the titles of books priced under 20 whose category attribute is 'reference', in document order, and must not output whitespace text nodes from the source. The batch job has a strict time budget, so the team wants the selection expressed in a single template match without recursion over siblings. Which XPath expression, used in an xsl:for-each or template select, best meets this requirement?
Correct Answer: AExplanationThe predicate combines both conditions with and, so only reference books under 20 are selected, and the trailing /title returns the titles in document order. Option B uses or, which wrongly includes non-reference books and the wrong price logic. Option C reverses the price comparison. Option D is also valid in outcome but selects through a more complicated path and the question's intent for a direct expression points to option A as the cleanest match, so it is the single defensible key given the stated constraints.
-
6 Question 6 Single choice Section 6 - Namespace
A bank's SOAP-based reporting service embeds a customer element from a shared 'urn:bank:customer' namespace inside a document that already declares a default namespace for the envelope. A developer writes the customer element with no prefix and the default namespace declaration is placed on the root element. Validation fails because the customer element is not recognised in the customer namespace. The team cannot change the shared customer schema. What is the correct fix that keeps the default envelope namespace in place?
Correct Answer: CExplanationAn unprefixed element takes the in-scope default namespace, so the customer element inherits the envelope namespace and fails validation against the customer schema. Declaring a prefix for the customer namespace and qualifying the element with it places the element in the right namespace while leaving the envelope default intact. Option A breaks the envelope. Option C resets the default namespace to none for that element, which still gives the wrong namespace. Option D is not valid XML, since a colon in a name is reserved for namespace prefixes.
-
7 Question 7 Multiple choice Section 1 - XML Overview
A government agency is choosing between parsing approaches for very large citizen-registry XML files, roughly 40 GB each, processed nightly on a server with 8 GB of RAM. The team needs to stream records and stop early when a matching record is found, and must also run occasional XPath queries on smaller extracts. Which TWO statements correctly guide the choice of parsing model? (Choose two.)
Correct Answer: C, EExplanationDOM materialises the full node tree in memory, which cannot fit a 40 GB file on 8 GB of RAM, so it is ruled out for the bulk pass. SAX streams events and holds no tree, letting the job stop early once a record matches. Option C reverses how DOM works. Option D is wrong because SAX does not evaluate XPath; that needs a tree or custom logic. Option E confuses a query language with a parsing model, since XPath runs over a tree rather than replacing parsers.
-
8 Question 8 Order list Section 2 - Creating XML Documents
A content team must publish a product feed that is accepted by a strict partner ingestion engine. The feed is generated by a script, and the engine rejects documents that are not well-formed or that break the declared structure. The team must confirm the output before it is sent to the partner. Arrange the steps in the order they must be performed.
Drag the steps into the correct order, or use the arrows.
- Validate the file against the declared DTD to confirm it is a valid document.
- Correct any reported element nesting or attribute errors in the generator.
- Parse the file with an XML processor to confirm it is well-formed.
- Run the generator script to write the product feed file.
- Transfer the validated file to the partner ingestion endpoint.
Correct Answer:- Run the generator script to write the product feed file.
- Parse the file with an XML processor to confirm it is well-formed.
- Validate the file against the declared DTD to confirm it is a valid document.
- Correct any reported element nesting or attribute errors in the generator.
- Transfer the validated file to the partner ingestion endpoint.
ExplanationThe feed must first exist, so generation comes first. A well-formedness check comes before validation because a document must be well-formed before it can be validated against a DTD. Errors found along the way are fixed in the generator, and only a file that passes both checks is transferred. Placing transfer earlier would send unverified output, and validating before the well-formedness parse would make the validation results meaningless.
-
9 Question 9 Drag and drop Section 3 - DTD
A telecom operator defines a DTD for subscriber records. The record ID must be unique within a document, the status must be one of a fixed set of values with a default of active, and the notes element must be allowed to contain character data, child elements, and a logo image reference. Match each requirement to the DTD declaration that meets it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
A logo image must be included from non-XML binary dataStatus must be one of a fixed set of values, defaulting to activeEach record must carry an identifier that is unique within the documentElement content model with ANYATTLIST declaration with type IDATTLIST declaration with enumerated type and default valueParameter entity declarationUnparsed entity declaration with NDATACorrect Answer:- Each record must carry an identifier that is unique within the document → ATTLIST declaration with type ID
- Status must be one of a fixed set of values, defaulting to active → ATTLIST declaration with enumerated type and default value
- A logo image must be included from non-XML binary data → Unparsed entity declaration with NDATA
ExplanationAn attribute typed ID enforces document-wide uniqueness, and an enumerated attribute type with a default value handles the fixed status set. Binary image content cannot be parsed as XML, so it is referenced through an unparsed entity declared with NDATA. Parameter entities are used for reusing DTD fragments, not for these record rules, and an ANY content model would disable the element restriction the team needs.
-
10 Question 10 Single choice Section 5 - XSLT, XPath
A logistics firm uses an XSLT 1.0 stylesheet to produce an HTML shipment summary from an XML manifest. The stylesheet must emit the total weight of all packages whose status attribute is 'delivered', formatted to two decimal places, and the output must be produced by a single xsl:value-of element. The weight values are text inside a weight child element of each package. Which expression should the xsl:value-of select attribute contain?
Correct Answer: BExplanationXPath's sum function converts the node-set of weight values to numbers and totals them, and format-number with the picture '0.00' produces two decimal places, all within one xsl:value-of select. xsl:number is for sequence numbering, not formatting computed totals, so option B is wrong. count returns the number of packages rather than the weight total. concat joins strings and would not add the weights.
-
11 Question 11 Single choice Section 6 - Namespace
A retail platform merges an order document in the 'urn:shop:order' namespace with a pricing fragment that uses the 'urn:shop:price' namespace. A developer writes an XPath expression that selects the price element with the path /order/price. The query returns no nodes even though the price element is present in the document. The team must keep the price elements in their own namespace without renaming them. Which change to the XPath expression is correct?
Correct Answer: BExplanationIn XPath, an unprefixed name test matches only elements in no namespace, so a price element in urn:shop:price is not matched by /order/price. Binding a prefix to that namespace in the evaluation context and using it in the path matches correctly. Option C is wrong because //price still matches only no-namespace elements, not any namespace. Option B is not a valid way to select across namespaces. Option D changes the source data, which the team has ruled out.
These are 11 of the 129 questions in the full I10-001 pack.
Get All 129 QuestionsGet all 129 questions & answers
Full access options for XML I10-001
Self-study
PDF Version
- 129 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 129 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 129 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the I10-001 Exam (XML Master Basic) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.