QNames

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Data Sources and Targets > XML and XML schema >

QNames

MapForce resolves QName (qualified name) prefixes (https://www.w3.org/TR/xml-names/#ns-qualnames) when reading data from XML files at mapping execution run-time.

 

QNames are used to reference and abbreviate namespace URIs in XML and XBRL instance documents. There are two types of QNames: Prefixed and Unprefixed QNames.

 

PrefixedName

Prefix  ':'

LocalPart

UnPrefixedName


LocalPart



where LocalPart is an Element or Attribute name.

 

For example, in the listing below, <x:p/> is a QName, where:

 

the prefix "x" is an abbreviation of the namespace "http://myCompany.com".
p is the local part.

 

<?xml version='1.0'?>
<doc xmlns:x="http://myCompany.com">
  <x:p/>
</doc>

 

MapForce also includes several QName-related functions in the core | QName functions library.


© 2019 Altova GmbH