Customer Portal

XML Writer - write messages into mutli-segments

Comments 2

  • Avatar
    chicagoblues
    0
    Comment actions Permalink
    Quick correction: for each tag (first tag (Person_List) shown below), how would I have it in the below format?

    <Person_List><Person></Person></Person_List>

    Thanks,

    - CB
  • Avatar
    mvarecha
    0
    Comment actions Permalink
    Hi,

    there may be just one root element.
    Person_List or Professional_List, not both of them.

    You should get this result <Person_List><Person>...</Person> ... </Person_List>
    with this configuration:

    <Node id="XML_OUT"
    type="XML_WRITER"
    rootElement="Person_List"
    ... >
    <attr name="mapping"><![CDATA[
    <Mapping
    inPort="0"
    element="Person"
    fieldsAs="elements" >
    </Mapping>
    ]]></attr>
    </Node>

    To specify relation between Person and Professional, add mapping subelement, i.e.
    <Mapping
    inPort="1"
    element="Professional"
    parentKey="personOID"
    key="personOID"
    fieldsAs="elements"
    />

    I believe, this will help you.
    Regards,
    Martin Varecha

Please sign in to leave a comment.