simplexml.rng: error: element "fieldset" not allowed here; expected the element end-tag or element "row" or "search"
I got this error:
error: element "fieldset" not allowed here; expected the element end-tag or element "row" or "search" with a seemingly legitimate SimpleXML file.
combined-current-forecast.zip
The command is
java -jar ~/dev/utils/jing-20091111/bin/jing.jar ~/dev/utils/SplunkStuff/validation/simplexml.rng ~/dev/rail-weather-dashboard/src/combined-current-forecast.xml
The xml file zipped is attached in the next comment.
Attaching the file again combined-current-forecast.zip .
The cause of the error is a
Your comment is hard to understand. The "a
element" is not clear. This " that inputs exist in a not in a ." is also not clear. What should I do to avoid the error? Replacing dashboard by form?
Mangled comment by github...
Yes, switch from a dashboard to a form, the docs states that forms have inputs, dashboards do not, but the javascript doesn't make that distinction.
I haven't decided if the rng should fit the spec as documented, or the spec from the JS editor, which is slightly looser in a few areas.
Unless there is disaster consequence of accommodating the looser spec from the JS editor, I wish that you would tolerate the looser spec.. It would reduce the frictions and save some productivity, like in my case.