Re: Adding attribute xml:space

perhaps something like following (this is a simplistic example for this),

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

   <xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd"/>

   <xs:element name="x">
        <xs:complexType>
      <xs:attribute ref="xml:space"/>
 </xs:complexType>
   </xs:element>

</xs:schema>

You may also cache the schema xml.xsd locally, for reliable validation.


On Tue, Jun 7, 2011 at 10:04 AM, Karl Stubsjoen <kstubs@gmail.com> wrote:
> I have an xml document and for one of the elements xml:space should be a
> valid attribute.  I do not know how to set this up in my schema.  My Xml is
> not declared with any sort of schema.
> Thanks for any help.
> Karl..
>
> --
> Karl Stubsjoen
> MeetScoresOnline.com
> (602) 845-0006




-- 
Regards,
Mukul Gandhi

Received on Tuesday, 7 June 2011 05:38:57 UTC