Hi,
(I'm using 2.1.0, for Win32)
I'm currently working with extracting the types, their datatypes, and the content
models from a schema (for storage in our database).
As far as getting the type names, their content model types, datatypes, everything
works fine. But when it comes to extracting the actual content models I get a link
failure on any method that I call on the ContentLeafNameTypeVector that I've extracted
from the XMLContentModel for the current SchemaElementDecl (unresolved symbols). Note
that I do not get any link failures with the other Xerces types that I use.
The linker error (an example):
error LNK2001: unresolved external symbol "public: class QName * __thiscall
ContentLeafNameTypeVector::getLeafNameAt(unsigned int)const "
This is what I'm trying to do:
=======================================================
// Get the content model
XMLContentModel* contentModel = curElem.getContentModel();
// Get the list of aggretated objects
ContentLeafNameTypeVector* content = contentModel->getContentLeafNameTypeVector();
const int contentCount = content->getLeafCount();
for(int i = 0; i < contentCount; i++)
{
QName* currLeaf = content->getLeafNameAt(i);
}
=======================================================
What really troubles me is that there is only one library for Xerces to link with, and
if the symbols aren't defined there, then where are they defined?
Am I missing something (obvious) here? Am I not supposed to use
ContentLeafNameTypeVector (even though it is exposed in the API)? Please tell me If
I'm using something incorrectly. I feel that getting the content model the above way
is preferable over using "getFormattedContentModel()", as I need to acces the
individual elements that make up the content model (and parsing strings is the very
last resort).
Please tell me if you need more info in order to help me.
Thank you in advance
Mario Gonzalez
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]