By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,515 Members | 1,042 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,515 IT Pros & Developers. It's quick & easy.

how to use xsd without xml in vb

P: n/a
I give up...

I have been trying to use a vendor provided XSD file inside VB by using
readschema, and to no avail it will not 'define' a dataset/datagrid.

The XSD does have many relations inside of it, and is basically a single
record relation to many other records.

I have to populate this xml based on the provided xsd and be able to
writexml based on the xsd.

ARGH.

I have been using XMLSPY to create an empty xml file, it works of course.
But this is going to be a pain if I have to do that everytime they change
the xsd, when all I am doing is updating the xml by column names.

Can anyone shed some light on how to properly use a vendor provided xsd in
order to generate an xml to be ftp'd or whatever to them?

Thanks

Edward Singleton
ed***@ke4ujp.com
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi Edward,

From every dataset can be made an XML file, however not every XML file is a
dataset.

A XML dataset represents an SQL type dataset. XML itself has a lot more
possibilities. Therefore it can be posible that your XML file is organized
in a way that can not be represented as a dataset.

What you can do is drag the XML file on your IDE to make a dataset from it,
often it goes because it will than be reorganized in more smaller tables.

It is not much however I hope it helps somehow?

Cor
Nov 20 '05 #2

P: n/a
The reason this will not create a Dataset is because the schemas used in
VB.NET are realy XDR ( XML Reduced Data ). They have attributes such as
IsDataSet="True" etc.

You can convert your XSD to a XDR, with a little care you can compare them
and adust. There are some converters on the web which could take the pain
out of it for you, try a google search.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

"Edward Singleton" <ed***@ke4ujp.com> wrote in message
news:10*************@corp.supernews.com...
I give up...

I have been trying to use a vendor provided XSD file inside VB by using
readschema, and to no avail it will not 'define' a dataset/datagrid.

The XSD does have many relations inside of it, and is basically a single
record relation to many other records.

I have to populate this xml based on the provided xsd and be able to
writexml based on the xsd.

ARGH.

I have been using XMLSPY to create an empty xml file, it works of course.
But this is going to be a pain if I have to do that everytime they change
the xsd, when all I am doing is updating the xml by column names.

Can anyone shed some light on how to properly use a vendor provided xsd in
order to generate an xml to be ftp'd or whatever to them?

Thanks

Edward Singleton
ed***@ke4ujp.com

Nov 20 '05 #3

P: n/a
For some reason, I new that and didn't associate it with VB.

I guess that we all want it to be more 'friendly' than that.

I can use XMLspy to create a sample xml file, and then read that xml file.

I would like to be able to get specific table definitions and base some
'memory' tables on that definition, so they can be populated and writexml'd
for export.

Thanks for the QUICK reply.

Edward Signleton
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:Od**************@TK2MSFTNGP10.phx.gbl...
Hi Edward,

From every dataset can be made an XML file, however not every XML file is a dataset.

A XML dataset represents an SQL type dataset. XML itself has a lot more
possibilities. Therefore it can be posible that your XML file is organized
in a way that can not be represented as a dataset.

What you can do is drag the XML file on your IDE to make a dataset from it, often it goes because it will than be reorganized in more smaller tables.

It is not much however I hope it helps somehow?

Cor

Nov 20 '05 #4

P: n/a
That helps a lot.

I didn't realize that vb did it that way.

Now that I know that, I can compare a vb xsd with the vendor xsd, and maybe
parse it first, then import.

thanks for the QUICK response.

Edward Signleton
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:uO**************@TK2MSFTNGP10.phx.gbl...
The reason this will not create a Dataset is because the schemas used in
VB.NET are realy XDR ( XML Reduced Data ). They have attributes such as
IsDataSet="True" etc.

You can convert your XSD to a XDR, with a little care you can compare them
and adust. There are some converters on the web which could take the pain out of it for you, try a google search.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

"Edward Singleton" <ed***@ke4ujp.com> wrote in message
news:10*************@corp.supernews.com...
I give up...

I have been trying to use a vendor provided XSD file inside VB by using
readschema, and to no avail it will not 'define' a dataset/datagrid.

The XSD does have many relations inside of it, and is basically a single
record relation to many other records.

I have to populate this xml based on the provided xsd and be able to
writexml based on the xsd.

ARGH.

I have been using XMLSPY to create an empty xml file, it works of course. But this is going to be a pain if I have to do that everytime they change the xsd, when all I am doing is updating the xml by column names.

Can anyone shed some light on how to properly use a vendor provided xsd in order to generate an xml to be ftp'd or whatever to them?

Thanks

Edward Singleton
ed***@ke4ujp.com


Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.