You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Bagepalli, Kiran" <kb...@informatica.com> on 2001/10/19 20:15:23 UTC
getHashVal crashes
I asked this question a few questions. In the past, I used to get an answer
in a few minutes, but nowadays I wait
for a few days to get any reply at all. Has the focus moved to some other
mailing list.
Thanks
Kiran
-----Original Message-----
From: Bagepalli, Kiran [mailto:kbagepalli@informatica.com]
Sent: Thursday, October 18, 2001 4:21 PM
To: 'xerces-c-dev@xml.apache.org'
Subject: Crash in HashXMLCh::getHashVal
I am trying to mimic EnumVal for Schema validation. I used
personal-schema.xml and
wrote this code.
SchemaValidator* valToUse = new SchemaValidator;
SAXParser parser(valToUse);
parser.setValidationScheme(valScheme);
try
{
parser.parse(xmlFile);
}
catch (const XMLException& e)
{
cerr << "\nError during parsing: '" << xmlFile << "'\n"
<< "Exception message is: \n"
<< StrX(e.getMessage()) << "\n" << endl;
XMLPlatformUtils::Terminate();
return 3;
}
//
// Now we will get an enumerator for the element pool from the
validator
// and enumerate the elements, printing them as we go. For each element
// we get an enumerator for its attributes and print them also.
//
SchemaGrammar* grammar = (SchemaGrammar*) valToUse->getGrammar();
RefHash3KeysIdPoolEnumerator<SchemaElementDecl> elemEnum =
grammar->getElemEnumerator();
However it crashes in getHasVal. Can anyone pls explain. I am using 1.5.1
Kiran
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org