- From: Piccand Régis <regis.piccand@imtf.ch>
- Date: Wed, 9 Jan 2002 17:04:27 +0100
- To: xmlschema-dev@w3.org
Hello all,
I try to write a schema, where one of my element should contain XML tags,
like follows :
<?xml version="1.0" encoding="ISO-8859-1"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="root">
<xs:complexType>
<xs:sequence>
<xs:element name="content" type="xs:string">
<xs:annotation>
<xs:documentation>this element will contain an XML
string</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
The problem is that I cannot validate an XML instance document, as the
"content" tag contains an XML string.
<?xml version="1.0" encoding="ISO-8859-1"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="D:\projects\MetaEd\toto.xsd">
<content>
xml content should come here ...
</content>
</root>
Thanks in advance for any hints ...
Régis
Received on Wednesday, 9 January 2002 11:11:01 UTC