Adding XML Child with ID
Posted: Sat Jun 20, 2020 11:52 pm
Having trouble wrapping my head around this one. If I manually add this child to the XML document, I can read and write, but I'm trying to figure out how to add the child via LC.
How would I add/insert the meeting into IDnum #3, or add to the end at the next valid number?
Code: Select all
<Preferences>
<Graphics>
<Meeting IDnum="1">
<title>Meeting #1</title>
<time>3:00pm</time>
</Meeting>
<Meeting IDnum="2">
<title>Meeting #2</title>
<time>4:00pm</time>
</Meeting>
</Graphics>
</Preferences>