From: Dennis S. <dm...@so...> - 2007-09-28 13:19:43
|
Hi Cris, I replied to your follow-up email, which I apparently misinterpreted. If all you want to do is always use a prefix when marshalling just specify that prefix on the <namespace> element in the binding. The prefix is *only* used for marshalling; for unmarshalling, JiBX looks only at the namespace URI returned by the parser and prefixes are ignored. - Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Cris Daniluk wrote: > I am working on a binding for a schema that is fairly complex. I've > gotten the majority of the schema binding correctly to JibX, but I'm > having a problem with default namespaces. Essentially, the majority of > the users of the schema use a default namespace, which I've set in > order to unmarshal correctly. However, when I marshal back out, I'd > like to always include the prefix, as the destination of the marshaled > content does not understand default namespaces correctly. Because the > bindings are generated as bytecode, I can't find a way to explicitly > force the marshaling to use a different default="" rule for the > namespace. > > Is there a way to do this? The best I've been able to come up with so > far is a brutal hack that I just don't like.. > > Thanks! > > - Cris > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > jibx-users mailing list > jib...@li... > https://lists.sourceforge.net/lists/listinfo/jibx-users > > |