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=9358>. 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=9358 Attributes set in returned Element objects are discarded ------- Additional Comments From [EMAIL PROTECTED] 2002-05-23 16:31 ------- Replacing the setAttribute calls with setAttributeNS and getAttribute with getAttributeNS as noted below has not effect on the outcome. --- JAVA CODE --- org.w3c.dom.Element retval = document.createElementNS(element.getNamespace(), element.getPrefix() + ":testresult"); retval.setAttributeNS(element.getNamespace(), element.getPrefix()+"Attr1", "This is attr1"); retval.setAttributeNS(null, "Attr2", "This is attr2"); retval.setAttributeNS(null, "Attr3", "This is attr3"); System.out.println("test() attribute values: Attr1=[" + retval.getAttributeNS(element.getNamespace(), element.getPrefix()+"Attr1") + "] Attr2=[" + retval.getAttributeNS(null, "Attr2") + "] Attr3=[" + retval.getAttributeNS(null, "Attr3") + "]"); java.io.StringWriter w = new java.io.StringWriter(); --- END OF JAVA CODE ---
