Skip to content
Snippets Groups Projects
Commit 031ef2ee authored by David Abram Cargill's avatar David Abram Cargill
Browse files

Serialization fix, fPVSIScope not serialized. Problem reported by David Bertoni.

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@176138 13f79535-47bb-0310-9956-ffa450edef68
parent 6b00c16d
No related branches found
No related tags found
No related merge requests found
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
/*** /***
* data member added to XSAnnotation * data member added to XSAnnotation
***/ ***/
#define XERCES_GRAMMAR_SERIALIZATION_LEVEL 3 #define XERCES_GRAMMAR_SERIALIZATION_LEVEL 4
/** DO NOT MODIFY BELOW THIS LINE */ /** DO NOT MODIFY BELOW THIS LINE */
......
...@@ -16,6 +16,9 @@ ...@@ -16,6 +16,9 @@
/* /*
* $Log$ * $Log$
* Revision 1.15 2004/10/13 17:55:40 cargilld
* Serialization fix, fPVSIScope not serialized. Problem reported by David Bertoni.
*
* Revision 1.14 2004/09/08 13:56:56 peiyongz * Revision 1.14 2004/09/08 13:56:56 peiyongz
* Apache License Version 2.0 * Apache License Version 2.0
* *
...@@ -223,6 +226,7 @@ void SchemaAttDef::serialize(XSerializeEngine& serEng) ...@@ -223,6 +226,7 @@ void SchemaAttDef::serialize(XSerializeEngine& serEng)
serEng<<(int)fValidity; serEng<<(int)fValidity;
serEng<<(int)fValidation; serEng<<(int)fValidation;
serEng<<(int)fPSVIScope;
serEng<<fBaseAttDecl; serEng<<fBaseAttDecl;
} }
else else
...@@ -245,7 +249,10 @@ void SchemaAttDef::serialize(XSerializeEngine& serEng) ...@@ -245,7 +249,10 @@ void SchemaAttDef::serialize(XSerializeEngine& serEng)
serEng>>i; serEng>>i;
fValidation = (PSVIDefs::Validation)i; fValidation = (PSVIDefs::Validation)i;
serEng>>i;
fPSVIScope = (PSVIDefs::PSVIScope)i;
serEng>>fBaseAttDecl; serEng>>fBaseAttDecl;
} }
} }
......
...@@ -16,6 +16,9 @@ ...@@ -16,6 +16,9 @@
/* /*
* $Log$ * $Log$
* Revision 1.21 2004/10/13 17:55:40 cargilld
* Serialization fix, fPVSIScope not serialized. Problem reported by David Bertoni.
*
* Revision 1.20 2004/09/08 13:56:56 peiyongz * Revision 1.20 2004/09/08 13:56:56 peiyongz
* Apache License Version 2.0 * Apache License Version 2.0
* *
...@@ -413,7 +416,7 @@ void SchemaElementDecl::serialize(XSerializeEngine& serEng) ...@@ -413,7 +416,7 @@ void SchemaElementDecl::serialize(XSerializeEngine& serEng)
if (serEng.isStoring()) if (serEng.isStoring())
{ {
serEng<<(int)fModelType; serEng<<(int)fModelType;
serEng<<(int)fPSVIScope;
DatatypeValidator::storeDV(serEng, fDatatypeValidator); DatatypeValidator::storeDV(serEng, fDatatypeValidator);
serEng<<fEnclosingScope; serEng<<fEnclosingScope;
...@@ -454,7 +457,8 @@ void SchemaElementDecl::serialize(XSerializeEngine& serEng) ...@@ -454,7 +457,8 @@ void SchemaElementDecl::serialize(XSerializeEngine& serEng)
int i; int i;
serEng>>i; serEng>>i;
fModelType = (ModelTypes)i; fModelType = (ModelTypes)i;
serEng>>i;
fPSVIScope = (PSVIDefs::PSVIScope)i;
fDatatypeValidator = DatatypeValidator::loadDV(serEng); fDatatypeValidator = DatatypeValidator::loadDV(serEng);
serEng>>fEnclosingScope; serEng>>fEnclosingScope;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment