VB.NET: Writing attribute and Elements to Xml

toytoy

Well-known member
Joined
Jul 16, 2004
Messages
46
Programming Experience
1-3
Say i have this Xml file

<Books>
<Book type="1">
<Author>Peter</Author>
<Section>1</Section>
</Book>
</Books>

how to create another automatic set of IDs and datas for the Xml tag so that when i type in another set of data...

The content of the Xml file will become:

<Books>
<Book type="1">
<Author>Peter</Author>
<Section>1</Section>
</Book>
<Book type="2">
<Author>John</Author>
<Section>2</Section>
</Book>
</Books>

Thanks
 
Top Bottom