I'm using the XML class to parse an XML string. I want to insert the parsed XML into a textbox. What is the proper way to accomplish this?
My Code:
var myXML = new XML( '<?xml version="1.0" encoding="UTF-8"?><root><myText>Hello World</myText></root>' );
app.selection[0].placeXML( myXML );
// app.selection[0].placeXML( myXML.elements()[0] );
This Generates Error 30477:
Invalid value for parameter 'using' of method 'placeXML'. Expected XMLElement, but received nothing.