Simple delete bug
CGQuoted text · Jonathan Robie · 1 line
> delete //m/@n
This may be surprising, but your expression is a valid query: It’s a path expression starting with an initial child::delete step.
Best,
Christian
JRJonathan Robie30 Mar 2022 17:19 # Expressions like this fail silently without raising an error in BaseXGUI:
delete //m/@n
Of course, it should be:
delete nodes //m/@n
But there should be an error to remind me ;->
Jonathan
JRDOH.
Yeah, you're right.
Jonathan
Quoted text · Christian Grün · 12 lines
On Wed, Mar 30, 2022 at 9:25 AM Christian Grün <christian.gruen at gmail.com>
wrote:
> Hi Jonathan,
>
> > delete //m/@n
>
> This may be surprising, but your expression is a valid query: It’s a
> path expression starting with an initial child::delete step.
>
> Best,
> Christian
>
⚡Generated with XQuery