I am using BaseX as my XML-based DB. I am creating a simple query for the
$ book / library / literature list / literature / title return fn: data ($ book)
me Not getting all the titles, like the string there is no line break.
Is there any way to add line breaks with XQuery after each node to separate the data? It does not really depend on my XML file because I do not add hard-points within the tag. ;)
It depends on how you achieve query results. The most attractive way is to use iterator, as shown in:
http://basex.org/code/QueryExample
In addition, You can extend your XQuery by returning an additional Newline: xquery (fn: data ($ book) for ' Note, however, that the Output Space character can not be suppressed except that. Best, Christian PS: Feel free to use Basic-Talk mailing list to get feedback faster.
Comments
Post a Comment