Skip to main content

2 replies

Sep 27, 2018 1:36 PM UTC

The FileRepository thing template has a service called SaveXML. The input is the path and the content.

 

For write and edit XML files, here is a post explaining it:

 

Create XML

 

Here it is a example: 

 

var languages = <languages type="dynamic">
 <lang>JavaScript</lang>
 <lang>Python</lang>
</languages>;


var params = {
	path: "/theXml.xml" /* STRING */,
	content: languages /* XML */
};

// no return
Things["RepositoryThing"].SaveXML(params);

 

Hope it helps 😃

Oct 15, 2018 5:44 AM UTC

Hi @RockLala

 

Could you please confirm if your issue has been resolved. If yes, Please mark this post as accept as solution for the future reference, So that other can take benefit in case of same question.

 

Redards- Mohit Goel