473,385 Members | 1,766 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,385 software developers and data experts.

From xsd schema to xml instance (template) from code

Hello everyone,
I have to create an xml instance (a template with samples data)
from a given xsd. I'd like to be able to this from code and not from a
tool. Is there any available API that give me less to work? ;-)

Thanks in advance and Happy New Year,
Gionni
Nov 12 '05 #1
4 4181
The .NET framwork does not provide you with the API to infer xml data from
XSD schemas. But you do have tools available which do that.

"Gionni" <eh*******@katamail.com> wrote in message
news:d9**************************@posting.google.c om...
Hello everyone,
I have to create an xml instance (a template with samples data)
from a given xsd. I'd like to be able to this from code and not from a
tool. Is there any available API that give me less to work? ;-)

Thanks in advance and Happy New Year,
Gionni

Nov 12 '05 #2
The following MSDN article describes a tool to generate XML documents from a
schema using c#:
http://msdn.microsoft.com/library/de...tml/xmlgen.asp

--
Stan Kitsis
Program Manager, XML Technologies
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
"Gionni" <eh*******@katamail.com> wrote in message
news:d9**************************@posting.google.c om...
Hello everyone,
I have to create an xml instance (a template with samples data)
from a given xsd. I'd like to be able to this from code and not from a
tool. Is there any available API that give me less to work? ;-)

Thanks in advance and Happy New Year,
Gionni

Nov 12 '05 #3
What about tools to generate a .NET DataSet definition from the XML Schema?

Best regards,

Benny Tordrup

"Stan Kitsis [MSFT]" <sk***@microsoft.com> skrev i en meddelelse
news:41********@news.microsoft.com...
The following MSDN article describes a tool to generate XML documents from
a schema using c#:
http://msdn.microsoft.com/library/de...tml/xmlgen.asp

--
Stan Kitsis
Program Manager, XML Technologies
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no
rights.
"Gionni" <eh*******@katamail.com> wrote in message
news:d9**************************@posting.google.c om...
Hello everyone,
I have to create an xml instance (a template with samples data)
from a given xsd. I'd like to be able to this from code and not from a
tool. Is there any available API that give me less to work? ;-)

Thanks in advance and Happy New Year,
Gionni


Nov 12 '05 #4
Stan Kitsis [MSFT] <sk***@microsoft.com> ha scritto:
The following MSDN article describes a tool to generate XML documents from a schema using c#


Thanks for the hint. However this tools uses 2.0 framework and I am
developing on 1.1 SP1.

Cheers,
Gionni

Inviato da www.mynewsgate.net
Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Alex Sab | last post by:
Hi, I am having trouble describing in a schema that elements can be mandatory in one part and not mandatory in another part of the xml document. Here is a sample xml file <Model:Templates>...
2
by: Ed Trembicki-Guy | last post by:
Does anyone know of an existing tool or template to merge the contents of a base schema and an extension schema that uses the <redefine> tag to extend the base schema? I need to extract a subset...
2
by: David Nedrow | last post by:
OK, I have a problem which I'm guessing is simply my inability to figure out a select pattern in XSL. I have an XML file similar to the following: <?xml version="1.0"?> <?xml-stylesheet...
1
by: Wil | last post by:
I'm very new to developing in .NET and even newer to XML. The past few days have been pretty frustrating for me because I'm trying to perform a transform on data in a dataset and it's not working....
9
by: Rob Mayo | last post by:
I have a bunch of XSD files in my assembly as embedded content that are read out via reflection and streams. My app creates the XML on the fly, and I want to validate it using the schema files...
1
by: Steve | last post by:
I have a Xml schema like the this: .... <schema xmlns = "http://www.w3.org/2001/XMLSchema" targetNamespace = "http://www.ipdr.org/namespaces/ipdr" xmlns:ipdr =...
0
by: Eric van Wijk | last post by:
Hi, When I try to assign a schema to a dataset using the ReadXmlSchema method, that schema does not import any schemas included with xs:import. Both schema's are stored in the assembly as...
3
by: dkacher | last post by:
Hi - I'm looking for a way to generate a list of the fully-qualified paths to all of the leaf nodes in an XML Schema. The reason: I have a large schema for which I'm building a transform...
1
by: Himself | last post by:
I apologize if this has been answered before, I couldn't find it. I'm trying to transform XML to XML and specify a schema in the output XML. I am transforming nodes to different local names...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.