Menu

#9 Problem with id element

open
None
5
2005-07-22
2005-06-17
Anonymous
No

Hello

I have a problem when i generate mapping classes from
a DTD with xml2java.

If in DTD there 's element like
"ID CDATA #REQUIRED" it always getting error on
element ID

If i change this element in
"ID[something] CDATA #REQUIRED" it works.

Classes are generated with jNerd's XML2Java Version
1.3 beta

Please could someone help me.

thanks

jerome

Discussion

  • Patrick Ohl

    Patrick Ohl - 2005-07-22
    • assigned_to: nobody --> jnerd
     
  • Patrick Ohl

    Patrick Ohl - 2005-07-22

    Logged In: YES
    user_id=581737

    Hi Jerome,

    Sorry for the late reply. The problem is probably straight
    forward (what does not mean it's easy to fix). "ID" is a
    keyword in XML (for ID attributes). So within the grammar
    interpreting the DTD this keyword is recognized. With this
    it is not treated as attribute name (but attribute type) and
    an error is raised.

    I will have a look at it if I can fix the DTDParser to be
    more thoughtful...

    Cheers,

    Patrick

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.