I am trying to insert xml encoding type on root element but evrytime I am getting this error
Action.c(104): Error: attempt to replace root element [class:CLrXmlFuncReplace]
I am using this method
lr_xml_insert("Xml={XML_Input}",
"Query=/output",
"ResultParam=Result1",
"Postion=before",
"XmlFragment=<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
LAST);
i got the answer, using lr_xml functions we can't replace the root tag of xml, we can only replace its child tag