progressdll
Programmer
merging 2 xml's to 1 xml
xml 1 ( and my source xml )
<root>
<row>
<cell>
<data>1</data>
<namedcell name="linenr">
</cell>
<cell>
<data>100</data>
<namedcell name="article">
</cell>
</row>
</root>
xml that i import via the document function
<root>
<orderlines linenr="1">
<article>77</article>
<orderlines linenr="2">
<article>88</article>
<orderlines linenr="3">
<article>99</article>
</root>
Now i want to get the following output xml.
i want to use the namedcell attribute name to make the match.
so i can add more elements to the import xml.
I tried seve ral approached but now i am stuck.
I can't figure out how to get the elements from the import file
and match the to my source.
<root>
<row>
<cell>
<data>1</data>
<namedcell name="linenr">
</cell>
<cell>
<data>77</data>
<namedcell name="article">
</cell>
</row>
<row>
<cell>
<data>2</data>
<namedcell name="linenr">
</cell>
<cell>
<data>88</data>
<namedcell name="article">
</cell>
</row>
<row>
<cell>
<data>3</data>
<namedcell name="linenr">
</cell>
<cell>
<data>99</data>
<namedcell name="article">
</cell>
</row>
</root>
xml 1 ( and my source xml )
<root>
<row>
<cell>
<data>1</data>
<namedcell name="linenr">
</cell>
<cell>
<data>100</data>
<namedcell name="article">
</cell>
</row>
</root>
xml that i import via the document function
<root>
<orderlines linenr="1">
<article>77</article>
<orderlines linenr="2">
<article>88</article>
<orderlines linenr="3">
<article>99</article>
</root>
Now i want to get the following output xml.
i want to use the namedcell attribute name to make the match.
so i can add more elements to the import xml.
I tried seve ral approached but now i am stuck.
I can't figure out how to get the elements from the import file
and match the to my source.
<root>
<row>
<cell>
<data>1</data>
<namedcell name="linenr">
</cell>
<cell>
<data>77</data>
<namedcell name="article">
</cell>
</row>
<row>
<cell>
<data>2</data>
<namedcell name="linenr">
</cell>
<cell>
<data>88</data>
<namedcell name="article">
</cell>
</row>
<row>
<cell>
<data>3</data>
<namedcell name="linenr">
</cell>
<cell>
<data>99</data>
<namedcell name="article">
</cell>
</row>
</root>