Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 06074DC36 for ; Thu, 4 Oct 2012 17:22:38 +0000 (UTC) Received: (qmail 54671 invoked by uid 500); 4 Oct 2012 17:22:37 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 54620 invoked by uid 500); 4 Oct 2012 17:22:37 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 54611 invoked by uid 99); 4 Oct 2012 17:22:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2012 17:22:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2012 17:22:36 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 70A9823888FE; Thu, 4 Oct 2012 17:21:53 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1394163 - /cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/W3CNamespaceContext.java Date: Thu, 04 Oct 2012 17:21:53 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121004172153.70A9823888FE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dkulp Date: Thu Oct 4 17:21:53 2012 New Revision: 1394163 URL: http://svn.apache.org/viewvc?rev=1394163&view=rev Log: Fix an issue when using the W3CDOMStreamWriter with the dom4j dom implementation. Modified: cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/W3CNamespaceContext.java Modified: cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/W3CNamespaceContext.java URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/W3CNamespaceContext.java?rev=1394163&r1=1394162&r2=1394163&view=diff ============================================================================== --- cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/W3CNamespaceContext.java (original) +++ cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/W3CNamespaceContext.java Thu Oct 4 17:21:53 2012 @@ -82,11 +82,11 @@ public class W3CNamespaceContext impleme String val = a.getValue(); if (val != null && val.equals(uri)) { - String name = a.getNodeName(); + String name = a.getLocalName(); if ("xmlns".equals(name)) { return ""; } else { - return name.substring(6); + return name; } } }