From b99662e20e42a38c67fd7f1901e4d4a5b5a31279 Mon Sep 17 00:00:00 2001 From: PeiYong Zhang <peiyongz@apache.org> Date: Thu, 28 Oct 2004 20:18:39 +0000 Subject: [PATCH] store/load fSystemId git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@176168 13f79535-47bb-0310-9956-ffa450edef68 --- src/xercesc/validators/DTD/XMLDTDDescriptionImpl.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/xercesc/validators/DTD/XMLDTDDescriptionImpl.cpp b/src/xercesc/validators/DTD/XMLDTDDescriptionImpl.cpp index 6c09ad30b..40ea0f8f0 100644 --- a/src/xercesc/validators/DTD/XMLDTDDescriptionImpl.cpp +++ b/src/xercesc/validators/DTD/XMLDTDDescriptionImpl.cpp @@ -16,6 +16,9 @@ /* * $Log$ + * Revision 1.6 2004/10/28 20:18:39 peiyongz + * store/load fSystemId + * * Revision 1.5 2004/09/08 13:56:50 peiyongz * Apache License Version 2.0 * @@ -116,10 +119,18 @@ void XMLDTDDescriptionImpl::serialize(XSerializeEngine& serEng) if (serEng.isStoring()) { + serEng.writeString(fSystemId); serEng.writeString(fRootName); } else { + if (fSystemId) + { + XMLGrammarDescription::getMemoryManager()->deallocate((void*)fSystemId); + } + + serEng.readString((XMLCh*&)fSystemId); + //the original root name which came from the ctor needs deallocated if (fRootName) { -- GitLab