@@ -29,7 +29,7 @@ if(i===undefined){delete o.prototype.initialize
2929} n . prototype = p ;
3030return n
3131} ;
32- Jsonix . XML = { BUILTIN_NAMESPACE_PREFIXES : { xmlns : "http://www.w3.org/2000/xmlns/" , xml : "http://www.w3.org/XML/1998/namespace" } , XMLNS_NS :"http://www.w3.org/2000/xmlns/" , XMLNS_P :"xmlns" } ;
32+ Jsonix . XML = { XMLNS_NS :"http://www.w3.org/2000/xmlns/" , XMLNS_P :"xmlns" } ;
3333Jsonix . DOM = { createDocument :function ( ) { if ( typeof _jsonix_xmldom !== "undefined" ) { return new ( _jsonix_xmldom . DOMImplementation ) ( ) . createDocument ( )
3434} else { if ( typeof document !== "undefined" && Jsonix . Util . Type . exists ( document . implementation ) && Jsonix . Util . Type . isFunction ( document . implementation . createDocument ) ) { return document . implementation . createDocument ( "" , "" , null )
3535} else { if ( typeof ActiveXObject !== "undefined" ) { return new ActiveXObject ( "MSXML2.DOMDocument" )
@@ -630,14 +630,13 @@ h=Jsonix.Util.Type.isNumber(h)?this.nsp[h]:h;
630630var e , g ;
631631for ( e in h ) { if ( h . hasOwnProperty ( e ) ) { g = h [ e ] ;
632632this . declareNamespace ( e , g )
633- } } } , declareNamespace :function ( j , i ) { if ( Jsonix . XML . BUILTIN_NAMESPACE_PREFIXES [ i ] ) { return
634- } var f = this . pns . length - 1 ;
633+ } } } , declareNamespace :function ( j , i ) { var f = this . pns . length - 1 ;
635634var h = this . pns [ f ] ;
636635var g ;
637636if ( Jsonix . Util . Type . isNumber ( h ) ) { g = true ;
638637h = this . pns [ h ]
639638} else { g = false
640- } if ( h [ i ] !== j ) { if ( i === "" ) { this . writeAttribute ( { ns : Jsonix . XML . XMLNS_NS , lp :Jsonix . XML . XMLNS_P } , j )
639+ } if ( h [ i ] !== j ) { if ( i === "" ) { this . writeAttribute ( { lp :Jsonix . XML . XMLNS_P } , j )
641640} else { this . writeAttribute ( { ns :Jsonix . XML . XMLNS_NS , lp :i , p :Jsonix . XML . XMLNS_P } , j )
642641} if ( g ) { h = Jsonix . Util . Type . cloneObject ( h , { } ) ;
643642this . pns [ f ] = h
0 commit comments