Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML Mapping Syntax

Status
Not open for further replies.
Jul 18, 2001
68
US
I'm rather new to XML and need some help with the proper syntax. I'm taking an PO Order file in XML and using it's contents to populate a SAP IDoc (which is irrevelant to the problem). I built the type tree from the dtd files but, the type seems pretty generic. What would be the proper syntax to map the Order# from XML to a field in the IDoc?

XML Order Exert:
<Order>
<AnOrder>
<Order_Information Client_Code=&quot;BIG&quot; Order_Number=&quot;4934&quot; Provider_Order_Number=&quot;&quot; Source_Code=&quot;FS&quot; Key_Code=&quot;Free Dom Shipping&quot;>

Any help on general XML mapping syntax would also be appreciated.
Many Thanks,
Joe
 
Assuming you've used an imported dtd it would be = Order_Number. Or if your output field is something other than text, the appropriate manipulation of the data.

You do need some care over imported DTDs. At version 6.7 it can generate an invalid type tree at the top level of the xml structure. I think 6.5 is ok though.
 
I have used the type tree importer on the dtd to make a type tree for XML order file. I'm running Mercator 5.0 actually. When I use =Order_Number I receive an error of unkown type when I compile the map. I looked at the XML examples the Mercator ships and noticed that the syntax paths are truncated as ellipses are used so they look something like =Order_Number #DATA:..:XML. I need help building the syntax of this kind of statement.
Thanks again.
 
I had a problem with complex xml type trees at vn6.7 when using ellipses. There is a bug which gives that error - it may exist in previous versions. Try not using ellipses then it should work
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top