Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Processing instruction validation error #317

Closed
5 of 6 tasks
guerrap opened this issue Feb 4, 2021 · 2 comments
Closed
5 of 6 tasks

Processing instruction validation error #317

guerrap opened this issue Feb 4, 2021 · 2 comments
Labels

Comments

@guerrap
Copy link

guerrap commented Feb 4, 2021

  • 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.

@github-actions
Copy link

github-actions bot commented Feb 4, 2021

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.

@amitguptagwl amitguptagwl added the Pending Pending to be confirmed by user/author for some check/update/implementation label Feb 5, 2021
@amitguptagwl
Copy link
Member

Let me check

# for free to join this conversation on GitHub. Already have an account? # to comment