[xml] Standalone Declaration

  If a XML Document contains the Standalone Declaration as "Yes" and also has external DTD in it, parser is vaildating the XML Document even if Standalone Declaration is "Yes".

For Example:

<?xml version="1.0" standalone="yes"?>
<!DOCTYPE note1 SYSTEM "note1.dtd">

  If i give above XML Document as an input to the Parser with the correct DTD file, parser is validating with respect to note1.dtd even if the Standalone is "Yes" instead of displaying error.

XML 1.0 Specification says that Standalone="yes" indicates that there are no external markup declarations.
Looking forward for the Reply.     

Thanks & Regards,

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