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
Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
breydon stangelandSubject: Trouble Mapping Multiple Elements to one unique Node Element
Author: breydon stangeland
Date: 18 Aug 2016 04:04 PM
Hi All,

I am currently working on mapping from one XML format to another and am running into some concerns.

I have a file which has unique elements for each value, however the goal format has one node with unique elements within it.

I have toyed around with different IF statements and don't seem to get the result I am looking for.

I keep getting all the values from the multiple elements piled into one element of the goal structure which doesn't give me the desired outcome.

example desired result

Source:
element1>123
element2>456
element3>789

Goal:
deduction>
element1
</deduction

deduction>
element2
</deduction
deduction>

element3
</deduction
----

What is currently happening.
Source:
element1>123
element2>456
element3>789

Goal:
deduction>
Element1Element2Element3
</deduction
--


Any assist or point in the right direction would be greatly appreciated.

Thanks!

Postnext
Ivan PedruzziSubject: Trouble Mapping Multiple Elements to one unique Node Element
Author: Ivan Pedruzzi
Date: 18 Aug 2016 04:14 PM

The example formatting is really clear.

Can you please attach XML files for source and desired output to a post?

Ivan Pedruzzi
Stylus Studio Team

Postnext
breydon stangelandSubject: Trouble Mapping Multiple Elements to one unique Node Element
Author: breydon stangeland
Date: 18 Aug 2016 04:54 PM
Thanks Ivan,

Sorry to bother you it, looks like I was creating a problem for myself by having the structure only be looking in a specific group other than any time this sub group was visible.

I solved it with.
for $invoice_item_group in $single_shipper_netout_invoice1//a:invoice_item_group

<deduction>
<type>
LOSS
</type>
<rate>
{
$invoice_item/a:invoice_rate_loss/text()
}
</rate>

It looks like that has solved it for me.
Thank you for offering your assistance.

All the best.
</deduction>

Postnext
Steve BratSubject: Trouble Mapping Multiple Elements to one unique Node Element
Author: Steve Brat
Date: 16 Nov 2018 08:08 PM
Originally Posted: 16 Nov 2018 08:07 PM
This will be going to guide with https://epsonsupports.net/blog/fix-epson-error-code-0x69/ valuable part which needs to proceed it with the valuable way.

Postnext
Geek Squad TechsupportSubject: Trouble Mapping Multiple Elements to one unique Node Element
Author: Geek Squad Techsupport
Date: 15 Mar 2019 06:58 AM
if you are looking for some technical assistance for your laptop then you can contact Geek Squad Support for help. they are well trained professionals who are experts in all sorts of technology and can assist you with the best possible solution.you can contact them through helpline no. or you can chat with an agent.
website link -> https://customerservices.us/geek-squad-tech-support/


ApplicationNoname(4).

Postnext
Robert SmithSubject: Trouble Mapping Multiple Elements to one unique Node Element
Author: Robert Smith
Date: 23 Mar 2019 01:01 PM
Geek Squad Webroot being an antivirus software is very crucial in respect to today's time. The experts working behind the toll-free helpline of this antivirus are great at resolving all your virus and malware issues. Call them now for expert help, anytime.
https://geekstechs.org/geek-squad-webroot/

Postnext
Robert SmithSubject: Trouble Mapping Multiple Elements to one unique Node Element
Author: Robert Smith
Date: 10 Apr 2019 12:37 PM
Geek Squad Webroot provides cyber security to protect you from phishing attacks, ransomware attacks etc. In case you are facing malware, viruses issue contact Geek Squad Webroot team for help.
https://geek-customer-care.com/geek-squad-webroot.html

Postnext
gerry kirstenSubject: Trouble Mapping Multiple Elements to one unique Node Element
Author: gerry kirsten
Date: 15 Apr 2019 11:13 AM
Originally Posted: 15 Apr 2019 11:12 AM
HP Printer Support is active helpline that is available round the clock to resolve Hp printer problems. If you face any problem with your printer like device is not working properly, paper jamming issue, cable wire problem and others then reach experts of HP Printer Support and get instant help. For more information visit:- https://hpprinterstroubleshooting.com/

Postnext
gerry kirstenSubject: Trouble Mapping Multiple Elements to one unique Node Element
Author: gerry kirsten
Date: 15 Apr 2019 12:25 PM
Acer Support is a team of well experienced experts who takes care of your Acer devices. If you are facing any problem with your Acer device like your device is crashed, device is not working properly or any other problem then contact toll free number of Acer Tech Support and get instant help. For more information:- https://techsupportsnumber.com/acer-support/

Posttop
gerry kirstenSubject: Trouble Mapping Multiple Elements to one unique Node Element
Author: gerry kirsten
Date: 15 Apr 2019 12:28 PM
Brother Printer Support is a team of well experienced experts available round the clock to resolve your printer problems. If you face any problem with your device like cable problem, cartage problem, paper jamming and others then reach the experts at Brother Support toll free number and get instant help. For more information:- https://hpprinterstroubleshooting.com/brother-printer-support/

 
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.