New user of this awesome tool.
Parsed XML to JSON and discovered that in each <prob_precip_pct> instance the API renders:
The rogue < needs removing. Can this be done – or is this something we users need to sort?
We are very pleased you think the app is good. Any further feedback would be most welcome.
To answer your question and the ‘<1’ is a string and it means ‘less than 1%’. It is explained in the documentation – though going over the doc and it could be explained better – we’ll amend. You can see what it currently says in the docs here;
If we can help further please don’t hesitate getting straight back to us.
The reason I brought this up was I got an error when trying to parse the XML as JSON.
“#text”: “error on line 198 at column 19: StartTag: invalid element name”
Any thoughts how we might overcome this?
We’ll get to the bottom of this for you. First off though I need to ask why you are parsing from XML to JSON? We provide a ready made JSON output option meaning you would have no need to parse from XML.
To specify the json output format, set the “Accept” header to “application/json”
Or is there is a specific reason you need to request the data in XML format? If so we’d be interested to know what this need was and look to provide a suitable solution for you.