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 c26dd62 commit 801f82eCopy full SHA for 801f82e
js/load-image-xmp.js
@@ -64,6 +64,10 @@
64
}
65
var xml = arrPacketData.join("");
66
67
+ loadImage.XmpMap.prototype.getXml = function (id) {
68
+ return xml;
69
+ }
70
+
71
data.xmp = new loadImage.XmpMap();
72
73
// Create an XMLDocument and extract the attributes from the
@@ -96,6 +100,12 @@
96
100
var attr;
97
101
for (var k = 0; k < node.attributes.length; k++) {
98
102
attr = node.attributes[k];
103
104
+ // Don't include namespace definitions.
105
+ if (attr.prefix === "xmlns"){
106
+ continue;
107
108
99
109
data.xmp[attr.localName] = attr.value;
110
111
0 commit comments