Hello All,

  I have following fragment from schema definition:

  <xs:simpleType name="FID">
        <xs:restriction base="xs:ID">
            <xs:pattern value="F[1-9][0-9]?"/>
        </xs:restriction>
    </xs:simpleType>

    <xs:complexType name="FOOTNOTE" mixed="true">
        <xs:attribute name="id" type="FID" use="required"/>
    </xs:complexType>


    And following xml fragment:
    <footnotes>
        <footnote id="F1">Footnote 1.</footnote>
        <footnote id="F2">Footnote 2.</footnote>
        <footnote id="F3">Footnote 3.</footnote>
        <footnote id="F4">Footnote 4.</footnote>
        <footnote id="F5">Footnote 5.</footnote>
    </footnotes>

   Using CodeGen I have a class with definition:

   /**
 * Schema fragment(s) for this class:
 * <pre>
 * &lt;xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema";
mixed="true" name="FOOTNOTE">
 *   &lt;xs:attribute type="xs:string" use="required" name="id"/>
 * &lt;/xs:complexType>
 * </pre>
 */
public class FOOTNOTE
{
    private String id;

    /**
     * Get the 'id' attribute value.
     *
     * @return value
     */
    public String getId() {
        return id;
    }

    /**
     * Set the 'id' attribute value.
     *
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }
}


  The question is what I have to do in order in the generated class to have
field which should contain the content "Footnote 1." ?

Best Regards,
Pavel Tonev
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to