I am a beginner in XML with SQL. How can I specify index within an insert statement as below. The following statement gives throws exception with invalid path to update.
set @xmldata.modify('insert <Test>Test1</Test> after (/xyz/abc)[sql:variable("@index")]')
sql:variable() Function (XQuery) has some examples, but that doesn't speak about changing the index but other part of the statement.