Jean-Guillaume LALANNE wrote:
> 
> Hi,
> 
> I have get the same kind of bug with the importNode method and the
> xerces1.3.0 release.
> It looks like someone has recently fixed this bug.
> I have downloaded the source code for this xerces release.
> If the bug fix is not too complex ...isn't it possible to get it.
> I'am currently setting a dynamic validation for my application and it works
> fine with xerces1.3.0.
> But I am now confronted to a new problem with this importNode&attribute bug
> ...
> It was working fine with previous xerces versions ... but this last ones
> didn't handle my validation
> correctly...!!!
> So the only way for me is to fix locally the bug ...
> If you could provide me some tips to fix the bug in xerces1.3.0, it would be
> very helpful for me.
> Many Thanks in advance for your help.
> 

The specific fix to the importNode bug is attached. Alternatively you
can grab the relevant version of the file at:
http://xml.apache.org/websrc/cvsweb.cgi/~checkout~/xml-xerces/java/src/org/apache/xerces/dom/DocumentImpl.java?rev=1.49&content-type=text/plain
-- 
Arnaud  Le Hors - IBM Cupertino, XML Strategy Group
Index: DocumentImpl.java
===================================================================
RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/dom/DocumentImpl.java,v
retrieving revision 1.48
retrieving revision 1.49
diff -c -r1.48 -r1.49
*** DocumentImpl.java   2001/02/02 19:41:34     1.48
--- DocumentImpl.java   2001/02/05 21:39:24     1.49
***************
*** 936,942 ****
                      AttrImpl attr = (AttrImpl) source;
                      if (attr.hasStringValue()) {
                          AttrImpl newattr = (AttrImpl) newnode;
!                         newattr.setValue((String) attr.value);
                          deep = false;
                      }
                      else {
--- 936,942 ----
                      AttrImpl attr = (AttrImpl) source;
                      if (attr.hasStringValue()) {
                          AttrImpl newattr = (AttrImpl) newnode;
!                         newattr.setValue(attr.getValue());
                          deep = false;
                      }
                      else {

Reply via email to