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. Problem is, I keep on getting error messages like this
"The <![CDATA[ ]]> must end in ]]>". From my point of view they are ending
with ]]>! I even tried the Xerces-J parser; it returned the same results.
Here is a code snippet:
<?xml version="1.0" standalone="yes"?>
<!DOCTYPE errors
[
<!ELEMENT errors (error*)>
<!ELEMENT error (errmsgshort, errmsglong, erraction)>
<!ATTLIST error id ID #REQUIRED>
<!ELEMENT errmsgshort (#PCDATA)>
<!ELEMENT errmsglong (#PCDATA)>
<!ELEMENT erraction (#CDATA)>
]>
<errors>
<error id="ERRAUTHENTICATE">
<errmsgshort>Could not authenticate user!</errmsgshort>
<errmsglong>Blah Blah Blah</errmsglong>
<erraction>
<![CDATA[
print 'Exiting!'; exit(0);
]]>
</erraction>
</error>
</errors>
Maybe it's a whitespace problem. Any thoughts (I hope it's a silly
problem)???
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]