[kepler-users] Workflow XML validator using JDOM

Josep Morer Muñoz josep.morer at gmail.com
Tue Jan 12 09:24:02 PST 2010


Hi all,

I have build a XML validator using JDOM. I am trying to validate Kepler
workflows using DTD file (
http://ptolemy.eecs.berkeley.edu/xml/dtd/MoML_1.dtd) but in most of cases
the validator fails when the workflow has parameters, for example
02-LoktaVolterraPrey.xml in getting-started directory. The validator fails
because finds an unknown tag in XML file named *svg*.

For example:

<entity name="02-LotkaVolterraPredatorPrey"
class="ptolemy.actor.TypedCompositeActor">
    <property name="_createdBy"
class="ptolemy.kernel.attributes.VersionAttribute" value="7.0.2">
    </property>
    <property name="r" class="ptolemy.data.expr.Parameter" value="2">
        <property name="_hideName"
class="ptolemy.kernel.util.SingletonAttribute">
        </property>
        <property name="_icon" class="ptolemy.vergil.icon.ValueIcon">
        </property>
        <property name="_smallIconDescription"
class="ptolemy.kernel.util.SingletonConfigurableAttribute">
            <configure>
      <svg>
        <text x="20" style="font-size:14; font-family:SansSerif; fill:blue"
y="20">-P-</text>
      </svg>
    </configure>
        </property>
        <property name="_editorFactory"
class="ptolemy.vergil.toolbox.VisibleParameterEditorFactory">
        </property>
        <property name="_location" class="ptolemy.kernel.util.Location"
value="410.0, 50.0">
        </property>
    </property>
    <property name="a" class="ptolemy.data.expr.Parameter" value="0.1">
        <property name="_icon" class="ptolemy.vergil.icon.ValueIcon">
        </property>
        <property name="_smallIconDescription"
class="ptolemy.kernel.util.SingletonConfigurableAttribute">
            <configure>
      <svg>
        <text x="20" style="font-size:14; font-family:SansSerif; fill:blue"
y="20">-P-</text>
      </svg>
...

This element (red highlighted) is not defined in DTD file. Can it be
avoided? What does this tag mean?

Thanks for your help.
-- 
Josep
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-users/attachments/20100112/34940a48/attachment.html>


More information about the Kepler-users mailing list