echo "<xml/>"|http POST http://localhost:8984/test Content-Type:text/xmlHTTP/1.1 400 Bad RequestStopped at /Users/michael/tmp/ml/webapp/foo.xqm, 5/10:[XPTY0004] Cannot convert document-node() to element(): document-node {''}.
Am 06.05.2019 um 14:09 schrieb Robert Kirkpatrick <robert@eridan.net>:Hello,I am trying to implement an XForm for posting data via:<xf:submission resource="http://localhost:8984/test" method="post"serialization="application/xml" replace="all" />It should invoke the following query (in webapp):module namespace page = 'http://basex.org/examples/web-page';declare%rest:path("/test")%rest:POST("{$data}")function page:hello ( $data as element() )as element() { $data };But I get this instead:<image.png>TIA for any help,Robert.