xml-xmlbeans-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Vasilik" <eric...@bea.com>
Subject RE: Remove Namespace Attributes from Output
Date Tue, 15 Jun 2004 21:35:21 GMT
You can walk the tree and remove all the namespace attributes, but if
any of your elements/attrs have namespaces associated with them, the
saver will synthesize namespace attributes in order to preserve these.

- Eric

> -----Original Message-----
> From: Poul.Elverum@perficient.com [mailto:Poul.Elverum@perficient.com]
> Sent: Tuesday, June 15, 2004 2:32 PM
> To: xmlbeans-dev@xml.apache.org
> Subject: Remove Namespace Attributes from Output
> 
> Is there a recommended approach to removing the xmlns attribute from
the
> output produced by an XML schema using XMLBeans?  I have been able to
> successfully get it so my output doesn't include any namespace
prefixes to
> my elements, but certain elements still have xmlns attributes.
> Unfortunately, the consuming application for the output document does
not
> accept documents with the xmlns attribute, and therefore I must remove
it.
> I have been attempting to use the XMLCursor functionality to navigate
the
> document tree, but I have yet to be successful in getting this to
work.
> 
> Thanks,
> 
> Poul Elverum
> Technical Architect
> Perficient, Inc. - Minneapolis
> 100 N. 6th Street, Suite 935C
> Minneapolis, MN 55403
> D: 612.752.1575
> F: 612.524.2000
> E: poul.elverum@perficient.com
> 
> 
> 
> -
---------------------------------------------------------------------
> To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
> Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


Mime
View raw message