Altova MapForce 2023 Professional Edition

Altova website: _ic_link XML Mapping

 

This section provides information about aspects specific to XML components. For information about basic data transformation scenarios, see Tutorials.

 

Insert XML schema/file

To insert an XML schema/file, select the menu command Insert | XML Schema/File or the ic-new-schema toolbar button. The dialog box (see screenshot below) will prompt you to choose between a packaged industry-standard schema and a local or remote schema/instance file. If you choose a packaged schema, you will be prompted to select an entry point. If the schema you wish to use is not yet installed, it will automatically be downloaded by the XML Schema Manager.

MF_StructComp_XML01

Generate an XML schema

When you add a local or remote XML file without a schema reference, MapForce will suggest generating an XML schema for you. You will then be prompted to select the directory where the generated schema should be saved.

 

When MapForce generates a schema from an XML file, data types for elements/attributes must be inferred from the XML instance document and may not be exactly what you expect. It is recommended that you check whether the generated schema is an accurate representation of the instance data.

 

If elements or attributes in more than one namespace are present, MapForce generates a separate XML schema for each distinct namespace; therefore, multiple files may be created on the disk.

 

DTD as a document structure

Starting with MapForce 2006 SP2, namespace-aware DTDs are supported for source and target components. To make mappings possible, the namespace-URIs are extracted from the DTD xmlns attribute declarations. However, some DTDs contain xmlns* attribute declarations without namespace URIs (e.g., DTDs used by StyleVision). To make such DTDs usable in MapForce, define the xmlns attribute with the namespace URI as follows:

 

<!ATTLIST fo:root
  xmlns:fo CDATA #FIXED 'http://www.w3.org/1999/XSL/Format'
  ...
>

 

In this section

The section is organized into the following topics:

 

XML Component Settings

Derived Types

NULL Values

Comments and Processing Instructions

CDATA Sections

Wildcards: xs:any/xs:anyAttribute

Custom Namespaces

XML Schema Manager

 

© 2016-2022 Altova GmbH