Skip to content
This repository was archived by the owner on Jan 7, 2021. It is now read-only.

Commit cb3ba8c

Browse files
committed
Merge pull request #111 from mikemellor11/master
Fixed example by changing xml to json
2 parents df70a01 + bdc152c commit cb3ba8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var json = {
3333
name: {'$t': 'John', id:'idx'} // $t for text, and all others will be attributes
3434
}
3535
};
36-
var xml = parser.toXml(xml); //returns xml <root><name for="idx">John</name></root>
36+
var xml = parser.toXml(json); //returns xml <root><name for="idx">John</name></root>
3737
console.log(xml)
3838

3939
```

0 commit comments

Comments
 (0)