You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by do...@time4you.de on 2000/08/08 11:21:45 UTC
DocumentImpl.importNode drops attribute values
in xerces 1.1.3 DocumentImpl.importNode drops attribute values;
an xml sample:
<tag attr="value"> from an external dom
becomes <tag attr=""> if imported.
here is a fix:
case ATTRIBUTE_NODE: {
if( domLevel20 == true ){
if (source.getLocalName() == null) {
newnode = createAttribute(source.getNodeName());
} else {
newnode =
createAttributeNS(source.getNamespaceURI(),
source.getNodeName());
}
} else {
newnode = createAttribute(source.getNodeName());
}
// THE NEXT LINE IS A POSSIBLE FIX:
((Attr)newnode).setValue( ((Attr)source).getValue() );
deep = true;
// Kids carry value
break;
}
regards,
-sven-
--
time4you GmbH
Geschäftsleitung
PS: Online-Lernen 2000 am 21.09.2000.
Ab sofort können Sie sich unter http://www.online-lernen.de für den
3. Fachtag anmelden! Es erwartet Sie ein interessanter Tag.
***************************************************************************
ONLINE-LERNEN. BERATUNG BEI AUFBAU & EINFÜHRUNG. SW-ENTWICKLUNG.
WEB-HOSTING. QUALIFIZIERUNG. ONLINE-CONTENT-ENTWICKLUNG. SUPPORT.
***************************************************************************
click of the month - http://gc21.ibt.time4you.de !
enter the GLOBAL CAMPUS 21 - based on the IBT SERVER eLearning suite.
time4you GmbH
communication & learning
Maximilianstraße 4
76133 Karlsruhe
Telefon 0721.83.01.60
Telefax 0721.83.01.616
http://www.time4you.de