schemalocation entry in XML created by castor created sources?

Discussion in 'XML' started by Ulf Heyder, Oct 16, 2003.

  1. Ulf Heyder

    Ulf Heyder Guest

    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">
     
    Ulf Heyder, Oct 16, 2003
    #1
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.