Opened 15 years ago
Closed 15 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.
Note: See
TracTickets for help on using
tickets.
They are there, just somewhat non-intuitively nested. Details are available at http://dojo.jot.com/Parser