Article:
 |
|
XML Data Binding with Castor
|
| Subject: |
|
How to get Address Books from XML file using mapping file |
| Date: |
|
2003-12-01 02:01:11 |
| From: |
|
thong39th
|
|
|
|
I run ViewAddressBook class that I get from this article. But I get a message likes following:
org.exolab.castor.mapping.MappingException: Nested error: org.exolab.castor.mapping.MappingException: Could not find the class Person
But I have had Person class and AddressBook Class already. I don't know why. Please help me.
Thanks.
|
Showing messages 1 through 5 of 5.
-
How to get Address Books from XML file using mapping file
2004-03-11 13:19:03
starlightpurple
[View]
-
How to get Address Books from XML file using mapping file
2007-12-07 01:15:56
AACR
[View]
-
How to get Address Books from XML file using mapping file
2003-12-12 06:00:21
anonymous2
[View]
-
How to get Address Books from XML file using mapping file
2003-12-12 06:00:11
anonymous2
[View]
-
How to get Address Books from XML file using mapping file
2003-12-01 18:43:24
anonymous2
[View]
Is your Person class in a package? If so you will need to modify the mapping.xml file to include the package name before the class name. For example if you put the Person class in a package called MyPackage you would make the following changes to the mapping.xml file:
* change <class name="Person"> to:
<class name="MyPackage.Person">
* change <field name="persons" type="Person" collection="collection" /> to:
<field name="persons" type="MyPackage.Person" collection="collection" />
Hope this helps.