473,403 Members | 2,354 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,403 software developers and data experts.

XSD to XML transformer

Because XSD (XML Schema Document) is a definition of the
XML document, there must be a parser that can read a XSD
file and give the complete XML file as a result.

Is there something like this, or do I have to create it by
my own??
Nov 11 '05 #1
2 3653
There is no official tool in the .NET Framework that does this.
VS.NET generates datasets from XML Schema.
There are third party efforts that generate XML files, eg Altova XMLSpy .

The problem is not well constrained. For a given XSD, there are potentially
zillions of valid XML documents. Given an XML document and an XSD, you can
validate the XML doc, but given an XSD only, generation of a valid XML doc
is an open ended question. The way xmlspy does it - it asks you if you want
to generate non-mandatory elements, or not. Likewise non-mandatory
attributes. And it asks how many elements in an unbounded sequence to
generate.

--
Dino Chiesa
Microsoft Developer Division
d i n o c h @ o n l i n e . m i c r o s o f t . c o m

"Martijn" <ma*****@familiedebont.nl> wrote in message
news:2c*****************************@phx.gbl...
Because XSD (XML Schema Document) is a definition of the
XML document, there must be a parser that can read a XSD
file and give the complete XML file as a result.

Is there something like this, or do I have to create it by
my own??

Nov 11 '05 #2
Thanx dino,

I did see that problem also, but that would not be an issue... First I
need a tool to convert it.
The validation tool that .NET supplies give an errorreport at which
line, which column and which element. But if we look in XMLSpy it can
also say which element/attribute is expected (or not expected).
This would be great to use at this kind of a transformer.
Idea of next release??
Or is this also possible in VS C++ .NET??

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 11 '05 #3

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

Similar topics

1
by: Johannes Lebek | last post by:
Hi there, somehow, I cannot access nodes that are stored in a variable. I'm using Xalan 2.5.1 and the following commands: ================ BEGIN ==================== <xsl:variable...
2
by: Angus Parvis | last post by:
Hi, I've already posted this in comp.lang.java.programmer, but it doesn't seem like the ppl there can help. I hope you guys here know more about it, altough my question is more java than xml...
8
by: Michał Błaszak | last post by:
Hello, I 'm trying to convert my C++ sources by inserting something just at the beginning and in the end of each function/method. Do anyone know a way/tool how to do it efficiently. The...
0
by: | last post by:
hi I wanna import javax.xml.transform.Transformer into my J# project is it possible? how can it be done? regards sam
0
by: phil.a.jenkins | last post by:
Hopefully someone can provide a solution to this rather annoying problem - we have a Cocoon pipeline which ends thus: <!-- build the sql for insert and final stage of select --> T1 ...
2
by: venkatbo | last post by:
Hi all, I have python2.4 running on ppc-linux 2.6.17. I'm attempting to get a TurboGears 0.9a9 (using CherryPy 2.2.1) based app running on it. During the TG-app startup sequence, it reaches...
3
by: moralbarometer | last post by:
Please i intend to make an XML document from a string using tranformer as shown below. It returns an error which trace is given below as well. please help. public org.w3c.dom.Node getTextXML()...
0
by: subhash9 | last post by:
Hi, Have an XML file with this element <File Name="" Description="" CreatedBy="" CreatedDate="" LastModifiedBy="" ModifiedDate=""> i converted DOm to string using : TransformerFactory...
1
by: killy971 | last post by:
I am using the following syntax, with Xalan, to process xml transformations in java: StreamSource xml = new StreamSource(xmlFile); StreamSource xsl = new StreamSource(xslFile); StreamResult out...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.