256 Namespaces
Tuesday, 21 June 2016 · 2 messages
PG
prasad gavhane21 Jun 2016 13:11 #
Hi
I have a xml file with more than 256 namespace declared.
BaseX is giving me "*"Too many different namespaces (limit: 256)" exception.*
*How can I increase the limit to load this xml file?*
*Thanks*
*Prasad G.*
CG
Christian Grün21 Jun 2016 15:16 #
Hi Prasad,
If all of your namespaces occur in a single document, there’s currently no solution to preserve your namespaces in the database (you can activate the
STRIPNS option when creating a database, but that’s probably not what you are looking for). The namespace limit extension is discussed in the Wiki [1], but it will probably take some time to make this happen.
If you encounter the limit when parsing several documents, you can distribute your documents over multiple databases, which can then be accessed by a single XQuery expression.
Hope this helps
Christian
[1] https://github.com/BaseXdb/basex/issues/902Quoted text · prasad gavhane · 10 lines
On Tue, Jun 21, 2016 at 1:11 PM, prasad gavhane <prasadgavhane7 at gmail.com> wrote: > Hi > > I have a xml file with more than 256 namespace declared. > BaseX is giving me ""Too many different namespaces (limit: 256)" exception. > How can I increase the limit to load this xml file? > > Thanks > Prasad G.
Written for BaseX 8.4. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery