I'm not sure if this would be helpful or not, but it's just a thought I had.
When using external XML writers, you can typically define whether or not
output formatting is applied to insert indents before each child element to
make it easier to read in a text editor. With that type of formatting, you
should be able to discover line numbers by running an xpath or tree
traversal to count ancestors and ancestor-siblings.
That said, I'm not sure if Arbortext can output in this way. I know that
there are line-break conditions that may cause problems, as well as file
size/performance issues when using full-formatting.
Another potential problem if you don't explicitly format is that Arbortext
might keep too many elements on a given file-line, ultimately making line
reporting useless anyway.
keith
On Mon, Sep 21, 2009 at 3:11 PM, Brandon Ibach <
brandon.ibach@single-sourcing.com> wrote:
> Greetings, Adepters...
>
> I'm looking for a way to simplify the job of tracking down locations
> in source XML files that are causing errors in downstream processing.
> The error messages I get indicate the line number within the XML
> file, but it's hard to match this up with the location without loading
> the file into a text editor, and I'd rather be able to do this all
> inside Editor.
>
> I've done some digging in the documentation, but haven't found
> anything promising, yet. Is anyone aware of any facilities for getting
> line number information from Editor's parser, or would I have to run a
> separate parser, such as the Xerces parser via the Java interface, to
> get this information?
>
> Thanks!
>
> -Brandon 🙂
>