Ulf Heyder
Usenet Archive
- Joined
- Oct 15, 2003
- Messages
- 3
- Reaction score
- 0
I use castor-0.9.5 with xerces-2.4.0 to automatically generate classes from XSDs via source generator and un-/marshall JAVA objects to/from XML files.
My question is how to tell the castor source generator to create the classes in a way that while marshalling they will create a schemaLocation entry in the opening root tag:
<?xml version="1.0" encoding="UTF-8"?>
<liste
xmlns="http://www.test.de/test"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.test.de/test liste.xsd">
My question is how to tell the castor source generator to create the classes in a way that while marshalling they will create a schemaLocation entry in the opening root tag:
<?xml version="1.0" encoding="UTF-8"?>
<liste
xmlns="http://www.test.de/test"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.test.de/test liste.xsd">