Opened 13 years ago

Closed 13 years ago

#906 closed defect (worksforme)

xml parse to json doesn't seem to parse attributes

Reported by: coms Owned by: anonymous
Priority: high Milestone:
Component: General Version: 0.3
Keywords: xml json parse attributes Cc:
Blocked By: Blocking:

Description

If I take the example from the manual:

{{{<foo bar="bard">

<baz xyzzy="xyzzyd"/>

</foo>}}}

and try using dojo.xml.Parse() to parse to a JSON object, I do indeed get a JSON object with all the element tags, but it contains no attributes.

Change History (1)

comment:1 Changed 13 years ago by dylan

Resolution: worksforme
Status: newclosed

They are there, just somewhat non-intuitively nested. Details are available at http://dojo.jot.com/Parser

Note: See TracTickets for help on using tickets.