[EMAIL PROTECTED] wrote:
>     NameIdPoolEnumerator<DTDElementDecl> elemEnum =
> valToUse->getElemEnumerator();
>     while (elemEnum.hasMoreElements())
>     {
>     }

I don't know if an object Enumerator will work because I don't
believe that we keep the element declarations as objects in the
pool. They are just parallel arrays of information.

There are a variety of solutions to this, of course:

  1) Create element decl objects to wrap the information when
     the user asks for the enumerator. These can be created
     lazily.
  2) Create an integer enumerator that gives you the IDs so
     that you can ask the pool for the information from the
     ID. We could even put these methods on the pool itself:

         getElementDeclCount():int
         getElementDeclAt(int):int

     (Sorry to use Java naming conventions on these methods...)

Ideas? Comments?

-- 
Andy Clark * IBM, JTC - Silicon Valley * [EMAIL PROTECTED]

Reply via email to