Dear Team,

I am trying to insert few nodes in a XML File. But in reality the nodes are
not inserting in the XML File!!

Below is my query

for $x in doc('C:\sample.xml')//CInfos
  return insert node <Info><Name>James
Stuart</Name><Key>7709422869</Key></Info> as last into $x

I tried with another query -

insert node <Info>
    <Name>James Stuart</Name>
    <Key>7709422869</Key>
    </Info> as last into doc('C:\sample.xml')//CInfos

This too not working

If I create a XML DB and then it works...
What am I missing?

-- 
Have a nice day
JBest
_______________________________________________
BaseX-Talk mailing list
[email protected]
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

Reply via email to