Suppress XMLNS declarations

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Suppress XMLNS declarations

Gatien
Hi,

After a submission, the XML result contains xmlns namespaces declaration. Is it
possible to remove these declarations from XML result?


<?xml version="1.0" encoding="UTF-8"?>
<MyData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xmlns:f="http://orbeon.org/oxf/xml/formatting"
              xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
              xmlns:ev="http://www.w3.org/2001/xml-events"
              xmlns:xi="http://www.w3.org/2001/XInclude"
              xmlns:xs="http://www.w3.org/2001/XMLSchema"
              xmlns:xdt="http://www.w3.org/2005/xpath-datatypes"
              xmlns:xf="http://www.w3.org/2002/xforms"
              xmlns:widget="http://orbeon.org/oxf/xml/widget"
              xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
              xsi:noNamespaceSchemaLocation="SP_v1.xsd">



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Suppress XMLNS declarations

Hank Ratzesberger

Does your own application handle the submission? You could use
xslt and exclude-namespace-prefixes attribute in your pipleline
to clean up the namespaces.

Not sure how to clean them from a submission within xforms.

Regards,
Hank

On Jun 11, 2008, at 2:08 AM, Gatien wrote:

> Hi,
>
> After a submission, the XML result contains xmlns namespaces  
> declaration. Is it
> possible to remove these declarations from XML result?
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <MyData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>               xmlns:f="http://orbeon.org/oxf/xml/formatting"
>               xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
>               xmlns:ev="http://www.w3.org/2001/xml-events"
>               xmlns:xi="http://www.w3.org/2001/XInclude"
>               xmlns:xs="http://www.w3.org/2001/XMLSchema"
>               xmlns:xdt="http://www.w3.org/2005/xpath-datatypes"
>               xmlns:xf="http://www.w3.org/2002/xforms"
>               xmlns:widget="http://orbeon.org/oxf/xml/widget"
>               xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>               xsi:noNamespaceSchemaLocation="SP_v1.xsd">
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws