P
Peter
Hello,
I must confess I am now very confused. I am simply trying to write a program
that uses data from various XML files to populate a sea of controls, and
uses them in turn to make changes to the XML files. Sounds easy, right? I'm
used to programming in VB, but this is my first foray into data programming
for Windows. I am used to doing that kind of thing in MySQL via PHP. I
therefore have lots of questions, and I don't know what they are.
I have gotten as far as creating an XML schema for one particular flavor of
XML file I'll be using. I'm not clear on why I had to do that, but the
documentation convinced me that I'd be happier and better-looking if I did,
so I spent an evening and managed to do it. Now what good is it, exactly?
I also don't know what would be more appropriate... using a dataset to load
the XML data and display it, or simply using some version of XML reader? And
I don't have any idea where the XML schema I just made fits into the
process. Can I use the schema to reference elements by name instead of using
methods like NextSibling and so forth?
What is data binding? Is it relevant to this? Do I need to do it? Can I get
away without doing it? Would I be cheating if I did? Would my breath be
better? The words "data binding" seem so pretty...
By the way, why can't I use my shiny new XML schema file to instantiate a
typed dataset? If I go to "Add New Item" and select "Dataset," it creates a
blank XSD file I can simply copy and paste the schema info into. But the XML
schema doesn't show up in the Referenced Datasets menu in the form designer.
I guess the main problem is that the documentation gives examples 40 zillion
options of how to do... something. Many things, actually. But I don't know
what those somethings are, how they fit together, and which bit of
information I need to know first in order to implement any of them. And all
the examples present their methods as doing something particularly useful or
helpful, things I didn't know I needed to do (and still am not convinced),
like creating the XML schema.
Help!
I must confess I am now very confused. I am simply trying to write a program
that uses data from various XML files to populate a sea of controls, and
uses them in turn to make changes to the XML files. Sounds easy, right? I'm
used to programming in VB, but this is my first foray into data programming
for Windows. I am used to doing that kind of thing in MySQL via PHP. I
therefore have lots of questions, and I don't know what they are.
I have gotten as far as creating an XML schema for one particular flavor of
XML file I'll be using. I'm not clear on why I had to do that, but the
documentation convinced me that I'd be happier and better-looking if I did,
so I spent an evening and managed to do it. Now what good is it, exactly?
I also don't know what would be more appropriate... using a dataset to load
the XML data and display it, or simply using some version of XML reader? And
I don't have any idea where the XML schema I just made fits into the
process. Can I use the schema to reference elements by name instead of using
methods like NextSibling and so forth?
What is data binding? Is it relevant to this? Do I need to do it? Can I get
away without doing it? Would I be cheating if I did? Would my breath be
better? The words "data binding" seem so pretty...
By the way, why can't I use my shiny new XML schema file to instantiate a
typed dataset? If I go to "Add New Item" and select "Dataset," it creates a
blank XSD file I can simply copy and paste the schema info into. But the XML
schema doesn't show up in the Referenced Datasets menu in the form designer.
I guess the main problem is that the documentation gives examples 40 zillion
options of how to do... something. Many things, actually. But I don't know
what those somethings are, how they fit together, and which bit of
information I need to know first in order to implement any of them. And all
the examples present their methods as doing something particularly useful or
helpful, things I didn't know I needed to do (and still am not convinced),
like creating the XML schema.
Help!