<html><head><meta http-equiv="Content-Type" content="text/html;
charset=UTF-8"><style type="text/css" style="display:none;"><!-- P
{margin-top:0;margin-bottom:0;} --></style></head><body dir="ltr"><div
id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;"
dir="ltr"><p><meta http-equiv="Content-Type" content="text/html;
charset=UTF-8"></p><div id="divtagdefaultwrapper" style="font-size: 12pt;
color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif,
"EmojiFont", "Apple Color Emoji", "Segoe UI
Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android
Emoji", EmojiSymbols;" dir="ltr"><p>Hi,<br></p><p>I am using XMPBox (and
PdfBox) in version 2.0.24. I tried the version 2.0.27 as well. I am trying to
parse XMPMetadata from a PDDocument using a DomXmpParser. I get an
XmpParsingException for the
element <dc:language>x-unknown</dc:language>. <span>The
metadata is shown below as is the exception. </span> The class representing the
dc namespace DublinCoreSchema specifies that a Bag is expected instead of a
text value. A Bag element is indeed correct, but according to the specification
of Dublin Core, a text value is correct as well. Is it a bug or is there any
way around it?<br></p><div><br></div><div>Metadata:<br></div><?xpacket
begin="�" id="W5M0MpCehiHzreSzNTczkc9d"?><br> <x:xmpmeta
xmlns:x="adobe:ns:meta/"><br> <rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><br>
<rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/"
rdf:about=""><br>
<dc:format>application/pdf</dc:format><br>
<dc:language>x-unknown</dc:language><br>
<dc:date>2023-03-16T10:57:48+01:00</dc:date><br>
</rdf:Description><br> <rdf:Description
xmlns:pdf="http://ns.adobe.com/pdf/1.3/"
rdf:about=""><br>
<pdf:Producer>Apache FOP Version
2.7</pdf:Producer><br>
<pdf:PDFVersion>1.4</pdf:PDFVersion><br>
</rdf:Description><br> <rdf:Description
xmlns:xmp="http://ns.adobe.com/xap/1.0/"
rdf:about=""><br>
<xmp:CreatorTool>Apache FOP Version
2.7</xmp:CreatorTool><br>
<xmp:MetadataDate>2023-03-16T10:57:48+01:00</xmp:MetadataDate><br>
<xmp:CreateDate>2023-03-16T10:57:48+01:00</xmp:CreateDate><br>
</rdf:Description><br> </rdf:RDF><br>
</x:xmpmeta><br><p><?xpacket
end="r"?></p><p><br></p><p>Exception:</p><p><span>org.apache.xmpbox.xml.XmpParsingException:
Invalid array definition, expecting Bag and found
com.sun.org.apache.xerces.internal.dom.DeferredTextImpl [prefix=dc;
name=language]</span><br></p><p><br></p><p>Thank you in
advance,</p><p>Dušan<br></p><br></div><p></p></div></body></html>