Re: [basex-talk] Set indent no at database label (globally)

2018-05-18 Thread Christian Grün
> > It worked now after transformation i was writing the file into filesystem > using file:write() so i defined the third parameter there map { "method": > "xml", 'indent':no } > ​Perfect! And it’s true, file:write (and other serializing functions) do not consider which global serialization​ para

Re: [basex-talk] Set indent no at database label (globally)

2018-05-18 Thread DK Singh
Thank U Christian, It worked now after transformation i was writing the file into filesystem using file:write() so i defined the third parameter there map { "method": "xml", 'indent':no } again Thank U so much Regards Dharmendra Kumar Singh On Fri, May 18, 2018 at 5:43 PM, Christian Grün wro

Re: [basex-talk] Set indent no at database label (globally)

2018-05-18 Thread Christian Grün
hi ​ Dharmendra, Maybe your database contains whitespace text nodes? If it does, these whitespaces will simply be returned as part of your document. Only if it doesn’t, the "indent" parameter will add new whitespaces [1]. You can count the number of these text nodes with the following query: c

Re: [basex-talk] Set indent no at database label (globally)

2018-05-18 Thread DK Singh
Thanks U Christian, I have done as you suggested but problem is still there XML getting indent, after setting i had re-started the HTTP service and run the query to transform the document after transformation XML getting indent. below is the setting snapshot Regards Dharmendra Kumar Singh

Re: [basex-talk] Set indent no at database label (globally)

2018-05-18 Thread Christian Grün
> I am using HTTP services so as i set chop false like > > > org.basex.chop > false > > > so in this format i have to set SERIALIZER = indent=no or other way in the > web.xml file. Exactly. Try this: org.basex.serializer indent=no > On Fri, May 18, 2018 at 3:50 PM, Christia

Re: [basex-talk] Set indent no at database label (globally)

2018-05-18 Thread DK Singh
Hi Grun, I am using HTTP services so as i set chop false like org.basex.chop false so in this format i have to set SERIALIZER = indent=no or other way in the web.xml file. On Fri, May 18, 2018 at 3:50 PM, Christian Grün wrote: > Hi Dharmendra Kumar, > > You can set this option globally

Re: [basex-talk] Set indent no at database label (globally)

2018-05-18 Thread Christian Grün
Hi Dharmendra Kumar, You can set this option globally by adding the line SERIALIZER = indent=no at the bottom of your .basex configuration file [1]. If you use HTTP services, you can add an entry to your web.xml file [2]. Both solutions will affect all databases; there is currently no way to de

[basex-talk] Set indent no at database label (globally)

2018-05-18 Thread DK Singh
Hi All, I have to set indent='no' at the database label how can i achieve this, i have gone thorough the documentation and found that either we can do: (1) declare namespace output = "http://www.w3.org/2010/xslt-xquery-serialization