Skip to main content
1-Visitor
January 13, 2017
Question

how to display xml content ?

when test with getxml(), the thingworx output *XML*,how to display xml content?

5 replies

5-Regular Member
January 13, 2017

Xiang, have you already tested with the ThingWorx Marketplace Extension called Universal Converter Extension ?

Translate
向郭_011-VisitorAuthor
1-Visitor
January 13, 2017

No,I don't know it's usage.

Translate
5-Regular Member
January 13, 2017

You can't display XML content in the composer. You can view it either by creating a mashup and binding the result to a widget such as the textbox, or via the rest API.

Translate
1-Visitor
January 13, 2017

If you want to display XML content on the composer, set Result type to String, and do var result = ""+yourXMLObject;

Translate
5-Regular Member
January 13, 2017

if you want to test the service, just set the base type in "Inpu/output" to info table. From snippet call GetXML(), set the url in double quotes.

that should work

Translate