151 |
AttributeSet hatts = getAttributes(); |
AttributeSet hatts = getAttributes(); |
152 |
NamedNodeMap natts = new_node.getAttributes(); |
NamedNodeMap natts = new_node.getAttributes(); |
153 |
|
|
154 |
Enumeration enum = hatts.getAttributeNames(); |
Enumeration enumeration = hatts.getAttributeNames(); |
155 |
Object key; |
Object key; |
156 |
Node attribute; |
Node attribute; |
157 |
|
|
158 |
while (hatts != null) |
while (hatts != null) |
159 |
{ |
{ |
160 |
while (enum.hasMoreElements()) |
while (enumeration.hasMoreElements()) |
161 |
{ |
{ |
162 |
key = enum.nextElement(); |
key = enumeration.nextElement(); |
163 |
attribute = document.createAttribute(key.toString()); |
attribute = document.createAttribute(key.toString()); |
164 |
attribute.setNodeValue(hatts.getAttribute(key).toString()); |
attribute.setNodeValue(hatts.getAttribute(key).toString()); |
165 |
natts.setNamedItem(attribute); |
natts.setNamedItem(attribute); |