Hello ppl .. been strugling with this one for some time now and it's giving me trouble with development
I have a couple of castor mapping files and when I edit them I see errors: <?xml version="1.0" encoding="UTF-8"?> <mapping xmlns="http://castor.exolab.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://castor.exolab.org/ http://castor.org/mapping.xsd"> <class name="org.dropchop.jop.beans.Bean" identity="id"> <map-to xml="bean" ns-uri="http://www.dropchop.com/core" ns-prefix="dcc" /> <field name="id" type="string"> <bind-xml name="id" node="attribute"/> </field> <field name="updated" type="date"> <bind-xml name="updated" node="attribute"/> </field> </class> <class name="org.dropchop.jop.beans.LBean" extends="org.dropchop.jop.beans.Bean"> <map-to xml="bean" ns-uri="http://www.dropchop.com/core" ns-prefix="dcc" /> <field name="translations" collection="map"> <bind-xml name="trans"> <class name="org.exolab.castor.mapping.MapItem"> <field name="key" type="string"> <bind-xml name="id" node="attribute"/> </field> <field name="value" type="org.dropchop.jop.localization.Translation"> <bind-xml name="item" /> </field> </class> </bind-xml> </field> </class> <class name="org.dropchop.jop.beans.TBean" extends="org.dropchop.jop.beans.Bean"> <map-to xml="bean" ns-uri="http://www.dropchop.com/core" ns-prefix="dcc" /> <field name="tags" collection="set" type="org.dropchop.jop.tagging.beans.Tag"> <bind-xml name="tag"/> </field> </class> <class name="org.dropchop.jop.beans.SBean" extends="org.dropchop.jop.beans.Bean"> <map-to xml="bean" ns-uri="http://www.dropchop.com/core" ns-prefix="dcc" /> <field name="settings" collection="map"> <bind-xml name="settings"> <class name="org.exolab.castor.mapping.MapItem"> <field name="key" type="string"> <bind-xml name="name" node="attribute"/> </field> <field name="value" type="org.dropchop.jop.settings.Setting"> <bind-xml name="value" /> </field> </class> </bind-xml> </field> </class> <class name="org.dropchop.jop.beans.LTBean" extends="org.dropchop.jop.beans.LBean"> <map-to xml="bean" ns-uri="http://www.dropchop.com/core" ns-prefix="dcc" /> <field name="tags" collection="set" type="org.dropchop.jop.tagging.beans.Tag"> <bind-xml name="tag"/> </field> </class> <class name="org.dropchop.jop.beans.LSBean" extends="org.dropchop.jop.beans.LBean"> <map-to xml="bean" ns-uri="http://www.dropchop.com/core" ns-prefix="dcc" /> <field name="settings" collection="map"> <bind-xml name="settings"> <class name="org.exolab.castor.mapping.MapItem"> <field name="key" type="string"> <bind-xml name="name" node="attribute"/> </field> <field name="value" type="string"> <bind-xml name="value" /> </field> </class> </bind-xml> </field> </class> <class name="org.dropchop.jop.beans.TSBean" extends="org.dropchop.jop.beans.TBean"> <map-to xml="bean" ns-uri="http://www.dropchop.com/core" ns-prefix="dcc" /> <field name="settings" collection="map"> <bind-xml name="settings"> <class name="org.exolab.castor.mapping.MapItem"> <field name="key" type="string"> <bind-xml name="name" node="attribute"/> </field> <field name="value" type="string"> <bind-xml name="value" /> </field> </class> </bind-xml> </field> </class> </mapping> on lines where I use: <class name="org.exolab.castor.mapping.MapItem"> I have XML errors: Multiple annotations found at this line: - cvc-attribute.3: The value 'org.exolab.castor.mapping.MapItem' of attribute 'name' on element 'class' is not valid with respect to its type, 'ID'. - cvc-id.2: There are multiple occurrences of ID value 'org.exolab.castor.mapping.MapItem'. This is a first problem and would really appreciate it if someone would tell me how to setup eclipse so no errors would be shown. The second problem is in other files: Example file <?xml version="1.0" encoding="UTF-8"?> <mapping xmlns="http://castor.exolab.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://castor.exolab.org/ http://castor.org/mapping.xsd"> <class name="org.dropchop.jop.security.beans.Role" extends="org.dropchop.jop.beans.LBean"> <map-to xml="role" ns-uri="http://www.dropchop.com/core" ns-prefix="dcc" /> <field name="name" type="string"> <bind-xml name="name" node="attribute" /> </field> <field name="permissions" type="org.dropchop.jop.security.beans.WildcardPermission" collection="set"> <bind-xml name="permission" /> </field> </class> </mapping> and the error at the end of mapping tag cvc-id.1: There is no ID/IDREF binding for IDREF 'org.dropchop.jop.beans.LBean'. and you can clearly see that the same bean was declared in upper file ... Thank you in advance for any help that you will provide ! regards Armando -- View this message in context: http://old.nabble.com/Eclipse-XML-editor-and-Castor-problem-tp30016845p30016845.html Sent from the Castor - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

