xmlschemaset

right approach to handling bad xml data

I've got a little c# windows service that periodically pulls xml from a web service and stores the data in a database table. Unfortunately it's failing because the web service has occasional bad data in it - strings instead of decimals. I don't have any control over the web service (unvalidated user input from software we can't change)...

IXmlSerializable with valid XmlSchema (XMLSchema:schema' element is not declared..)

Hi, I am trying to implement IXmlSerializable. My class implements serializable and writes a single string. I wish to be able to export an object graph schema using XsdDataContractExporter (the standard one). The class serializes to a simple xml. <Urn ns='http://palantir.co.za/urn'&gt;somestring&lt;/Urn&gt; My implementation of Get...

Merging Schemas (XmlSchemaProviderAttribute)

Hi, My XmlSchemaSet add method is being ignored. TargetNamespace probably already exists. In my loop (part of GetSchema) I am adding existing classes to the XmlSchemaSet public static System.Xml.Schema.XmlSchemaType GetSchema(System.Xml.Schema.XmlSchemaSet xs) { XsdDataContractExporter exporter = new XsdDataContractExporte...

unable to validate xsd using eclipse jar

the method xsdSchema.validate(); which is a method of org.eclipse.xsd runs into out of memory error while parsing the following piece of code. please help. ...

How to compile a schema that uses a DataSet (xs:schema)?

I have created the simplest web service in c#: public void AddData(DataSet ds) The generated schema (Wsdl) looks like this: <s:schema xmlns:s="http://www.w3.org/2001/XMLSchema"&gt; ... <s:element ref="s:schema" /> ... </s:schema> Note the schema does not contain any import/include elements. I am trying to load this schema to a c# ...

Get All Derived Types in SchemaSet

I need to find all types in a given SchemaSet. What I do today is: 1) Iterate all XmlSchemaTypes in SchemaSet.GlobalTypes.Values. 2) Iterate all values of XmlTypeCode enum I find this as insufficient because some XmlSchemaTypes can be defined in the depth of the schema(i.e not as a GlobalType). Is there a way in .NET I can get all t...