Hi Mike, You can add namespaces to Castor in a few ways.
In your mapping file do the following: <class name="..."> <map-to ns-uri="http://my.org/my-namespace" ns-prefix="..."/> ... </class> You can also do the following: <mapping xmlns:foo="http://my.org/foo"> <class name="org.my.Foo"> <field name="data" type="string"> <bind-xml name="foo:data"/> </field> </class> </mapping> If you just want to declare a prefix for a namespace you can do the following: Marshaller m = new Marshaller(...); m.declareNamespace("foo", "http://my.org/foo"); Hopefully that answers your questions. If you need further assistence, just let us know. Thanks, --Keith Mike Denning wrote: > > Can anyone provide me with instructions on how to define namespaces and namespace >prefixes when marshalling xml byte streams from beans using Castor? > > I assume you would put something either in castor.properties or your mapping file.... > > thanks in advance.... > > Michael D. Denning > Systems Programmer > NC Department of Justice > Information Technology Division > 919-716-1062 > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
