Open bendrissou opened 1 year ago
I'm glad you find this repository helpful. I'll try to address your issue ASAP. You can watch the repo for new changes or star it.
Frankly speaking I didnt update CLI command with latest changes. It was completely forgotten. I'll update that and publish
The CLI command
fxparser
fails to reject multiple root nodes of type: self-closing tags.It successfully rejects multiple root nodes, only when there is more than one "non-self-closing tags" elements at the root level.
I seems that the parser never considers self-closing tags as root nodes. Which is not in line with the XML specification.
For example, the following xml input is valid according to the parser:
<vp></vp><TnqE/>
Running the following CLI command:
fxparser -v example.xml
Produces output:
{ vp: '', TnqE: '' }