example

Top  Previous  Next

- comment <value>

 

Used as an alternative way to add a comment to a container, a value or an attribute. Normally you would add a comment by placing an XML comment right before the container, value or attribute in the schema.

 

The Schema

 

<schema packageScope="com.wickedfastsolutions.demo.domain">
    <!-- This comment would be applied to the Person object (container) -->
    <Person>
        <!-- This comment would be applied to the first name (value) -->
        <FirstName>John</FirstName>
        <LastName comment="This comment would be applied to the last name (value)">Doe</LastName>
    </Person>
</schema>