Need help. How to add elements to XML file???
I have XML file. I can add lines (elements) in NotePad, but I want to make program in AMS5.0 for adding/editing/deleting elements in XML database.
Help please who know how to add elemets to XML database.
Professional Software Development Tools
Need help. How to add elements to XML file???
I have XML file. I can add lines (elements) in NotePad, but I want to make program in AMS5.0 for adding/editing/deleting elements in XML database.
Help please who know how to add elemets to XML database.
Have you tried to use XML.SetValue to create a new element? It doesn't specifically state that it will create a new element if one does not exist but it appears like it will. Otherwise you could use the XML.Insert to insert raw XML code.
Tigg
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
I thought that XML.SetValue can set only existable values.
About XML.Insert I didnt find any info in XML plugin help.
Could you give me more info about XML.Insert ?
Here is the link to the online help file from www.autoplay.org.
XML Plugin Help
The XML.SetValue doesn't state if it will create a new element if one does not exist, but I suspect that it will. Try it out and see what it does.
Tigg
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Note: XML.Insert was added in the latest version of the XML plugin.
--[[ Indigo Rose Software Developer ]]
A little frustration here for a newby...
I can add an element, but when I try to insert the xml data after a particular node, it places it within the previous tag so I end up getting the record combined with the previous one and bc the tags are not closed properly, things get messed up. If anyone has any experience with this issue, your wisdom is welcome and appreciated!