I want to create a XML file that will have all the folders and the variables that need a specific value

  • 3 November 2020
  • 3 replies
  • 15 views

HI

I want to create a xml file that will have all the built-in values.

such as the folder path, built-in variables ETC.

 

thanks


3 replies

Hello,

 

You can read the data form your file using the “Read from text file” advanced command.

After that, you can find the needed value using “Split” or “Get array data” advanced commands.

 

Please find “Advanced commands” guide attached.

thanx

but I used the XML query,

I read the txt file and then using the xml query Im getting the required data

 

Hi Daniel,

 

We do not have a native advanced command that will write an XML file, although we do have one for reading XML via XPATH as you already discovered. XML is good for keeping relationships between data (e.g. book elements that have child elements/attributes title, author, publishing date etc.). The input data must have an existing data structure with which to convert into XML format, but the general variables used in Kryon store only text. So in order to write to XML, you need to create a custom procedure to process the data in your variables, define the relationships between them, then use the Write to File advanced command with the XML file extension.

 

Regards,

Darren

Reply