Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Parsing fails when XML declaration is missing and a standard PI is present #134

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lucacorti
Copy link
Contributor

@lucacorti lucacorti commented Sep 2, 2024

Currently, when the optional xml declaration is missing in the prolog and a standard processing instruction with the <?xml- prefix is present in the document, parsing fails.

Adds fixtures to test:

  • Missing optional XML declaration (currently works, misses a test)
  • Missing optional XML declaration with a standard '<?xml-' Processing Instruction (Fails)
  • Missing optional XML declaration with a custom '<?' Processing Instruction (currently works, misses a test)

Adds fixtures to test:
 - Missing optional XML declaration (currently works, misses a test)
 - Missing optional XML declaration with a standard '<?xml-' Processing Instruction (Fails)
 - Missing optional XML declaration with a custom '<?' Processing Instruction (Fails)
@lucacorti lucacorti changed the title Add failing tests for prolog variations Parsing fails when XML declaration is missing and a standard PI is present Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant