Hi Elliot,

Well, there don't seem to be any entities declared in personal.dtd (at
least in the current CVS version).  Have you tried explicitly adding some
there (or into an internal subset in personal.xml) to see what would
happen?

Cheers,
Neil
Neil Graham
XML Parser Development
IBM Toronto Lab
Phone:  905-413-3519, T/L 969-3519
E-mail:  [EMAIL PROTECTED]




|---------+---------------------------->
|         |           [EMAIL PROTECTED]|
|         |           m                |
|         |                            |
|         |           03/12/2003 05:16 |
|         |           PM               |
|         |           Please respond to|
|         |           xerces-c-dev     |
|         |                            |
|---------+---------------------------->
  
>---------------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                                         |
  |       To:       [EMAIL PROTECTED]                                                  
                                               |
  |       cc:                                                                          
                                                         |
  |       Subject:  Getting entities inside of a DTD                                   
                                                         |
  |                                                                                    
                                                         |
  |                                                                                    
                                                         |
  
>---------------------------------------------------------------------------------------------------------------------------------------------|



All,

To refrain from using my own code, I will just reference the DOMPrint
example.

Why is it that when I add the following code to DOMPrint, I always get a
length of 0 for the DOMNamedNodeMap returned from getEntities on the
doctype of the document (did that make sense?).

DOMNode                             *doc = parser->getDocument();
DOMDocumentType         *docdoctype=((DOMDocument*)doc)->getDoctype();
DOMNamedNodeMap         *entitystuff=docdoctype->getEntities();
XMLSize_t               sz=entitystuff->getLength();

In this example, sz is set to 0 even when I execute DOMPrint with the
following:

C:\XercesC++\binary\xerces-c2_1_0-win32\samples\data>DOMPrint -e -v=auto -n
personal.xml

Any help would be much appreciated.

Thanks.


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