Tuesday, June 06, 2017

Liquid Data Mapper - Filtering Data

The Liquid Data Mapper makes building complex data transformations quick and easy, but before you start there are a few basic concepts you need to learn.

Filtering Data

Filtering data is much the same as Sorting data, except you need to provide a Boolean value that will be used to determine whether the current node will be accepted or not.

In this example, the data source is an XML file based on the same root element as the destination:
Liquid Data Mapper - Filtering Data
Liquid Data Mapper - Filtering Data

The sample shows XML data being used to create an XML document, when you run the transform you will see the resulting XML document filtered where the 'Name' field is 'Niesha Bruch':

<!--Created by Liquid Data Mapper Libraries (www.liquid-technologies.com)-->
<Contacts>
    <ContactDetails>
        <Name>Niesha Bruch</Name>
        <PhoneNumbers>01874-856950 , 01342-793603</PhoneNumbers>
    </ContactDetails>
</Contacts>

Tip: Execute the transform by pressing Shift-F5.Debug the transform by pressing F5 to start the debugger
    F11 - Step Into
    F9  - Set break point
    F5 - Run (stops on break points)



A free trial of the Liquid Data Mapper is available from:
https://www.liquid-technologies.com/trial-download