Hi,

> 3) Leaf text nodes are not submitted to
> FObj.addCharacters(...).

hupps, that's not exactly true :-). addCharaters(...) *is* called and the
text node is appended to the appropriate element, but when dumping the
complete DOM this text node is missing.

Here is the XMP:
~~~~~~~~~~~~~~~~
<x:xmpmeta x:xmptk="XMP toolkit 2.9-9, framework 1.6"
xmlns:x="adobe:ns:meta/">
        <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
                <rdf:Description rdf:about="dieses-dokument"
xmlns:xap="http://ns.adobe.com/xap/1.0/";>
                        <xap:CreatorTool>
                                Vendor Application XYZ    <!-- This text node 
it is all about -->
                        </xap:CreatorTool>
                </rdf:Description>
        </rdf:RDF>
</x:xmpmeta>

Here is the code:
~~~~~~~~~~~~~~~~~
protected void addCharacters ( char data[], int start, int length ) //
overrides ExtensionObj.addCharaters(...)
{
String str = new String( data, start, length );
Text text = this.document.createTextNode( str );

this.element.appendChild(text); // this works for all elements but for
xap:CreatorTool
}

After dumping the DOM:
~~~~~~~~~~~~~~~~~~~~~~
<x:xmpmeta x:xmptk="XMP toolkit 2.9-9, framework 1.6"
xmlns:x="adobe:ns:meta/">
        <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
                <rdf:Description rdf:about="dieses-dokument"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
                        <xap:CreatorTool 
xmlns:xap="http://ns.adobe.com/xap/1.0/"/>  <!-- ****
missing text node **** -->
                </rdf:Description>
        </rdf:RDF>
</x:xmpmeta>


Any ideas?

Thanks,
        Victor

Reply via email to