cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Is it possible to convert Infotable into XML

ldas1
1-Visitor

Is it possible to convert Infotable into XML

I was trying to update a part of element in edge.xml file, for that I tried the converting edge.xml file to infotable and then written the modification code, now in order to write the file back to repository I need my infotable to convert back to XML format. How can I make it possible.

4 REPLIES 4
PaiChung
22-Sapphire I
(To:ldas1)

There are JSON to XML converters, that probably would be the easiest route.

ldas1
1-Visitor
(To:PaiChung)

Thanks for the suggestion, but my result is coming in the form of Infotable,

ankigupta
12-Amethyst
(To:ldas1)

Hi Lipsa Das​,

You can change Infotable to JSON simply by:

var params = {

    table: undefined /* INFOTABLE */

};

// result: JSON

var result = Resources["InfoTableFunctions"].ToJSON(params);

ldas1
1-Visitor
(To:ankigupta)

Thanks but can you also give me the example of JSON to XML conversion because I want my result to come as an XML Format

Announcements


Top Tags