Hi,
I'm trying to save a java-object to a xml-file and back.
The saving works fine but when reading the xml-file I get following
mistake:
java.lang.IllegalArgumentException: The prefix 'xml' is reserved (XML
1.0 Specification) and cannot be declared. This is my test code: Person
person1 = new Person("Bob Harris",
"123 Foo Street", "222-222-2222",
"[EMAIL PROTECTED]", "(123) 123-1234",
"(123) 123-1234");
FileWriter file = new FileWriter("bob_person.xml");
Marshaller.marshal(person1, file);
file.close();
//read
Person person = (Person)Unmarshaller.unmarshal(Person.class,new
FileReader("bob_person.xml"));
Does somebody know what mistake I'm doing?
@Jens: your advise yesterday helped. Thank you.
Katja
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev