Skip to content

Processing instruction validation error #317

@guerrap

Description

@guerrap
  • Are you running the latest version?
  • Have you included sample input, output, error, and expected output?
  • Have you checked if you are using correct configuration?
  • Did you try online tool?

Description

Im trying to validate an XML that uses a PI tag at a non-top level, but the validation fails. This tool correctly validates the XML, but the fast-xml-parser online tool doesn't. Is there a way to ignore those tags? Or this is the expected result?

Input

<?xml version="1.0" encoding="utf-8"?>
<Content><?tibco-char 19?> content</Content>

Code

validate('<?xml version="1.0" encoding="utf-8"?><Content><?tibco-char 19?> content</Content>`);

Output

{
    err: { code: 'InvalidChar', msg: "char 'c' is not expected.", line: 2 }
}

expected data

true

Would you like to work on this issue?

  • Yes
  • No

Bookmark this repository for further updates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions