Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > how can i marshal xml without xmlns attributes?

Reply
Thread Tools

how can i marshal xml without xmlns attributes?

 
 
Elhanan
Guest
Posts: n/a
 
      04-05-2006
hi..

i'm trying to marshal objects into xml, but i keep getting
xmlns="myschema" in top node, and xmlns="" in other nodes..

how i can drop the xmlns completly, it may not work in xslt, and
orangevolt xpath viewer also doesn't work with default namespace

 
Reply With Quote
 
 
 
 
James McGill
Guest
Posts: n/a
 
      04-05-2006
On Wed, 2006-04-05 at 07:42 -0700, Elhanan wrote:

> i'm trying to marshal objects into xml, but i keep getting
> xmlns="myschema" in top node, and xmlns="" in other nodes..
>
> how i can drop the xmlns completly, it may not work in xslt, and
> orangevolt xpath viewer also doesn't work with default namespace



Have you tried Castor (www.castor.org) or Xstream
(http://xstream.codehaus.org/) ?

Neither is JAXB, but both are good and useful.

 
Reply With Quote
 
 
 
 
Elhanan
Guest
Posts: n/a
 
      04-07-2006
well i need actuall java objects, incase i'll have to create it from
scratch, i also need something that supports idref becouse i have
object (elements) which are referenced by more then one parent
elements.

i know castor is considered favorite however the company strikes me as
rather dishonest as they premoting their castor jdo even though it's
not REAL jdo, and is rather bad.

howabout xmlbeans?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What does xmlns:xsi and xmlns:xsd attributes mean? afshar XML 3 05-19-2010 02:16 AM
Java, validate XML with XSD, XML not containing "xmlns:xsi=..." killy971 XML 2 08-15-2008 10:05 AM
marshal.dumps quadratic growth and marshal.dump not allowingfile-like objects bkustel@gmail.com Python 10 06-18-2008 12:52 PM
xmlns:SOAP-ENC, xmlns:xsd required? chris.stromberger@gmail.com XML 0 10-26-2005 02:48 PM
Ruby 1.8 and Marshal.load/Marshal.dump Michael Davis Ruby 0 10-10-2003 10:15 PM



Advertisments