Note that there are some explanatory texts on larger screens.

plurals
  1. POGenerate an XSD using LinqToXml
    primarykey
    data
    text
    <p>Does anyone know how to generate an XSD using LinqToXml? I can't find any examples of this anywhere. The XSD will be of the following fairly low level of complexity:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;!--Created with Liquid XML Studio 6.1.18.0 - FREE Community Edition (http://www.liquid-technologies.com)--&gt; &lt;xs:schema elementFormDefault="qualified" targetNamespace="http://schemas.xxx.yy/CRM/2009/01/DeadAnimalReport" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt; &lt;xs:element name="Name"&gt; &lt;xs:simpleType&gt; &lt;xs:restriction base="xs:string"&gt; &lt;xs:length value="35" /&gt; &lt;/xs:restriction&gt; &lt;/xs:simpleType&gt; &lt;/xs:element&gt; &lt;xs:element name="Email" type="xs:string" /&gt; &lt;xs:element name="Selection"&gt; &lt;xs:simpleType&gt; &lt;xs:restriction base="xs:string"&gt; &lt;xs:length value="15" /&gt; &lt;/xs:restriction&gt; &lt;/xs:simpleType&gt; &lt;/xs:element&gt; &lt;xs:element name="DeliveryDate" type="xs:date" /&gt; &lt;/xs:schema&gt; </code></pre> <p>The context construction of tooling to allow business analysts to generate message schemas along with some related artefacts that are out of scope of the question. The tooling XSD will be generated from CLR objects in the application's object model. </p> <p>The objects are pretty simple - a root object that contains enough information to construct the namespace along with a collection of other objects representing the elements (type, name, etc). </p> <p>Thanks</p> <p>Sean</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload