XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Chris LingorSubject: XML to 837I EDI -- multiple NM1 segments
Author: Chris Lingor
Date: 14 May 2009 05:35 PM
I'm trying to map from XML to the built-in XSD schema for the 837I EDI and I'm having trouble figuring out how to create multiple loops of a given GROUP node.

For example, I need to map from my XML ProviderName to TS_837/GROUP_2/GROUP_3/NM1[NM101='85']/NM103 (setting both NM101, NM103, and all other related fields for the provider). However, I also need to map from PayToName to TS_837/GROUP_2/GROUP_3/NM1[NM101='PR']/NM103 (as well as other related Pay-to fields with NM101='PR').

I understand how to map the other direction using XPath, but I'm not sure how to set up the XQuery functions in the mapper to map from multiple XML nodes to multiple loops in the target XSD.

Could someone please provide some guidance? Thanks!

Example XQuery mapping

Postnext
Ivan PedruzziSubject: XML to 837I EDI -- multiple NM1 segments
Author: Ivan Pedruzzi
Date: 14 May 2009 10:31 PM
Hi Chris,

In order to create multiple groups on the output tree you have right click on target element, in this case GROUP_3, and pick "Duplicated Node"

Does it help?

Ivan Pedruzzi
Stylus Studio Team

Posttop
Chris LingorSubject: XML to 837I EDI -- multiple NM1 segments
Author: Chris Lingor
Date: 15 May 2009 09:56 AM
That worked perfectly, thanks for your help!

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.