Archive for the ‘XML’ Category

Tweaking XOM parser – element position support

Tuesday, January 22nd, 2008

XOM parser is a great piece of code. I was missing just one feature – to be able to get position of element in source file (line and column). So I did a quick and dirty hack resulting in two new nu.xom.Element methods: getLineNumber() and getColumnNumber().