how to use xsd without xml in vb

E

Edward Singleton

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
(e-mail address removed)
 
C

Cor Ligthert

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
 
O

One Handed Man \( OHM - Terry Burns \)

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
 
E

Edward Singleton

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
 
E

Edward Singleton

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top