Am 25.08.2021 um 17:16 schrieb Yann NICOLAS (ABES):
Actually, i am trying to omit the namespaces, not the xml declaration. Sorry for the mistake in my first post, Martin.
Did you see my other suggestion in the first answer to try to change your XQuery code to use
insert node $record/c ! element { node-name() } { @*, node() } into db:open('uk_parlement_ead')/dsc
Oh, i missed it ! Sorry.
It is working ... at the <c> level :
<c level="item">
<did xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:marc="http://www.loc.gov/MARC21/slim">
<unitid type="division">1808001595</unitid>
<unittitle>Select Committee on Acts regarding Use of Broad Wheels, and Regulations for Preservation of Turnpike Roads and Highways of United Kingdom First Report, Appendix</unittitle>
<unitdate>1808</unitdate>
<physfacet>Vol.II, 135 pp.</physfacet>
<extent>225 pages</extent>
<origination>xxxxxxxxxxxxxx xxxxxxxxx xxxxxxxxx</origination>
<dao>HTTP://parlipapers.proquest.com/parlipapers/docview/t70.d75.1808-001595</dao>
</did>
<controlaccess xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:marc="http://www.loc.gov/MARC21/slim">
<subject role="sujet">Roads and bridges</subject>
<subject role="sujet">Transport and communication</subject>
<subject role="sujet">Turnpike roads</subject>
<subject role="sujet">Turnpike roads and trusts</subject>
</controlaccess>
</c>