Skip to content

Commit 3c69817

Browse files
committed
Fixes #62.
1 parent 57aff00 commit 3c69817

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

nodejs/scripts/jsonix.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ Jsonix.Class = function() {
8181
Jsonix.XML = {
8282
XMLNS_NS : 'http://www.w3.org/2000/xmlns/',
8383
XMLNS_P : 'xmlns'
84-
8584
};
8685

8786

@@ -1608,7 +1607,7 @@ Jsonix.XML.Output = Jsonix.Class({
16081607
{
16091608
if (p === '')
16101609
{
1611-
this.writeAttribute({ns : Jsonix.XML.XMLNS_NS, lp : Jsonix.XML.XMLNS_P}, ns);
1610+
this.writeAttribute({lp : Jsonix.XML.XMLNS_P}, ns);
16121611
}
16131612
else
16141613
{

nodejs/scripts/tests/GH62/GH62.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = {
3333
}
3434
};
3535
var marshalled = marshaller.marshalString(data);
36-
test.equal("<root xmlns:gh62=\"urn:gh62\"><toor>orto</toor></root>", marshalled);
36+
test.equal("<root xmlns=\"urn:gh62\"><toor>orto</toor></root>", marshalled);
3737
test.done();
3838
}
3939
};
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
Jsonix.XML = {
22
XMLNS_NS : 'http://www.w3.org/2000/xmlns/',
33
XMLNS_P : 'xmlns'
4-
54
};
65

scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/XML/Output.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ Jsonix.XML.Output = Jsonix.Class({
208208
{
209209
if (p === '')
210210
{
211-
this.writeAttribute({ns : Jsonix.XML.XMLNS_NS, lp : Jsonix.XML.XMLNS_P}, ns);
211+
this.writeAttribute({lp : Jsonix.XML.XMLNS_P}, ns);
212212
}
213213
else
214214
{

0 commit comments

Comments
 (0)