Skip to content
XML to JSON conversion for Dart
Branch: master
Clone or download
shamblett and Steve Hamblett Add gitattributes
Latest commit c838dbc Oct 25, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
coverage
doc Updates for issue 7, prep release for 2.0.7 Aug 12, 2015
example Update testing, run browser tests on Travis Oct 3, 2018
lib Update testing, run browser tests on Travis Oct 3, 2018
test Update testing, run browser tests on Travis Oct 3, 2018
.directory
.gitattributes Add gitattributes Oct 25, 2018
.gitignore
.travis.yml
AUTHORS
CHANGELOG.md
LICENSE
README.md Issue 14, update to Dart 2 Aug 13, 2018
analysis_options.yaml Update testing, run browser tests on Travis Oct 3, 2018
pubspec.yaml

README.md

xml2json

Build Status

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 :-

  1. Parker
  2. Badgerfish
  3. Google Data(GData).

The package uses the 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.

You can’t perform that action at this time.