Customer Portal

How to read an XML

Comments 1

  • Avatar
    oldforum
    0
    Comment actions Permalink
    Hi,

    I'm afraid it is not possible from XMLExtract directly. You can transform your xml file by xslt (ie. name="ville" Value="NANCY" ->> ville="NANCY") and then you can use XMLExtract. There exists one more quite complicated solution. If you use something like

    <Mappings>
    <Mapping element="product" outPort="0" xmlFields="id" cloverFields="id">
    <Mapping element="field" outPort="1" parentKey="id" generatedKey="id" xmlFields="name;Value" cloverFields="name;description"/>
    </Mapping>
    </Mappings>

    you get list of records about one product and then you can use reformat component to aggregating products (java code in tranform method)... but last product. You get this one when sent some other record to reformat component after it.

Please sign in to leave a comment.