[xml] Query regarding empty system literal string.



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

 

 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]