We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6426a75 commit 6defadeCopy full SHA for 6defade
1 file changed
xmpbox/src/main/java/org/apache/xmpbox/xml/DomXmpParser.java
@@ -991,13 +991,10 @@ private Element findDescriptionsParent(Element root) throws XmpParsingException
991
// empty description
992
throw new XmpParsingException(ErrorType.Format, "No rdf description found in xmp");
993
}
994
- else if (nl.getLength() > 1)
+ else if (nl.getLength() > 1 && strictParsing)
995
{
996
// only expect one element
997
- if (strictParsing)
998
- {
999
- throw new XmpParsingException(ErrorType.Format, "More than one element found in x:xmpmeta");
1000
- }
+ throw new XmpParsingException(ErrorType.Format, "More than one element found in x:xmpmeta");
1001
1002
// find element (there may be a text before the element)
1003
for (int i = 0; i < nl.getLength(); ++i)
0 commit comments