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? ...
What is the best way to convert .xsd-files into .ecore-files? Is there an eclipse plugin for that? ...
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...
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. ...
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...
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 ...
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...
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"/>...
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"> <xs:element name="cluster"> <xs:complexType> <xs:sequence> <xs:element ref="host"/> ...
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...
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...
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 ...
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...
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. ...
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 ...
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...
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. ...
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"? ...
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...
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...
or is there a project with the same goals? maybe with IQueryable provider ready to use.. am I asking too much? ...