Link to home
Start Free TrialLog in
Avatar of Edson Fernandes
Edson Fernandes

asked on

Question: How can I Transform one XML file format to another XML file format using XSLT

Question: How can I Transform one XML file format to another XML file format using XSLT. I am new to XML/XSLT so I need help. I need to spit a string inside the xml.

XML1
<?xml version="1.0" encoding="utf-8"?>
<root type="array">
<persons>
<person_id>_:genid1</person_id>
<type>http://www.w3.org/2000/01/rdf-schema#Datatype</type>
<oneofs>
<oneof>This is a very long string</oneof>
</oneofs>
</persons>
<persons>
<person_id>_:genid108</person_id>
<type>http://www.w3.org/2000/01/rdf-schema#Datatype</type>
<oneofs>
<oneof>This is  another very long string</oneof>
</oneofs>
</persons>
</root>
XML2
<?xml version="1.0" encoding="utf-8"?>
<root type="array">
<persons>
<person_id>_:genid1</person_id>
<type>http://www.w3.org/2000/01/rdf-schema#Datatype</type>
<oneofs>
<oneof>This is </oneof>
<oneofagain>a very long string</oneofagain>
</oneofs>
</persons>
<persons>
<person_id>_:genid108</person_id>
<type>http://www.w3.org/2000/01/rdf-schema#Datatype</type>
<oneofs>
<oneof>This is </oneof>
<oneofagain>another very long string</oneofagain>
</oneofs>
</persons>
</root>
ASKER CERTIFIED SOLUTION
Avatar of Gertone (Geert Bormans)
Gertone (Geert Bormans)
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I use BizTalk to write transforms from one XML to another. Nothing stops you from spinning up a trial instance in Azure and to run the transform wizard.
https://azure.microsoft.com/en-us/services/biztalk-services/
Question answered in full
A "thank you" would have been so nice. Guess I am old fashioned