Problem with id element
Brought to you by:
jnerd
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
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