473,394 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

how to use xsd without xml in vb

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
4 3648
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Pete | last post by:
I have form/select which executes a function using onchange. No problem. However, when I validate the page with a strict HTML 4.01 doctype at http://validator.w3.org, it demands either an action or...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
9
by: WalterR | last post by:
This is my first time here, so there may be earlier relevant threads of which I am unaware. Though my experience with DB2 is not extensive, such as it is was under OS/390 or equ. My main...
33
by: ankursinha | last post by:
Hi, Is it possible to write a C program that prints "Hello World" on screen without having a single semi-colon in the entire program? The extra constraint here is that u r not allowed to use...
4
by: Dawn Minnis | last post by:
Hi When I compile my files I get the following: driver.c: In function `main': driver.c:49: warning: assignment makes integer from pointer without a cast driver.c:50: warning: assignment...
4
by: Wal Turner | last post by:
Consider the following simple class: public class ClassA { public static string VAR = "hello"; } public void MethodA() { while(true)
5
by: Pascal Cloup | last post by:
Hello, I just want to send an e-mail from my windows form application without specifying SmtpServer. On my computer, when i specify my smtpserver, SmtpMail.Send( aMail ) works fine, but...
7
by: Ralf Gedrat | last post by:
Hello! I have some Vb.Net applications, which are terminated at indefinite times without message. If I call in the program regulated system.GC.Collect, then the program is terminated here...
5
by: mmcd79 | last post by:
I built a VB.net application that makes use of a machine level DB connection string setting, and a user level starting location setting. The machine level setting and the default user based...
5
by: Jonathan Kay | last post by:
Hi, I'd like to my WCF webservice to work both on SSL and without. Unfortunately searching has led to dead ends, references to changes that only work on the old previous beta versions and I...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.