Hi,

         I am parsing a document to test System literal production. i.e

ExternalID   ::=   'SYSTEM' S SystemLiteral | 'PUBLIC' S PubidLiteral S
SystemLiteral

 SystemLiteral   ::=   ('"' [^"]* '"') | ("'" [^']* "'")

     The test is to use empty string ("") as system literal which is valid
according to production.

My xml document looks like this.

<?xml version="1.0"?>

<!DOCTYPE student [

<!ELEMENT student (#PCDATA)>

<!ENTITY unref SYSTEM "">

]>

<!-- testing systemliteral with nothing between the double quotes -->

<student>My Name is SnowMan. </student>

 

           But , I get error saying invalid system literal. is this the
correct behavior, please clarify.

 

Regards,

murali

 

 

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to