Open
Description
What steps will reproduce the problem?
1.Open this xml file in the browser (FF)
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="xml2json.xsl"?>
<animals>
<dog>
<name>Rufus</name>
<breed>labrador</breed>
</dog>
<dog>
<name>Marty</name>
<breed>whippet</breed>
</dog>
<cat name="Matilda"/>
</animals>
What is the expected output? What do you see instead?
the expected result would be:
{"animals":
{"dog":
{
"name":"Rufus",
"breed":"labrador"
},
"dog":
{
"name":"Marty",
"breed":"whippet"
}
},
"cat":{
"name":"Matilda"
}
}
and this is what I get
{"animals":
{"dog":
{
"name":"Rufus",
"breed":"labrador"
},
"dog":
{
"name":"Marty",
"breed":"whippet" // missing brace here
},
"cat":null // why null ?
}
What version of the product are you using? On what operating system?
Using xml2json-xslt-r3.zip on Linux
Original issue reported on code.google.com by [email protected]
on 19 Mar 2010 at 2:01