Hi guys!
Thanks for your amazing help so far
That´s just what I thought: Working with Strings to manipulate XMLs is quite a bad idea ;)
Thanks for the code snippet
I´ll try it in just a few minutes
Hopefully it works
But so far,here´s something I tried and I´m not sure why that wouldn´t work.
And the parseXML method:
Does anyone see,why this wouldn´t do the trick?Doesn´t look that wrong,right? ;)
Oh yeah,just to give you a short view to the XMLs.
That´s the ENTIRE replacement XML,I want to insert in another XML.Note,that no header is defined.(Shouldn´t be a problem!?)
And here´s a snippet of the XML needing to be altered:
Here,you have a complete header(not shown here,but believe me,it´s there ;) )
And now,the goal is,just to copy the replacement XML into the big XML.But,the needed section is inside the big XML,not directly at the beginning, which means,you need to search for it ;)
After you found the section,replace the old section with the new one.
Now,I´ll try your provided code,hopefully it works
I think,the problem should be quite clear now.But your provided solution looks quite good ;)
Let´s see,whether or not it does the trick for me ;)