Thanks for you reply.
 
I have written some code to generate the DTM from an XMLString. The creation 
does not throw any exception. But when I do a dumpDTM, I get the following 
exception :
 
Total nodes: 3
=========== index=0 handle=99 ===========
java.lang.ArrayIndexOutOfBoundsException
        at 
org.apache.xml.dtm.ref.ExpandedNameTable.getNamespaceID(ExpandedNameTable.java:339)
        at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.getNodeName(SAX2DTM.java:636)
        at 
org.apache.xml.dtm.ref.DTMDefaultBase.dumpDTM(DTMDefaultBase.java:697)
        at MyParser.main(MyParser.java:65)

Could someone help me figure the cause. Attached is the source code. The reason 
I want to ues the DTM this way is that I want to reduce the overhead imposed by 
the current DTMManager. My goal is to create the DTM and use the Expression to 
execute XPath expressions.

Thanks in advance,
Siljan
-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Attachment: MyParser.java
Description: Binary data

Reply via email to