xsd

How to convert xsd to ecore (EMF)

What is the best way to convert .xsd-files into .ecore-files? Is there an eclipse plugin for that? ...

Generate XSD file without REF elements - I just want a "literal" XSD file

When I use an XML example file to generate an XSD, using both Visual Studio and Oxygen, it generates a file using tons of <xs:element ref="ELEMENTNAME" />, where elementname is an actual element name. Later in the file, it has an element <xs:element name="ELEMENTNAME" type="xs:string" /> where it defines what that element is. For example...

XSD Visualization?

I've been working with a lot of semi-complicated XSD's lately and am wondering: What are some of the better tools for working with XML schema? Are there any graphical tools? Standalone or Eclipse-based are ideal as we aren't a .net shop. ...

Generate Java classes from .XSD files...?

I have a gigantic QuickBooks SDK .XSD schema file which defines XML requests/responses that I can send/receive from QuickBooks. I'd like to be able to easily generate Java classes from these .XSD files, which I could then use to marshal XML to Java objects, and Java objects to XML. Is there an easy way to do this...? Ideally, it wou...

With partial classes, what controls order?

As discussed in http://stackoverflow.com/questions/431203/does-the-order-of-fields-in-c-matter, the order of serializable properties affects, among other things, XmlSerializer output. But if fields are in 2 files (using partial classes), does anyone know what in fact controls the resulting order? That is, which file's properties comes ...

What is the correct way of using the Guid type in a XSD file?

I have a .xsd file which I use to generate code with the xsd.exe tool from Visual Studio. Some class members are Guids and the xsd.exe tool gives 2 warnings: Namespace 'http://microsoft.com/wsdl/types/' is not available to be referenced in this schema. Type 'http://microsoft.com/wsdl/types/:guid' is not declared. The Guid type is recog...

XSD attributeGroup optional?

I have an attributeGroup defined in my XSD schema. From what I've read and tried out, there is no way I could specify the optionality of the usage of whole group (so that either all of the attributes are specified, or none), something like: <xs:attributeGroup name="NameDesc"> <xs:attribute name="n" type="xs:string" use="required"/>...

Problem with xml schema elements hierarchy

What's wrong with this xml schema? It doesn't parse correctly, and I can't realize a hierarchy between cluster(element)->host(element)->Load(element). <?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt; <xs:element name="cluster"> <xs:complexType> <xs:sequence> <xs:element ref="host"/> ...

Is there any free to use XSD (DTD) for Rx documents (drug prescription)

I'd like to explore and possibly use (reuse) open XML formats/schemes (DTD/XSD) for drug (medication) prescription documents (Rx) issued by medical doctors and later processed by licenced pharmacists and health insurance companies. Is there any such freely XSD available and what I have to take care when considering and incorporating int...

How to demand strongly typed primitive values in XML

I am creating a XSD schema to represent a key-value pair list. I would like to restrict keys to string (that is easy) but the values are allowed to be any XSD simple types (datetime, string, int...). However, I do want the values in the xml instance documents to be strongly typed, i.e., it should be explicitly declared if a value is date...

DataAdapter Select string from base table schema?

When I built my .xsd, I had to choose the columns for each table, and it made a schema for the tables, right? So how can I get that Select string to use as a base Select command for new instances of dataadapters, and then just append a Where and OrderBy clause to it as needed? That would keep me from having to keep each DataAdapter's ...

Unexpected __-prefixed public variables in XSDObjectGen.exe auto generated code

I have auto generated some classes from an xsd file using the XSDObjectGen.exe tool. My classes contain extra public variables, named using leading underscores, and I cannot figure out why. Here's a sample from the xsd file: <xs:attribute name="Fare" type="xs:int" use="required"> <xs:annotation> <xs:documentation>The fare p...

Tools to help me generate an xml schema for a mssql database?

I'd like to be able generate an xsd of my MSSQL database's structure. Are there any tools or libraries that help me to this? The VS designer for typed datasets come's close, but I'm looking for a programmatic approach. ...

How do you link XML to a XSD ?

Hi all.. Been wondering, just as we use the -decleration to bind XML to a DTD, how do we do it with XSD? MSDN sample: <?xml version="1.0"?> <Product ProductID="123" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Product.xsd"> <ProductName>Rugby jersey</ProductName> </Product> is it ...

Do I have to declare multiple or just a single namespace for an XML-based server-client protocol?

Hello dear Stackoverflow community I'm currently working on a client-server application and I'd like to use XML for the protocol. Now, I'm rather unsure about declaring the XML namespaces and creating XML schemas. Needless to say that server and client send different things, i.e. the client sends requests and the server responds to them...

XML Schema Designer for Visual Studio 2008

VS 2005 did include a designer for XSD-Files. Where i can find the version for VS 2008? I only found a preview version for VS 2008 beta 2. ...

Default build action for a filetype

Everytime I add an xsd file to my Visual Studio 2008 build project, its build action is defaulted to "none". I regularly forget to put this one to "content" which messes up the build... Is there anyway to set the default build action of xsd files to "content"? ...

Schema Element definition with sub-elements in ANY order

Hello, I'm trying to create an element in a schema where its sub-types can appear in any order and as many times as necessary: <xs:element name="workflowNodes"> <xs:complexType> <xs:sequence minOccurs="0" maxPO> <xs:element ref="nodeType1" /> <xs:element ref="nodeType2" /> <xs:element ref="nodeType3" /> <xs:element r...

Validating an XML against referenced XSD in C#

I have an xml file with a specified schema location such as this. xsi:schemaLocation="someurl ..\localSchemaPath.xsd" I want to validate in C#. Visual Studio, when I open the file, validates it against the schema and lists errors perfectly. Somehow, tough, I can't seem to validate it automatically in C# without specifying the schem...

Has someone recent and trusted news about Linq to XSD?

or is there a project with the same goals? maybe with IQueryable provider ready to use.. am I asking too much? ...