Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN"
                         "http://castor.org/mapping.dtd">

<!-- /////////////////////////////////////////////////////////// -->
<!-- // Project SIX: OVAL                                     // -->
<!-- //                                                       // -->
<!-- // Castor XML Mapping Specification                      // -->
<!-- /////////////////////////////////////////////////////////// -->

<!-- @author    Akihito Nakamura, AIST -->
<!-- @version   $Id: castor-xml_oval-5-six.xml 3127 2013-04-30 10:48:09Z nakamura5akihito@gmail.com $ -->

<mapping>

    <class name ="jp.go.aist.six.oval.model.OvalObject"
        verify-constructable="false">
    </class>

    <class name ="jp.go.aist.six.oval.model.Element"
        extends="jp.go.aist.six.oval.model.OvalObject"
        verify-constructable="false">

<!--
        <field name="ovalId" type="string">
            <bind-xml name="id" node="attribute"/>
        </field>
-->

        <field name="ovalVersion" type="integer">
            <bind-xml name="version" node="attribute"/>
        </field>
    </class>

    <class name="jp.go.aist.six.oval.model.Document"
        verify-constructable="false">
        
<!--
        <field name="schemaLocation" type="string">
            <bind-xml name="xsi:schemaLocation" node="attribute"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
        </field>
-->

<!--
        <field name="persistentID" type="string">
            <bind-xml name="pid" node="attribute"
            xmlns="http://aist.go.jp/six/oval"
            />
        </field>
-->
    </class>

    <class name="jp.go.aist.six.oval.model.DocumentId">
        <map-to xml="document-id"
            ns-uri="http://aist.go.jp/six/oval"/>
        <field name="value" type="string">
            <bind-xml node="text"/>
        </field>
    </class>

    <class name="jp.go.aist.six.oval.model.AffectedCpeList">
    <!--
        <map-to 
            ns-uri="http://oval.mitre.org/XMLSchema/oval-definitions-5"/>
    -->

        <field name="cpe" 
            type="jp.go.aist.six.oval.model.Cpe"
            collection="collection">
            <bind-xml name="cpe" node="element"/>
        </field>
    </class>

    <class name="jp.go.aist.six.oval.model.Cpe">
    <!--
        <map-to xml="cpe"
            ns-uri="http://oval.mitre.org/XMLSchema/oval-definitions-5"/>
    -->

        <field name="name" type="string">
            <bind-xml node="text"/>
        </field>
    </class>

</mapping>

New to GrepCode? Check out our FAQ X