SplunkStuff icon indicating copy to clipboard operation
SplunkStuff copied to clipboard

simplexml.rng: error: element "fieldset" not allowed here; expected the element end-tag or element "row" or "search"

Open yubrshen opened this issue 3 years ago • 5 comments

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.

yubrshen avatar Jul 04 '22 13:07 yubrshen

Attaching the file again combined-current-forecast.zip .

yubrshen avatar Jul 04 '22 13:07 yubrshen

The cause of the error is a element that contains a

element. The documentation states that inputs exist in a
not in a . Need to still look at the underlying Javascript. If doing GUI edits, it will convert from dashboard to form for you.

mmccul avatar Jul 04 '22 17:07 mmccul

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?

yubrshen avatar Jul 05 '22 00:07 yubrshen

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.

mmccul avatar Jul 05 '22 01:07 mmccul

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.

yubrshen avatar Jul 05 '22 01:07 yubrshen