Menu

#240 dtd for XmlDataSet

closed-fixed
nobody
None
5
2009-09-24
2009-03-12
lumpynose
No

Eclipse didn't like your dtd in the documentation for XmlDataSet so I tweaked it and came up with the following. (I'm not a dtd or xml expert.)

<?xml version='1.0' encoding='UTF-8'?>

<!ELEMENT dataset (table)+>
<!ELEMENT table (column+, row*)>
<!ATTLIST table
name CDATA #REQUIRED
>
<!ELEMENT column (#PCDATA)>
<!ELEMENT row (value | null)*>
<!ELEMENT value (#PCDATA)>
<!ELEMENT null EMPTY>

Discussion

  • lumpynose

    lumpynose - 2009-03-12

    dataset dtd

     
  • matthias g

    matthias g - 2009-09-24

    I solved this by adding the "ELEMENT none EMPTY" to the end which was obviously missing. But nevertheless thanks for reporting. The correct DTD is now in the javadocs and is:

    <?xml version="1.0" encoding="UTF-8"?>
    <!ELEMENT dataset (table+)>
    <!ELEMENT table (column*, row*)>
    <!ATTLIST table name CDATA #REQUIRED>
    <!ELEMENT column (#PCDATA)>
    <!ELEMENT row (value | null | none)*>
    <!ELEMENT value (#PCDATA)>
    <!ELEMENT null EMPTY>
    <!ELEMENT none EMPTY>

    Committed to SVN rev. 1043/trunk.

    thx,
    matthias

     
  • matthias g

    matthias g - 2009-09-24
    • status: open --> closed-fixed
     

Log in to post a comment.