Skip to content

Commit

Permalink
Fixes #62.
Browse files Browse the repository at this point in the history
  • Loading branch information
highsource committed Mar 24, 2015
1 parent 57aff00 commit 3c69817
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions nodejs/scripts/jsonix.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ Jsonix.Class = function() {
Jsonix.XML = {
XMLNS_NS : 'http://www.w3.org/2000/xmlns/',
XMLNS_P : 'xmlns'

};


Expand Down Expand Up @@ -1608,7 +1607,7 @@ Jsonix.XML.Output = Jsonix.Class({
{
if (p === '')
{
this.writeAttribute({ns : Jsonix.XML.XMLNS_NS, lp : Jsonix.XML.XMLNS_P}, ns);
this.writeAttribute({lp : Jsonix.XML.XMLNS_P}, ns);
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion nodejs/scripts/tests/GH62/GH62.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = {
}
};
var marshalled = marshaller.marshalString(data);
test.equal("<root xmlns:gh62=\"urn:gh62\"><toor>orto</toor></root>", marshalled);
test.equal("<root xmlns=\"urn:gh62\"><toor>orto</toor></root>", marshalled);
test.done();
}
};
1 change: 0 additions & 1 deletion scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/XML.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Jsonix.XML = {
XMLNS_NS : 'http://www.w3.org/2000/xmlns/',
XMLNS_P : 'xmlns'

};

Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ Jsonix.XML.Output = Jsonix.Class({
{
if (p === '')
{
this.writeAttribute({ns : Jsonix.XML.XMLNS_NS, lp : Jsonix.XML.XMLNS_P}, ns);
this.writeAttribute({lp : Jsonix.XML.XMLNS_P}, ns);
}
else
{
Expand Down

0 comments on commit 3c69817

Please sign in to comment.