I need to convert some semistructured data into a SQL command. Let's say I need to transform this XML:
<Data>
<ID>1</ID>
<Code>Test</Code>
<SomeData><AnythingCanBeHere /></SomeData>
</Data>
into this text:
INSERT SomeTable (ID, Code, SomeData)
VALUES (1, 'Test', '<SomeData><AnythingCanBeHere /></SomeData>');
I have output method set to text: I'm having hard time to get the SomeData element with anything in it to the ouput.
I found simmilar question, but the answer suggests to set output method to XML, which is a bit weird :-) Any other ideas?
Thanks