Skip to content

fix(xmp): Correctly parse XMP with self-closing elements#5106

Open
lgritz wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-xmp-self-close
Open

fix(xmp): Correctly parse XMP with self-closing elements#5106
lgritz wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-xmp-self-close

Conversation

@lgritz
Copy link
Collaborator

@lgritz lgritz commented Mar 22, 2026

decode_xmp() only searched for </rdf:Description> end tags, so self-closing <rdf:Description ... /> elements (valid XML) were silently skipped. Now detect both /> and </rdf:Description> endings.

Fixes #5021

Assisted-by: Claude Code / Opus 4.6

decode_xmp() only searched for `</rdf:Description>` end tags, so
self-closing `<rdf:Description ... />` elements (valid XML) were
silently skipped. Now detect both `/>` and `</rdf:Description>`
endings.

Fixes 5021

Assisted-by: Claude Code / Opus 4.6

Signed-off-by: Larry Gritz <lg@larrygritz.com>
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.

bug: OpenImageIO fails to parse valid XMP when rdf:Description is self-closing

1 participant