I have an XML that I need to retain data. Currently I have a search and store those in a public variable which I use in the XML file. The problem is I have one element that has many child elements that can be put in by the user that need to be retained. I cannot figure out how to get this data and store it in a variable so it is retained during upgrades!
Example XML:
Code: Select all
<Tester>
<Events>
<Event attribute1="" attribute2="" attribute3=""></Event>
<Event attribute1="" attribute2="" attribute3=""></Event>
<Event attribute1="" attribute2="" attribute3=""></Event>
<Event attribute1="" attribute2="" attribute3=""></Event>
</Events>
<Mail>
<Server></Server>
<Port>25</Port>
<EnableSSL>false</EnableSSL>
<Username></Username>
<Password></Password>
<From></From>
<To></To>
<Subject></Subject>
</Mail>
<FriendlyName></FriendlyName>
</Tester>
Notice all the <Event> elements under the <Events> node. How do I maintain all of that? Those elements are added by the user so there could be 2 event elements o there could be 25 event elements. I tried to get the Element Text for "Events" but that didn't work.
FOLLOW US
Get the latest news in Application Packaging