XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Go to previous topicPrev TopicGo to next topicNext Topic
Sebastien VinchonSubject: How to get rid of multiple occurences of xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" in output
Author: Sebastien Vinchon
Date: 04 Nov 2008 01:31 PM
Hello Forum,

I am getting plenty of unwanted occurrences of:
in the output of an xQuery and would like to know how to get rid of them.

Can anybody help?

I am attaching my current xQuery and Input/Output XML.

Many thanks in advance


Minollo I.Subject: How to get rid of multiple occurences of xmlns:xsi=
Author: Minollo I.
Date: 04 Nov 2008 03:39 PM
The xmlns:xsi namespace declarations are added when copying elements from the source into the result; to avoid the noise, just change the root element of your XQuery result (in the first line) from:
<Documents xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

To remove the namespace declaration entirely, you would need to do some more work dynamically creating all elements rather than copying them from the source; that would require a bit more work, but it's doable.

BTW, I've removed the attachment you posted as it seemed to contain confidential information; in the future you may want to consider emailing us that kind of information to stylus-field-report at progress dot com

Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.