Hi All,
I am using Castor to mashall some java objects to an xml file.
Everything is working fine. I just have one question about DTD. I don't
want to use DTD for anything with mashalling, etc. in my use of Castor.
I just want the genereated line to have a DOCTYPE tag at the top. Is it
possible in my mashalled output xml file to have this as the second
line?
<!DOCTYPE postitnoteslist SYSTEM "basic_notes.dtd">
This is important because I want to be able to examine a directory for
all xml files that match this dtd type and is valid, ( but not using
Castor for this function ). In other words, I am generating several
postit note xml files, all containing the same java serialized object
types, but just pertaining to different contexts. One list will be for
work notes, one for personal notes, etc. I can then present the files to
a user in a picklist and they can choose which one to load with Castor.
I have code using JDOM and apache parser to locate all valid xml files
with this DTD and are valid documents in a specified directory. I want
to then use Castor to marshall and unmarshall these files.
Sincerely,
Steven W. Rock
Rock Technologies
516-897-7289
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev