07-20-2017 11:29 PM - edited 03-15-2019 06:30 AM
Hi,
I have used https://colinzhong.blogspot.com.au/2014/04/thanks-to-drvoip-s-amazing-video-no-tts.html to generate an XML file as outlined below, which has been great and can read back from no issues.
I'm wanting to create a dial in update application, not too dissimilar to state/holiday update however since the XML file different than these.
If some one can provide some feedback/input on formatting and the document step this would be appreciated??
Here is my XML file:
<?xml version="1.0" encoding="utf-8"?>
<AreaList>
<Area ID="1">
<BHnumber>XXXX</BHnumber>
<AHnumber>XXX</AHnumber>
</Area>
<Area ID="2">
<BHnumber>XXX</BHnumber>
<AHnumber>XXX</AHnumber>
</Area>
<Area ID="3">
<BHnumber>XXX</BHnumber>
<AHnumber>XXX</AHnumber>
</Area>
<Area ID="99">
<BHnumber>XX</BHnumber>
<AHnumber>XXX</AHnumber>
</Area>
</AreaList>
07-21-2017 02:53 AM
Hi,
As I understand you want to write data to your xml file and you can read it just fine in your application, or do you need help with reading the data? The way your xml is build up seems the right way to do it to me.
Are your Area ID's variable or do you have static ID's?
Do you need help with the Keyword Transform document step?
If you could explain a bit more what you are trying to do we could help you better.
07-21-2017 03:27 AM
Hi Jorie,
Reading the XML file is no issue, locating the entries under the Area ID and storing them in variables.
That is correct as I only wanting to update the AHnumber and BHnumber for the relevant Area ID.
My current script to update the XML file is able to retrieve the current info, read it back to the caller and collect the new digits.
Just need to understand which steps and the formatting to write back to the file.
The link in my original post shows what I based my script upon for using the XML format, hopefully that provides some more insight.
Thanks
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide