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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Begining Xml-VB.Net problem.

Status
Not open for further replies.

Eden2760

Programmer
Joined
Mar 13, 2006
Messages
2
Location
US
Hello,

I'm a web developer, and don't use VB.net much at all, but this is the medium that I've been tasked with using.

My goal is this: to build a basic user interface for a program I've built in Flash. It does not have to interact with Flash. The program in flash uses a created xml file to read in the information it uses.

What I need to do, is build the basic application in VB.net that will allow a user to open or create an xml file. If created, they should be able to add new items to the xml file. If opened, the program should display the information in the xml file in the user interface, so that it can be easily read and changed if necessary.

I have a dtd built for the way that the xml file must be formatted, as well; it's very basic.

I'm not asking for someone to build this for me, but I'm quite daunted by VB.net, and am not sure even where to begin. Any help would be much appreciated, even a point in the right direction. Thanks.
 
Just buy an XML editor like Infopath or XMLSpy. Is there some reason they want a custome app to edit xml? Your complany may already have infopath.

When you say dtd, do you mean an XML Schema?
 
I actually have XML spy. The company needs a "dummy" application for morons who don't know how to use xml spy.

They need an app, with text boxes that basically says: "Put question text here", "put answer here", "put wrong answers here" "click this button, and your xml file is made".

I do understand that xml spy makes it very easy (that's what I used to make my dtd).

When I say dtd, I do mean schema, yes.
 
one idea...

Create a strongly typed dataset using your schema and use that as you "entity". Datasets have a save method so you can save your xml easily.

Add your schema to your project and then load in the designer. Right click --> Make dataset.

Hope this helps
 
No need even to make it strongly typed. Just create a dataset, a datatable, add some columns, and create a user interface to interact with the data table.

Once you have the data table populated you can use the Dataset.WriteXML(filename, writeschema) to create the XML file. And on subsequent runs you can use Dataset.ReadXML to pull up that data.

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top