Hi all,
I want to transform an xml file to another xml file based on the length of innertext in an element.
Here is an example of the file to be transformed:
<?xml version="1.0" encoding="utf-8"?>
<recipe xmnls="">
<recipeList>
<recipeType description="Breakfast">
<recipeInfo>
<name>Omelet</name>
<summary>An English Breakfast</summary>
<ingredients>Eggs,Butter</ingredients>
<instructions>(1) You will need 2 eggs, 1 tbspn butter,............................................................................................................................................................</instructions>
</recipeInfo>
</recipeType>
</recipeList>
</recipe>
As you notice, the <instructions> node has a lot of text. I want to transform the xml file into the following format:
<?xml version="1.0" encoding="utf-8"?>
<recipe xmnls="">
<recipeList>
<recipeType description="Breakfast">
<recipeInfo>
<name>Omelet</name>
<summary>An English Breakfast</summary>
<ingredients>Eggs,Butter</ingredients>
<instructions>(1) You will need 2 eggs, 1 tbspn butter,...
............................................
............................................
............................................
............................................
</instructions>
</recipeInfo>
</recipeType>
</recipeList>
</recipe>
Thanks