Hi Guys,
I am trying to find the line number of a node in the original XML source file. Is this information possibly stored in the database when the document is parsed? If that is not the case, is it possible to retrieve the original XML file after it has been inserted?
Thanks,
Jeremy
Hi Jeremy,
there’s currently no way to retrieve the original line/column position of XML nodes, as this would blow up the data structure. The same applies to the original XML file only serves as database input.
The fn:path() function gives you the unique path to a node in a document, maybe that helps?
Christian ___________________________
I am trying to find the line number of a node in the original XML source file. Is this information possibly stored in the database when the document is parsed? If that is not the case, is it possible to retrieve the original XML file after it has been inserted?
Thanks,
Jeremy
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
basex-talk@mailman.uni-konstanz.de