justputitdown
Member
- Joined
- Aug 6, 2006
- Messages
- 7
- Programming Experience
- Beginner
[FONT=verdana,arial][FONT=verdana,arial]Hi guys, im having a very frustrated moment and im feeling very retarded so i could do with your help. Im currently creating a website using vb.net and one part of it involves reading data from an xml document and adding and editing elements. I have read that there are many ways to do this but i have to admit that im a little confused. My current plan of attack is thus: I have an xml file called data.xml, i read that for easy manipulation and sychronisation to use a schema. So i have created a schema called dataSch.xsd. I have some code ready and waiting to use but i have no idea how to reference the schema to the code behind one of my web pages. The code starts like this:
Dim userDS As dataSch = New dataSch
Dim xmlDoc As XmlDataDocument = New XmlDataDocument(userDS)
xmlDoc.Load("data.xml")
Dim myUser As dataSch.UserItem
but dataSch is not recognised... im not really expecting it to be but i dont know how to have it referenced so that my code above knows what im on about...
Cheers for any help you guys give.
Dan[/FONT][/FONT]
Dim userDS As dataSch = New dataSch
Dim xmlDoc As XmlDataDocument = New XmlDataDocument(userDS)
xmlDoc.Load("data.xml")
Dim myUser As dataSch.UserItem
but dataSch is not recognised... im not really expecting it to be but i dont know how to have it referenced so that my code above knows what im on about...
Cheers for any help you guys give.
Dan[/FONT][/FONT]