Subject: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:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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.
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>
...into...
<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