xml2json 2.0.6 copy "xml2json: ^2.0.6" to clipboard
xml2json: ^2.0.6 copied to clipboard

outdatedDart 1 only

An XML to JSON conversion package.

xml2json #

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

105
likes
0
pub points
97%
popularity

Publisher

verified publisherdarticulate.com

An XML to JSON conversion package.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

xml

More

Packages that depend on xml2json