On Wed, Sep 19, 2001 at 04:33:18PM -0500, David Simcik wrote:
> Hi!
>       A little off-topic I know, but since I'm using Perl for the script, well...
> ;-) Anyways, I have an XML document and I want to use <![CDATA[ ]]>
> (whatever its type is actually called) to keep some content from being
> parsed by the parser. 

OK, but there's no #CDATA content model:

> <?xml version="1.0" standalone="yes"?>
> <!DOCTYPE errors
> [ 
> ...
> <!ELEMENT erraction (#CDATA)>
> ]>                    ^
                        |
                        This should be (#PCDATA).

The DTD you have as part of the <!DOCTYPE...> declaration isn't
actually required (the doctype itself isn't required, either).

The document should parse fine whether you remove the <!DOCTYPE...>
delcaration, remove the DTD declaration within the <!DOCTYPE...>,
or just change #CDATA to #PCDATA for the erraction element.

HTH,

Z.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to