Open311

Wiki

Collaboration for an Open311 Standard

Parker vs Spark

Collaboration for an Open311 Standard

Jump to: navigation, search

This is a comparison of the Parker and Spark convention for XML to JSON mapping. The example uses the XML for Service Discovery:

In addition to the differences noted on the JSON & XML Conversion page, the XSL being used to convert to the Parker convention does not seem to be stripping the root element even though that is supposed to be one of the properties of Parker. The Spark example does do this.

The easiest way to spot the key difference between Parker and Spark is to see how the <formats> and child <format> elements are handled in each example. The Parker example demonstrates an internal inconsistency based on the number of <format> elements while it is consistent with the Spark example regardless of how many <format> elements there are.