Code: <XML> <Name>tag1value1;tag1value2</Name> <Adress>tag2value1;tag2value2</Adress> </XML> To this
Code: <XML> <LINE> <Name>tag1value1</Name> <Adress>tag2value1</Adress> </LINE> <LINE> <Name>tag1value2</Name> <Adress>tag2value2</Adress> </LINE> </XML> Any help would be most appreciated.
I think it would be possible however I'm not sure it would be the most ideal approach.
Where is your XML coming from? If it's generated in an extension that you can change I would probably make sure to have the proper format created in that layer instead.
I'm sure your data is probably a little more complex, but here's a straightforward way to solve this - process the Name elements, using the Split() extension to tokenize the data, and grab the corresponding Adress elements along with them:
Xslt tokenize split help
Hello is it possible to use xslt to go from
Code:
<XML>
<Name>tag1value1;tag1value2</Name>
<Adress>tag2value1;tag2value2</Adress>
</XML>
To this
Code:
<XML>
<LINE>
<Name>tag1value1</Name>
<Adress>tag2value1</Adress>
</LINE>
<LINE>
<Name>tag1value2</Name>
<Adress>tag2value2</Adress>
</LINE>
</XML>
Any help would be most appreciated.
Johan
Hi Johan and welcome to our :)
I think it would be possible however I'm not sure it would be the most ideal approach.
Where is your XML coming from? If it's generated in an extension that you can change I would probably make sure to have the proper format created in that layer instead.
/Jan
Hi Johan,
I'm sure your data is probably a little more complex, but here's a straightforward way to solve this - process the Name elements, using the Split() extension to tokenize the data, and grab the corresponding Adress elements along with them:
/Chriztian
is working on a reply...