Author: tilman
Date: Sun Dec 28 09:20:57 2025
New Revision: 1930903

Log:
PDFBOX-5660: improve exception message

Modified:
   
pdfbox/branches/3.0/xmpbox/src/main/java/org/apache/xmpbox/xml/DomXmpParser.java

Modified: 
pdfbox/branches/3.0/xmpbox/src/main/java/org/apache/xmpbox/xml/DomXmpParser.java
==============================================================================
--- 
pdfbox/branches/3.0/xmpbox/src/main/java/org/apache/xmpbox/xml/DomXmpParser.java
    Sun Dec 28 08:30:17 2025        (r1930902)
+++ 
pdfbox/branches/3.0/xmpbox/src/main/java/org/apache/xmpbox/xml/DomXmpParser.java
    Sun Dec 28 09:20:57 2025        (r1930903)
@@ -799,7 +799,8 @@ public class DomXmpParser
         {
             // PDFBOX-5649
             throw new XmpParsingException(ErrorType.NoType,
-                    "Property '" + firstChildQName.getLocalPart() + "' not 
defined in " + firstChildQName.getNamespaceURI());
+                    "Property '" + firstChildQName.getPrefix() + ":" + 
firstChildQName.getLocalPart() +
+                            "' not defined in " + 
firstChildQName.getNamespaceURI());
         }
         Types tt = ctype.type();
         AbstractStructuredType ast = instanciateStructured(tm, tt, 
parentQName.getLocalPart(), firstLiDescriptionElementChild.getNamespaceURI());

Reply via email to