Hello. I have this XML document:
I have this XMLSchema:
When I validate the document against the schema, I get this error message:
"No character data is allowed by content model". What does that mean? What have I done wrong?
Thanks in advance.
Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<vbtagsconf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vbtags.xsd">
<vbtag name="bold" params="false" group="basic">
<regexp>\[/?b]</regexp>
<code><b></code>
</vbtag>
<vbtag name="italic" params="false" group="basic">
<regexp>\[/?i]</regexp>
<code><i></code>
</vbtag>
</vbtagsconf>
Code:
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <!-- root element --> <xs:element name="vbtagsconf"> <xs:complexType> <xs:sequence minOccurs="1" maxOccurs="unbounded"> <!-- first tag with three attributes --> <xs:element name="vbtag"> <xs:complexType> <xs:attribute name="name" type="xs:string"/> <xs:attribute name="params" type="xs:string"/> <xs:attribute name="group" type="xs:string"/> </xs:complexType> </xs:element> <!-- next two tags with no attributes --> <xs:element name="regexp" type="xs:string"/> <xs:element name="code" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>
"No character data is allowed by content model". What does that mean? What have I done wrong?
Thanks in advance.
Comment