Namespace conflict problem

Wednesday, 31 March 2010 · 2 messages · last reply 1 Apr 2010
JK
Jiří Kadlec31 Mar 2010 14:34 #
Hi all, Could you help with following error [XUDY0024] New namespaces conflict with each other. I create database in basex GUI from following XML file:
<root xmlns:my="http://www.somedomain.com">
  <subroot my:index="1">aaa</subroot>
  <subroot my:index="2">bbb</subroot>
  <subroot my:index="3" my:delete="true">ccc</subroot>
</root>
Then I try to execute following statement declare namespace my="http://www.somedomain.com"; insert node attribute my:addedAttribute {"1"} into /root/subroot[@my:index=1] Am i doing something wrong, how should i write a query which will add add my:addedAttribute {"1"} into subroot element with my:index="1". Any help appreciated Jiri
L
Lukas1 Apr 2010 13:17 #
Hi Jiri, we are currently facing a few namespace-related problems, so I just add this to the list. I'll come back to you as soon as I have answers. Thanks for your feedback. Regards, Lukas
Quoted text · Jiří Kadlec · 31 lines
On Mar 31, 2010, at 2:34 PM, Jiří Kadlec wrote: > Hi all, > > Could you help with following error [XUDY0024] New namespaces > conflict with each other. > > I create database in basex GUI from following XML file: > > <root xmlns:my="http://www.somedomain.com"> > <subroot my:index="1">aaa</subroot> > <subroot my:index="2">bbb</subroot> > <subroot my:index="3" my:delete="true">ccc</subroot> > </root> > > Then I try to execute following statement > > declare namespace my="http://www.somedomain.com"; > insert node attribute my:addedAttribute {"1"} into /root/ > subroot[@my:index=1] > > Am i doing something wrong, how should i write a query which will > add add my:addedAttribute {"1"} into subroot element with > my:index="1". > > Any help appreciated > > Jiri > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

⚡Generated with XQuery