The XML Reader works by mapping XML elements into FME features. These mappings are defined by an XML application called xfMap.
By extracting these mapping strategies into an xfMap document, the XML Reader is not tied to any particular XML format. Because of this, the XML Reader can read many disparate XML applications, ranging from GIS data to purchase orders. xfMap is described in more detail in xfMap.
Specifies whether to read the XML dataset using an xfMap document or to use an XRS document.
Note that the selected configuration type determines which parameters become available in the dialog.
Specifies which XML elements in the dataset, expressed as xfMap expressions, should be extracted into features containing XML fragments. Multiple expressions can be separated with whitespace. The fragments are held in non-geometrical FME features under their xml_fragment attribute. For more information about additional attributes added to extracted features, see XFMAP_FEATURE_PATHS, XFMAP_FEATURE_PATHS_EXCEPT.
This parameter is useful for deconstructing large XML documents into parts that may be processed further in XML, XQuery, XSLT or text processing Workbench transformers.
This example extracts the children of the <dc:SearchResults> element from the dataset into XML fragment features:
XML_XFMAP_FEATURE_PATHS “csw:SearchResults/*”
Specifies which XML elements in the dataset, expressed as xfMap expressions, should be excluded from extraction into features. This parameter is especially useful for match expressions containing wildcard characters. Multiple expressions can be separated with whitespace.
This example excludes extraction of the <csw: metadata> children of the <dc:SearchResults> element from the dataset into XML fragment features:
XML_XFMAP_FEATURE_PATHS_EXCEPT "csw:SearchResults/csw:metadata"
This option allows children of the matched elements to be exposed as attributes on FME Features.
See the Structure Element section in the xfMap documentation for details regarding the options available and more examples.
This option allows children of the matched elements to be extracted as xml fragment attributes.
Specifies the location of the xfMap document. Multiple xfMaps may be specified here.
Specifies the location of an XRS document. An XRS (XML Reader Switch) document allows the XML Reader to automatically configure itself to read "known" XML datasets without the need to specify the appropriate xfMaps in advance.
Specifies whether the reader should continue to extract features from the XML dataset after encountering a geometrical error.
This parameter exposes Format Attributes in Workbench when you create a workspace:
Using the minimum and maximum x and y parameters, define a bounding box that will be used to filter the input features. Only features that interact with the bounding box are returned.
If all four coordinates of the search envelope are specified as 0, the search envelope will be disabled.
Select this option to remove any portions of exported features outside the area of interest.