On 09/23/2011 02:59 PM, Agnes Clarke wrote: > Thanks for the quick response, but as far as I can see neither possibility > you suggest applies:
Thanks for sending excerpts from your schema. The answer lies there: <xsd:element name="description" type="xsd:string"/> An xsd:string data type implies that everything single character typed by the user should be preserved in the XML document. If you want whitespace to be collapsed you should specify data type xsd:token. See http://www.w3.org/TR/xmlschema-2/#token > > Schema: > > <xsd:element name="types" type="complex-types"/> > > <xsd:complexType name="complex-types"> > <xsd:sequence> > > <xsd:element name="complex-type" minOccurs="0" > maxOccurs="unbounded" type="complex-type"/> > > > </xsd:sequence> > > > </xsd:complexType> > > > <xsd:complexType name="complex-type"> > <xsd:sequence> > <xsd:element name="name" type="xsd:string"/> > <xsd:element name="description" type="xsd:string"/> > <xsd:element name="field" minOccurs="0" maxOccurs="unbounded" > type="field"/> > </xsd:sequence> > </xsd:complexType> > > > <xsd:complexType name="field"> > <xsd:sequence> > <xsd:element name="name" type="xsd:string"/> > <xsd:element name="description" type="xsd:string"/> > </xsd:sequence> > > </xsd:complexType> > > XXE: > > <xxe:detect> > <xxe:rootElementLocalName>types</xxe:rootElementLocalName> > </xxe:detect> > > <xxe:schema> > <xxe:location>http://www.markit.com/mdp/mio/descriptions/entity > descriptionschema.xsd</xxe:location> > </xxe:schema> > > <xxe:css name="Style sheet" location="descriptionschema.css" /> > > <xxe:template name="Template" location="descriptionschema_template.xml" /> > > <xxe:spellCheckOptions skippedElements="mio_e:name " /> > -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

