I have a question
concerning the use of mapping-files.
I need to map from
elements that are "defined by an
attribute", to an element or
attribute in another xml standard.
I can figure out how
to go from attribute to element, but defining from an
elements attribute TO an element is what is screwing me
up.
Anyone know how to
do this with a mapping file?
Example:
I need to convert
from this type of format.....
<root_element>
<my_element
name="order">
<tag
name="address1">1234 Test Street</tag>
<tag
name="city">Durango</tag>
<tag
name="state">Colorado</tag>
</my_element>
<my_element
name="order">
<tag
name="address1">4321 Crazy Ave.</tag>
<tag
name="city">Denver</tag>
<tag
name="state">Colorado</tag>
</my_element>
<my_element
name="contact">
<tag
name="phone">555-1234</tag>
</my_element>
</root_element>
To this this type of
format:
<My_New_XML>
<request
phoneNumber="555-1234">
<order>
<address>1234 Test Street</address>
<city>Durango</city>
<state>Colorado</state>
</order>
<order>
<address>4321 Crazy Ave.</address>
<city>Denver</city>
<state>CO</state>
</order>
</request>
</My_New_XML>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
