Line Number for Node

Monday, 25 November 2013 · 2 messages · last reply 26 Nov 2013
JM
Jeremy Moseley25 Nov 2013 22:21 #
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
CG
Christian Grün26 Nov 2013 15:17 #
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
Quoted text · Jeremy Moseley · 14 lines
> 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 at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >

⚡Generated with XQuery