nerdexam
IBM

000-349 · Question #56

When a map target is an XML document, which one of the following is always true?

The correct answer is C. When mapping into a native XML schema, namespace references used in the schema will be. When mapping to a native XML schema in IBM Sterling, namespace declarations and prefix references defined in the schema are preserved and written into the output XML document.

Design

Question

When a map target is an XML document, which one of the following is always true?

Options

  • AWhen mapping into a Xerces type tree, the schema must be present at run time.
  • BWhen mapping into a Xerces type tree, the root element of the schema will be the first
  • CWhen mapping into a native XML schema, namespace references used in the schema will be
  • DWhen mapping into a native XML schema, empty elements will be created for elements with

How the community answered

(36 responses)
  • A
    19% (7)
  • B
    6% (2)
  • C
    72% (26)
  • D
    3% (1)

Why each option

When mapping to a native XML schema in IBM Sterling, namespace declarations and prefix references defined in the schema are preserved and written into the output XML document.

AWhen mapping into a Xerces type tree, the schema must be present at run time.

The Xerces type tree is built from the schema at design time, and the schema is not required to be physically present at runtime for the map to execute correctly.

BWhen mapping into a Xerces type tree, the root element of the schema will be the first

The root element of a Xerces type tree is determined by the schema hierarchy and user configuration, not by the order elements appear in the schema file, so it is not always the first element listed.

CWhen mapping into a native XML schema, namespace references used in the schema will beCorrect

Native XML schema processing retains namespace references as declared in the source schema, ensuring that namespace URIs and prefix bindings appear correctly in the generated output document. This is an inherent characteristic of native XML schema mapping that distinguishes it from Xerces-type tree mapping, which handles namespaces differently.

DWhen mapping into a native XML schema, empty elements will be created for elements with

Native XML schema mapping does not unconditionally create empty elements for unmapped fields - empty element creation is governed by specific map rules and output settings rather than being always true.

Concept tested: Native XML schema mapping and namespace handling

Source: https://www.ibm.com/docs/en/b2b-integrator/6.1.0?topic=schemas-native-xml-schema-map-overview

Topics

#XML target#native XML schema#namespace references#Xerces

Community Discussion

No community discussion yet for this question.

Full 000-349 Practice