如何从basexserver发布XML结果?

问题描述

muckingbasexserverUbuntu上的位置是installed,遇到-c标志,但没有得到结果:

nicholas $ 
nicholas $ lynx http://localhost:1984/ --dump

就像标准的Web浏览器一样挂起。如何发布下面的xml结果?

nicholas $ 
nicholas $ cat query.xq 
xquery version "3.0";

for $bar in db:open("foo")
let $baz := $bar
return <query_results>{$baz}</query_results>


    nicholas $ 
    nicholas $ cat helloworld 
    SHOW USERS
    LIST
    #GRANT all on foo to admin
    RUN query.xq
    nicholas $ 
    nicholas $ basex query.xq 
    <query_results>
      <foo>bar</foo>
    </query_results>nicholas $ 
    nicholas $ 
    nicholas $ basexserver -c helloworld
    Username  Permission  
    --------------------
    admin     admin       
    
    1 user(s).
    Name  Resources  Size  Input Path  
    ---------------------------------
    foo   1          4599              
    
    1 database(s).
    <query_results>
      <foo>bar</foo>
    </query_results>BaseX 9.0.1 [Server]
    Server was started (port: 1984).
    ^CServer was stopped (port: 1984).
    nicholas $ 

以上query_results在本地主机上不可用。如何使它们可用?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...