NaturalIntelligence / fast-xml-parser

Validate XML, Parse XML and Build XML rapidly without C/C++ based libraries and no callback.
https://naturalintelligence.github.io/fast-xml-parser/
MIT License
2.53k stars 303 forks source link

Any tag which has a format like <!D%s> where %s - any sequence of characters is perceived as <!DOCTYPE> and causes error #649

Closed StombieIT closed 2 weeks ago

StombieIT commented 6 months ago

Description

<some-obj>
    <!D>
    <first-arg>123</first-arg>
    <second-arg>321</second-arg>
</some-obj>

Output

Error: Invalid Tag instead of DOCTYPE

Expected behaviour

Parser will ignore such kind of tags.

Would you like to work on this issue?

github-actions[bot] commented 6 months ago

We're glad you find this project helpful. We'll try to address this issue ASAP. You can vist https://solothought.com to know recent features. Don't forget to star this repo.

amitguptagwl commented 6 months ago

Sorry I couldn't understand your expectations, !D doesn't have any closing tag, it has invalid name then why should parser ignore it?

amitguptagwl commented 2 weeks ago

closing as no response. feel free to reopen it for more discussion