CK
unread,Apr 12, 2008, 10:46:31 AM4/12/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
You've got 2 easy options.
1 - Create an object oriented system where each DVD element is an
object with Title, Director, Cost etc. as properties. You can then
store these in some kind of collection and create a new one from your
form data to add to the collection. Then when you need the xml, you
can serialize your collection.
2 - Open the document as an XmlDocument and use the xml namespace to
create new elements and add them. e.g:
(Please forgice any syntax errors, I'm a C# guy and am writing from an
old memory of doing this)
Dim dvdxml As XmlDocument = XmlDocument.Open(filepath)
Dim newDvd as XmlNode
newDvd = XmlDocument.CreateElement()
etc.