Skip to content
Advertisement

Add child note above node

Am trying to get from SQL to XML however have to format this correctly or it will not work. I am using C# to insert my sql between the QBXML

This is what I get

This is what I need

”’

”’

I am not sure how to add the “CustomerAddRq” over each “CustomerAdd”

Advertisement

Answer

Try xml linq. I took a string array of you elements which I assume was coming from the database and then added to you root node.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement