How do I instruct Castor to ignore namespaces, i see en entry for making
the parser namespace aware but not for castor.

I have a schema declared like this:

<schema targetNamespace="http://www.digitalesp.com/te/schemas"; xmlns="
http://www.w3.org/2001/XMLSchema"; xmlns:tns="
http://www.digitalesp.com/te/schemas";>

and thats what I use as input to the generator.

The input XML document has a structure like this:

<te:Expense_Sheet xmlns:te="http://www.digitalesp.com/te/schemas"; xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance";>

When I send a XML document to Castor I demarshall it , process it, and
marshall it up with a few minor modifications, the ouput I always get is:

<Expense_Sheet versionNumber="2001-09-13T10:21:59.000" objectId
="200109131422152052090000000020" xmlns
="http://www.digitalesp.com/te/schemas";>

Firstly, how do I specify a namespace prefix such that the output from
castor would be:

<te:Expense_Sheet versionNumber="2001-09-13T10:21:59.000" objectId
="200109131422152052090000000020" xmlns:te
="http://www.digitalesp.com/te/schemas";>

And secondly, how would I instruct Castor to leave the namespace
declaration out all together such as:

<Expense_Sheet versionNumber="2001-09-13T10:21:59.000" objectId
="200109131422152052090000000020">

Thanks

Keith Nielsen
digitalESP

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to