我下载了名为standard的文件,并从以下网站auction.xml将其重命名为链接到文件
我编写了一个insert查询并存储在一个名为insertqz.xq的文件中
for $doc in doc('auction.xml')/site/open_auctions//bidder/increase
return insert node <watch open_auction='open_auction5104'/> before $doc并运行以下命令:zorba -t -q insertqz.xq
我得到以下错误:(no URI):1,2: dynamic error [err:XPDY0002]: "context item": undeclared variable
有人能帮我吗?
发布于 2015-08-07 09:50:02
删除-q
zorba -t insertqz.xq
要打印更新的xml文件,请执行以下操作:
for $doc in doc("auction.xml")/site/open_auctions//bidder/increase return insert node <watch open_auction="open_auction5104"/> before $doc; doc("auction.xml")
https://stackoverflow.com/questions/31866527
复制相似问题