Hi,
I am new to this list and I would like to start with two questions right
away:
1) I'm using castor to unmarshal / read an XML file. Everything works
fine, unless the XML file doesn't contain any relative paths to include
other XML files. For instance, unmarshal crashes with the error message
"..\include\test.xml (the system cannot find the path)" if I try to load
an XML file that include a different XML file using "<!ENTITY alter
SYSTEM "file:../include/test.xml">".
It is clear why this error occurs (relative path works from directory A
but we start unmarshalling from directory B). However, it is not clear
how to solve this problem. Do you have any ideas how to add a path /
change system path during runtime, i.e., when loading an XML file?
2) The second question focuses on the encoding of the XML file. I am
also generating (marshal) an XML file using castor. What I would like to
do, is to ask the user which encoding he wants to use and to use this
encoding when generating the XML file. For instance, if the user wants
to use "WINDOWS-1252" encoding, castor should generate an XML file that
starts with "<?xml version="1.0" encoding="WINDOWS-1252"?>". Do you have
any ideas how to do that?
Best wishes & Thanks a lot for the help
Christian
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------