Insert contents of a TStringList into another TStringList at a specified index
Posted on 2009-04-09
I've got a situation where I'm creating an XML file for a client.
Currently I've been building the XML inside a TStringList and then saving it to a file using data obtained from a database. This worked fine, but now the client is wanting to 'embed' other XML schemas inside of the main XML schema.
Is it possible to create the main XML in a TStringList and place something like <InsertEmbeddedXMLHere> at the spot where the embedded XML will go and then insert the contents of another TStringList at that position?
<Tag 1></Tag1> <EmTag1></EmTag1>
What I want for results is this:
Thank you to all that spend time helping with this. I appreciate it.