An XML to JSON conversion package.
This package allows the parsing of XML strings and the transformation of the resulting parse tree into the following XML JSON conventions :-
The package uses the petitparser XML parser to peform the parsing of XML data into a parse tree.
Exact transforming rules can be found in the 'Transforming Details' document in the docs folder.
The Parker convention is a lossy but lean conversion from XML into JSON, ideal for lightweight XML parsing of collections of books, records etc. where attributes and namespace information is not needed.
Badgerfish and GData both preserve XML information such as attributes and namespaces. These are more suited to heavyweight XML parsing of say ATOM feeds where this information may be needed.
See the main Xml2Json class for usage.
Issue 8, correctly escape CDATA strings for JSON
Issue 7, CDATA nodes now translated for Badgerfish and GData.
Use the new XML Package, update to latest Petit Parser see issue 5 in github.
Remove Drone IO integration, now done by pub.
Integrate with Dart's Drone IO testing
Browser is now a dev dependancy
Fixes for Dart V1.5 usage
Remove references to runtime type
Update dependencies to latest
Updates for Dart 1.0 release
Add this to your package's pubspec.yaml file:
dependencies: xml2json: "^2.0.8"
You can install packages from the command line:
$ pub get
Alternatively, your editor might support 'pub get'. Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|2.0.8||Aug 20, 2015||Go to the documentation of xml2json 2.0.8||Download xml2json 2.0.8 archive|
|2.0.7||Aug 12, 2015||Go to the documentation of xml2json 2.0.7||Download xml2json 2.0.7 archive|
|2.0.6||Dec 31, 2014||Go to the documentation of xml2json 2.0.6||Download xml2json 2.0.6 archive|
|2.0.5||Sep 18, 2014||Go to the documentation of xml2json 2.0.5||Download xml2json 2.0.5 archive|
|2.0.4||Jul 8, 2014||Go to the documentation of xml2json 2.0.4||Download xml2json 2.0.4 archive|
|2.0.2||May 22, 2014||Go to the documentation of xml2json 2.0.2||Download xml2json 2.0.2 archive|
|2.0.1||Feb 14, 2014||Go to the documentation of xml2json 2.0.1||Download xml2json 2.0.1 archive|
|2.0.0||Nov 19, 2013||Go to the documentation of xml2json 2.0.0||Download xml2json 2.0.0 archive|
|1.1.0||Oct 10, 2013||Go to the documentation of xml2json 1.1.0||Download xml2json 1.1.0 archive|
|1.0.0||Sep 20, 2013||Go to the documentation of xml2json 1.0.0||Download xml2json 1.0.0 archive|