Hi Alex,

Xerces symbolTable calls String.intern() on anything passed in, so if you
simply intern the strings you want to reference-compare, you should be off
to the races.  Failing that, you could try the getAttribute method on the
DocumentBuilderFactory/SAXParserFactory cdlasses in JAXP; I have to admit
though that I've not tried this and it isn't 100% clear to me this'll work
from looking at the code.

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




|---------+---------------------------->
|         |           "Aleksandar      |
|         |           Milanovic"       |
|         |           <[EMAIL PROTECTED]|
|         |           sinc.com>        |
|         |                            |
|         |           10/28/2002 12:16 |
|         |           PM               |
|         |           Please respond to|
|         |           xerces-j-user    |
|         |                            |
|---------+---------------------------->
  
>---------------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                                                |
  |       To:       "Xerces-J-User" <[EMAIL PROTECTED]>                         
                                                     |
  |       cc:                                                                   
                                                                |
  |       Subject:  symbol table                                                
                                                                |
  |                                                                             
                                                                |
  |                                                                             
                                                                |
  
>---------------------------------------------------------------------------------------------------------------------------------------------|



Hi All,

How can I gain access to the symbol table of a Xerces DocumentBuilder (i.e.
Xerces implementation of this class) via JAXP interface?

My code does a lot of comparions of prefixes and namespace URIs in large
documents, and I'd like to use reference comparisons where possible to
speed
up the whole thing.

thx
Alex


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