Title: RE: [castor-dev] java.lang.IllegalArgumentException: The prefix 'xml' is reserved...

Katja,

See the FAQ - this is a known problem with a fix/workround

http://castor.exolab.org/xml-faq.html

regards,

Alison

-----Original Message-----
From: Katja [mailto:[EMAIL PROTECTED]]
Sent: 02 March 2004 16:03
To: [EMAIL PROTECTED]
Subject: [castor-dev] java.lang.IllegalArgumentException: The prefix
'xml' is reserved...



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


--
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.

Reply via email to