DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20882>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20882

Null Pointer in DOM2DTM.addNode





------- Additional Comments From [EMAIL PROTECTED]  2003-06-18 21:04 -------
 DocumentBuilderFactory dbFactory = 
             DocumentBuilderFactory.newInstance();    
            dBuilder = dbFactory.newDocumentBuilder();
            document = dBuilder.parse("c:/software/hp/tspp/update.xml"); 

 //As i don't want any output,so I am creating outputs files using redirect,  
 that's why I am passing ByteArrayOutputStream to StreamResult.

 TransformerFactory tf = TransformerFactory.newInstance();
 Transformer t = tf.newTransformer(new StreamSource(sXslFileName));
 t.setParameter(TSPP_INDEXER,this);
 ByteArrayOutputStream bos = new ByteArrayOutputStream(); 
 t.transform(new DOMSource(document),new StreamResult(bos) );

I have two questions.
How to make namespace-aware Level 2 nodes ?
What namespace declaration attributes I am supposed to add?

I have similar kind of XML and XSL without namespace(I can attach that too if 
that can be of any help ) which worked fine for me.

Thanks,

Reply via email to