We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 201a424 commit 0f1443aCopy full SHA for 0f1443a
src/parser.js
@@ -44,12 +44,12 @@ function print(xmlNode, indentation){
44
if(xmlNode.child){
45
console.log(indentation + "\"child\": {")
46
const indentation2 = indentation + indentation;
47
- Object.keys(xmlNode.child).forEach( key =>{
+ Object.keys(xmlNode.child).forEach( function(key) {
48
const node = xmlNode.child[key];
49
50
if(Array.isArray(node)){
51
console.log(indentation + "\""+key+"\" :[")
52
- node.forEach( (item,index) => {
+ node.forEach( function(item,index) {
53
//console.log(indentation + " \""+index+"\" : [")
54
print(item, indentation2);
55
})
0 commit comments