Skip to content

Commit be2f0fb

Browse files
committed
Update rdf parsing
1 parent de3ee51 commit be2f0fb

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

xmp-core/src/main/java/org/verapdf/xmp/impl/ParseRDF.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,15 @@ static XMPMetaImpl parse(Node xmlRoot) throws XMPException
9898
*/
9999
static void rdf_RDF(XMPMetaImpl xmp, Node rdfRdfNode) throws XMPException
100100
{
101-
if (rdfRdfNode.hasAttributes())
102-
{
101+
//------------------------------------------------------------------------------ veraPDF: disabled exception for rdf without attributes https://github.com/veraPDF/veraPDF-library/issues/1528
102+
// if (rdfRdfNode.hasAttributes())
103+
// {
103104
rdf_NodeElementList (xmp, xmp.getRoot(), rdfRdfNode);
104-
}
105-
else
106-
{
107-
throw new XMPException("Invalid attributes of rdf:RDF element", BADRDF);
108-
}
105+
// }
106+
// else
107+
// {
108+
// throw new XMPException("Invalid attributes of rdf:RDF element", BADRDF);
109+
// }
109110
}
110111

111112

0 commit comments

Comments
 (0)