No grammar constraints (DTD or XML schema) detected for the document.

Posted by fastcodejava on Stack Overflow See other posts from Stack Overflow or by fastcodejava
Published on 2010-12-29T05:47:47Z Indexed on 2010/12/29 5:54 UTC
Read the original article Hit count: 215

Filed under:
|
|

I have this dtd : http://fast-code.sourceforge.net/template.dtd But when I include in an xml I get the warning : No grammar constraints (DTD or XML schema) detected for the document. The xml is :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE templates PUBLIC "//UNKNOWN/" "http://fast-code.sourceforge.net/template.dtd">

<templates>
    <template type="type">
        <description>Some</description>
        <variation></variation>
        <variation-field></variation-field>
        <allow-multiple-variation></allow-multiple-variation>
        <class-pattern></class-pattern>
        <getter-setter>setter</getter-setter>
        <allowed-file-extensions>java</allowed-file-extensions>
        <number-required-classes>1</number-required-classes>
        <template-body>
           <![CDATA[
                        Some Data
           ]]>
        </template-body>
    </template>
</templates>

Any clue?

© Stack Overflow or respective owner

Related posts about Xml

Related posts about validation