Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 51020 invoked from network); 7 Dec 2006 07:56:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Dec 2006 07:56:58 -0000 Received: (qmail 11274 invoked by uid 500); 7 Dec 2006 07:57:04 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 11237 invoked by uid 500); 7 Dec 2006 07:57:03 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 11225 invoked by uid 99); 7 Dec 2006 07:57:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Dec 2006 23:57:03 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of phanibalaji.madgula@gmail.com designates 66.249.92.175 as permitted sender) Received: from [66.249.92.175] (HELO ug-out-1314.google.com) (66.249.92.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Dec 2006 23:56:52 -0800 Received: by ug-out-1314.google.com with SMTP id m2so496421ugc for ; Wed, 06 Dec 2006 23:56:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=C/UfxQI4qrc/02UuKg8wDiypFpAvt3GtpTbU4p6Xe82YrHKXcRDWysy2x5u4dAk2lQAHvVX9N0qxYrJ0/YsMK/iDQBvxCQqi4vNXYqLzke7m6xCNF3eZn91jxNCA4rT4wfSF/6H5ZqmnSNAwfeafMIAfosIfyT28ezSBz+5yUZw= Received: by 10.67.119.13 with SMTP id w13mr2377909ugm.1165478189971; Wed, 06 Dec 2006 23:56:29 -0800 (PST) Received: by 10.67.87.9 with HTTP; Wed, 6 Dec 2006 23:56:29 -0800 (PST) Message-ID: <83e2fc4d0612062356i2fab7c36y6e6b885ee11e6501@mail.gmail.com> Date: Thu, 7 Dec 2006 13:26:29 +0530 From: "Phani Madgula" To: "Geronimo Dev" Subject: Axis Implementation of XML DOM MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_45172_5945269.1165478189930" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_45172_5945269.1165478189930 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi There is a problem in Axis implementation of Comment.getNodeType(). I have the following code that recreates the issue. * import* javax.xml.namespace.QName;* **import* javax.xml.soap.Node;* **import* org.apache.axis.message.SOAPBodyElement;* **import* org.w3c.dom.Comment;* **public* *class* AxisXMLCommentTest {* **public* *static* *void* main(String args[]) {* *SOAPBodyElement sb = *new* SOAPBodyElement(*new* QName(" http://www.phanibalaji.com","test"))*; *Comment c = sb.getOwnerDocument().createComment("TEST");* *sb.appendChild(c);* **if* (c.getNodeType() != Node.*COMMENT_NODE*) {* *System.*err*.println("Node is of diffe*rent type*"); * *} *else* {* *System.*err*.println("Success"); * *} } } I am getting the condition *if* (c.getNodeType() != Node.*COMMENT_NODE*) as "true". But, it must be false. Can anybody comment? Regards Phani ------=_Part_45172_5945269.1165478189930 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi
There is a problem in Axis implementation of Comment.getNodeType(). I have the following code that recreates the issue.
 

import

javax.xml.namespace.QName;
import javax.xml.soap.Node ;
import org.apache.axis.message.SOAPBodyElement;
import org.w3c.dom.Comment;

public class AxisXMLCommentTest {
public static void main(String args[]) {
SOAPBodyElement sb = new SOAPBodyElement( new QName("http://www.phanibalaji.com","test"));
Comment c = sb.getOwnerDocument().createComment("TEST");
sb.appendChild(c);
if (c.getNodeType() != Node.COMMENT_NODE) {
System. err.println("Node is of different type");
} else {
  
System.err.println("Success");
}

}

}

I am getting the condition if (c.getNodeType() != Node.COMMENT_NODE) as "true". But, it must be false.
Can anybody comment?

Regards
Phani

------=_Part_45172_5945269.1165478189930--