Hello,
I am having a little trouble understanding why the validation exception
is not thrown when I do the following (Please not that I should get an
exception here):
FileWriter writer = new FileWriter(outputFile);
Marshaller marshaller = new Marshaller(writer);
marshaller.setMapping(mapping);
marshaller.setLogWriter(new PrintWriter(System.err));
marshaller.setDebug(true);
marshaller.marshal(employee1);
writer.close();
whereas it is working in the following piece of code. What is the
difference between the two.
employee1.marshal(new FileWriter("employee1-test.xml"));
regards and thanks
Tauseef
begin:vcard
n:Israr;Tauseef A.
x-mozilla-html:FALSE
org:Webmotion Inc.
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:Software Developer
x-mozilla-cpt:;0
fn:Tauseef A. Israr
end:vcard