Import XML


How to import childnodes using Sophora's import XML.

The element <childNodes> comprises content that has not been modeled as a separate document and is therefore existence-dependend on the parent document.

An image object, for example, comprises the corresponding image data (childnode of type sophora-extension-nt:imagedata).

In addition to the node type the cildnode's name has to be provided (the name attribute of an <childNode> element) since it is possible to add childnodes, which have the same type but different names:

<?xml version="1.0" encoding="UTF-8"?>
<document nodeType="sophora-content-nt:imageobject"
    <childNode nodeType="sophora-extension-nt:imagedata" name="sophora-extension:imagedata">
        <property name="sophora-extension:imagetype">
        <property name="sophora-extension:binarydata">
        <property name="sophora:mimetype">

Last modified on 10/16/20

The content of this page is licensed under the CC BY 4.0 License. Code samples are licensed under the MIT License.