Replace node attribute value

Tuesday, 12 November 2013 · 2 messages
TK
Thomas Knight12 Nov 2013 17:13 #
Hi everyone, I have a problem trying to replace the attribute value. For example, using factbook.xml: replace value of node attribute /mondial/country[@name='Austria']/@car_code with 'B' fails with: [XUDY0027] Replace target must not be empty. How should I be doing this? Thanks Tom
LK
Lukas Kircher12 Nov 2013 17:18 #
Hi Thomas, just remove the 'attribute' token from your statement, as it is not necessary ... *replace value of node /mondial/country[@name='Austria']/@car_code with 'B'* Cheers, Lukas On Tue, Nov 12, 2013 at 5:13 PM, Thomas Knight <tom1vuu2011 at gmail.com>wrote:
Quoted text · Thomas Knight · 26 lines
> Hi everyone, > > I have a problem trying to replace the attribute value. > > For example, using factbook.xml: > > replace value of node attribute > /mondial/country[@name='Austria']/@car_code with 'B' > > fails with: > > [XUDY0027] Replace target must not be empty. > > How should I be doing this? > > Thanks > > > Tom > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > >

⚡Generated with XQuery