Remove trailing slash from jPath for self-closing tags by m-radzikowski · Pull Request #595 · NaturalIntelligence/fast-xml-parser (original) (raw)

Purpose / Goal

Fixes #564

The jPath in updateTag() callback for self-closing tags contained a trailing slash (like: root.a/) which was not intended and could lead to errors if you implemented logic based on the jPath and did not take that into account.

I've added removing trailing slash from jPath in the same place where it's removed from tagName.

Type

Please mention the type of PR