The XML in this first example above provides information on a person, "Anna". Her first and last name are provided as elements whereas her gender is provided as an attribute value.
Notice the JSON on the right in this example organizes each event record as separate elements in a JSON array. Also notice the first line of the XML on the left which declares the version and encoding being used. The libraries GeoEvent Server uses to translate the XML to JSON really like seeing this information as part of the XML data. Finally, sometimes XML will include non-visible characters such as a BOM (byte-order mark). If the XML you are trying to ingest is not being recognized by an input you've configured, try copying the XML into a text editor and saving a text-only version to strip out any hidden characters.
<?xml version="1.0" encoding="utf-8"?>
<vehicle make="Ford" model="Explorer">
<vehicle make="Toyota" model="Prius">
<person fname="James" lname="Albert">
<person fname="Mary" lname="Smith">
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.