XML help needed

Hi guys,

I need some help with XML. I want to add and delete “objects” to and from an xml file.

The xml file should look like this:


<cobramessages>
	<message>
		<id>1</id>
		<type>typestring</type>
		<model>modelstring</model>
		<value>123.12</value>
		<messagedate>25/12/2011 21:15</messagedate>
	</message>
	<message>
		<id>2</id>
		<type>typestring2</type>
		<model>modelstring2</model>
		<value>456.78</value>
		<messagedate>25/12/2011 23:15</messagedate>
	</message>
</cobramessages>

How can I add a new “message” to this file or remove a message (or all) from this file?

I googled around, but most examples use methods that are not available in NetMF.

I’m using a Cobra.

Greetings