schemalocation entry in XML created by castor created sources?

U

Ulf Heyder

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top