Skip to content

Fail to reject multiple root nodes #3

Description

@bendrissou

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: '' }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions