Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to ad an element and remove an element?

Status
Not open for further replies.

rkckjk

IS-IT--Management
Apr 27, 2001
34
US
Basically, I would like to know how to add or remove an elemet from the XML file below using VB .Net:

<?xml version="1.0" standalone="yes"?>
<RECORD>
<TYPE>
<TIME_STARTED>4:44</TIME_STARTED>
<TIME_ENDED>6:33</TIME_ENDED>
</TYPE>
</RECORD>

When the 'TODAY' element is added the XML file would look like this:

<?xml version="1.0" standalone="yes"?>
<RECORD>
<TYPE>
<TODAY>Oct. 26 2004</TODAY>
<TIME_STARTED>4:44</TIME_STARTED>
<TIME_ENDED>6:33</TIME_ENDED>
</TYPE>
</RECORD>

And when the "TODAY' element is removed it would look like the first XML file in this question.

Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top