Skip to Content
author's profile photo Former Member
Former Member

XI 3.0 - JDBC receiver adapter - Need help on formatting the XML

Hello,

With the DIB I have been able to create a message type with this result (from the mapping test):

<?xml version="1.0" encoding="UTF-8"?>

<root>

<statement1>

<orders>

<access>

<status>F</status>

</access>

<key1>

<ref_number>4444</ref_number>

</key1>

</orders>

</statement1>

</root>

However I need

<?xml version="1.0" encoding="UTF-8"?>

<root>

<statement1>

<orders <u><b>action="UPDATE"</b></u> >

<access>

<status>F</status>

</access>

<key1>

<ref_number>4444</ref_number>

</key1>

</orders>

</statement1>

</root>

How do I get to such a result with "action=UPDATE" in the xml?

Thanks

Boaz

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2005 at 10:20 AM

    Hi,

    what kind of Mapping do you use? Is it an XSLT-Mapping?

    I think you have to create an attribute for the Tag <ORDER>.

    In this case you have to type a Statement like this:

    <orders>

    <xsl:attribute name="action">UPDATE</xsl:attribute>

    <xsl:value-of select="ORDERNUMBER"/>

    </orders>

    If you need a dynamic input use this:

    <orders>

    <xsl:attribute name="action"><xsl:value-of select="INPUTTYPE"/></xsl:attribute>

    <xsl:value-of select="ORDERNUMBER"/>

    </orders>

    I hope this can help you.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2005 at 11:18 AM

    Hello,

    I am not sure I understand what you mean by 'xslt mapping'. I am using the regular message mapping with the mapping editor.

    Is there a solution for my problem with the standard DIB tools for creating data types and message types?

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.