From d042ddee757b93bd99d0b935cc3baabfe431fe3a Mon Sep 17 00:00:00 2001 From: "Unknown (roddey)" <dev-null@apache.org> Date: Sat, 4 Dec 1999 01:13:16 +0000 Subject: [PATCH] Fixed the logic for checking for PIs that start with 'xml'. It was doing doing "if (stringICompare()) " instead of "if (!stringICompare()). git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@171461 13f79535-47bb-0310-9956-ffa450edef68 --- src/validators/DTD/DTDValidator2.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/validators/DTD/DTDValidator2.cpp b/src/validators/DTD/DTDValidator2.cpp index f486ee860..17ef241c6 100644 --- a/src/validators/DTD/DTDValidator2.cpp +++ b/src/validators/DTD/DTDValidator2.cpp @@ -56,6 +56,10 @@ /** * $Log$ + * Revision 1.3 1999/12/04 01:13:16 roddey + * Fixed the logic for checking for PIs that start with 'xml'. It was doing doing "if (stringICompare()) " + * instead of "if (!stringICompare()). + * * Revision 1.2 1999/11/30 20:24:45 roddey * Fixes for incorrect deletion of temporary decl objects, which would cause * a double delete when the parser is deleted. @@ -3270,7 +3274,7 @@ void DTDValidator::scanPI() namePtr = bbName.getRawBuffer(); // See if it issome form of 'xml' and emit a warning - if (XMLString::compareIString(namePtr, XMLUni::fgXMLString)) + if (!XMLString::compareIString(namePtr, XMLUni::fgXMLString)) getScanner()->emitError(XML4CErrs::NoPIStartsWithXML); // If namespaces are enabled, then no colons allowed -- GitLab