(Sorry for the spam)

I just had a look at ContentLeafNameTypeVector.hpp, and noticed that the class isn't 
exported. This would mean that the actual implementation is unavailable for anyone who 
wishes to use it through the external API. Is this  a bug, or is this really the way 
it's supposed to be?

Regards 

Mario

---------- Original Message ----------------------------------
From: "mario.gonzalez" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
Date: Thu, 10 Oct 2002 15:14:49 +0200

>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]
>
>
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to