| 1 |
Index: C:/eclipse/sentinel/www/jsolait/lib/xml.js |
|---|
| 2 |
=================================================================== |
|---|
| 3 |
--- C:/eclipse/sentinel/www/jsolait/lib/xml.js (revision 37) |
|---|
| 4 |
+++ C:/eclipse/sentinel/www/jsolait/lib/xml.js (working copy) |
|---|
| 5 |
@@ -243,10 +243,15 @@ |
|---|
| 6 |
}catch(e){ |
|---|
| 7 |
alert(node.namespaceURI + "\n" + e.message); |
|---|
| 8 |
} |
|---|
| 9 |
- if(nsprefix + node.localName == "xmlns:xmlns"){ |
|---|
| 10 |
+ var localName = node.localName; |
|---|
| 11 |
+ if( typeof localName == 'undefined' ) |
|---|
| 12 |
+ { |
|---|
| 13 |
+ localName = node.name; |
|---|
| 14 |
+ } |
|---|
| 15 |
+ if(nsprefix + localName == "xmlns:xmlns"){ |
|---|
| 16 |
nsprefix=""; |
|---|
| 17 |
- } |
|---|
| 18 |
- s+=nsprefix + node.localName+'="' + node.value + '"'; |
|---|
| 19 |
+ } |
|---|
| 20 |
+ s+=nsprefix + localName +'="' + node.value + '"'; |
|---|
| 21 |
break; |
|---|
| 22 |
case DOCUMENT_NODE: |
|---|
| 23 |
if(node.documentElement != null){ |
|---|