sabre-io / xml

sabre/xml is an XML library that you may not hate.
http://sabre.io/xml/
BSD 3-Clause "New" or "Revised" License
515 stars 77 forks source link

Fixed handling of elements from foreign namespaces in values object (v3) #275

Closed phil-davis closed 4 months ago

phil-davis commented 4 months ago

When encountering an element from another namespace the value object parser does skip the opening element. However when it encounters the closing element it did handle it like it was the closing element of the one being processed.

This commit and unit test fixes the issue by ignoring the element completely

This is a port of #270 to the v3 branch.

Also see #273 which has the same code applied to the master branch.