Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module namespace page = 'http://basex.org/examples/web-page';
- declare %updating
- %rest:path("/worten")
- %rest:POST("{$body}")
- function page:fnac($body) {
- file:write("fnacData.xml",$body),
- (: let $doc := 'C:\Users\franc\Desktop\basex\bin\wortenData.xml'
- return validate:xsd($doc, 'Smartphones.xsd'), :)
- db:create('prices', 'fnacData.xml', "./"),
- update:output('Update Successful')
- };
Add Comment
Please, Sign In to add comment