xsd

XSD DataSets and ignoring foreign keys

I have and pretty standard table setup in a current application using the .net XSD DataSet and TableAdapter features. My contracts table consists of some standard contract information, with a column for the primary department. This column is a foreign key to my Departments table, where I store the basic department name, id, notes. This i...

What is the best XML editor?

Is there a good XML / XSD editor out there? I've been using the editor in Visual Studio 2005 a little but find it lacking in features. Which editors do you use? ...

What's the best way to validate an XML file against an XSD file?

I'm generating xml files that need to conform to an xsd that was given to me. What's the best way to do this? ...

How to generate sample XML documents from their DTD or XSD?

We are developing an application that involves a substantial amount of XML transformations. We do not have any proper input test data per se, only DTD or XSD files. We'd like to generate our test data ourselves from these files. Is there an easy/free way to do that? Edit There are apparently no free tools for this, and I agree that Oxy...

IntelliSense for XElement objects with XML schema

Reading an article called "Increase LINQ Query Performance" in Jully's MSDN magazine, the author states that using an Imports in VB providing a path to schema in the current project will turn IntelliSense on for XElement. In the code provided, he uses statements like xelement.@name to retreive attributes values, and so on. I did not try...

XML Schema construct for "Any number of these elements - in any order"

I need to create an XML schema that looks something like this: <xs:element name="wrapperElement"> <xs:complexType> <xs:sequence> <xs:element type="el1"> <xs:element type="el2"> </xs:sequence> <xs:WhatGoesHere?> <xs:element type="el3"> <xs:element type="el4"> <xs:element type="el5"> ...

Handling XSD Dataset ConstraintExceptions

Does anyone have any tips for dealing with ConstraintExceptions thrown by XSD datasets? This is the exception with the cryptic message: System.Data.ConstraintException : Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. ...

[Best Practices] XSD: Nested Types vs Global Types

When defining XSD you can either choose to define your types as nested types or global types (complexType). I understand that global types are of much more use when it comes to morphism or reusing of elements. However, if you have a big data model you would have to define for each level a global complexType and then create an elemen...

Validating a HUGE XML file

I'm trying to find a way to validate a large XML file against an XSD. I saw the question ...best way to validate an XML... but the answers all pointed to using the Xerces library for validation. The only problem is, when I use that library to validate a 180 MB file then I get an OutOfMemoryException. Are there any other tools,libraries,...

XML namespaces and attributes

I'm trying to understand how namespaces work in XML. When I have an element like foo:bar, the attributes will often not have namespaces on them. But sometimes they will. Are the attribute in the namespace of the element, even when the default namespace has been declared? Looking over the xsd for xhtml it seems the attributes are part of ...

Is there a class to generate a sample XML document from XSD schema in .NET

In Visual Studio you can create a template XML document from an existing schema. The new XML Schema Explorer in VS2008 SP1 takes this a stage further and can create a sample XML document complete with data. Is there a class library in .NET to do this automatically without having to use Visual Studio? I found the XmlSampleGenerator artic...

Where can i find the XML schema (XSD-file) for the Glade markup language?

As stated in the title, i'm looking for an XML schema (XSD-file) for the Glade markup language? Wikipedia states that Glade is a schema based markup language (list of schemas at wikipedia). I tried to search the web, wikipedia and the glade website,but i couldn't find an XSD for Glade. Thx, Juve ...

C++ web service framework

We are looking for a C++ Soap web services framework that support RPC, preferably open source. Any recommendations? ...

Any tools to generate an XSD schema from an XML instance document?

I am looking for a tool which will take an XML instance document and output a corresponding XSD schema. I certainly recognize that the generated XSD schema will be limited when compared to creating a schema by hand (it probably won't handle optional or repeating elements, or data constraints), but it could at least serve as a quick star...

Using xsd to generate XML in .net

I'm working in a .net application where we need to generate XML files on the fly based on the dataset retrieved from the db. XML schema should be based on a xsd provided. I would like to know is there any way to bind or associate a dataset or each datarow with the xsd. I dont know whether it can be done at all or i may be thinking usage ...

In AIML, what's the XSD-valid way to use the element <set name="it"> ?

In file Atomic.aiml, part of the annotated ALICE AIML files, there are a lot of categories like this: <category> <pattern>ANSWER MY QUESTION</pattern> <template> Please try asking <set name="it">your question</set> another way. </template> </category> This code isn't valid according to the AIML...

XML schema construct for "any one or more of these elements but must be at least one"

I'm trying to set up part of a schema that's like a "Sequence" where all child elements are optional, but at least one of the elements must be present, and there could be more than one of them. I tried doing the following, but XMLSpy complains that "The content model contains the elements <element name="DateConstant"> and <element name=...

Is it valid to have a 'choice' of 'group' elements when defining an XML Schema (XSD)

Is it valid to have a 'choice' or 'group' elements when defining an XML Schema (XSD) i.e. is the following valid <xs:complexType name="HeaderType"> <xs:sequence> <xs:element name="reservation-number" type="ReservationNumberType" minOccurs="1" maxOccurs="1" nillable="false" /> <xs:choice minOccurs="1" maxOccurs="1"> <xs:...

Is it possible in W3C's XML Schema language (XSD) to allow a series of elements to be in any order but still limit occurrences?

I know about all and choice, but they don't account for a case where I do want some elements to be able to occur more than once, such as: <Root> <ThingA/> <ThingB/> <ThingC/> <ThingC/> <ThingC/> </Root> I could use sequence, but I'd prefer to allow these children to be in any order. I could use any, but then I coul...

Denormalize an XML schema programmatically

I need to take any given valid XML schema (XSD) and denormalize it to a simple form containing no refs, no includes, etc. All simple type definitions should be inline, such that when looking at any given element, all declarations are visible without performing another lookup. I've found some tools that have this built-in, but I need to...