Yeah, just add "track-source" to your binding declarations:
<binding direction="input" track-source="true">
...
Then (after parsing) you can cast any of your bound objects to
ITrackSource and retrieve document source information:
ITrackSource tracker = ( ITrackSource ) boundObject;
System.out.println( "This element came from line " +
tracker.jibx_getLineNumber() + ", column " +
tracker.jibx_getColumnNumber() );
On Tue, 2008-09-23 at 15:44 +0200, Laurent PETIT wrote:
> Hello,
>
> Another thing that is currently done on my project that uses JAXB is
> that at marshalling time, a custom stax listener has been created that
> adds "on-the-fly" information to the generated XML : the start line
> and column number of some elements.
>
> (FYI, it is then used as debugging hits).
>
> Will this be possible with jibx ?
>
> I yet haven't read all the documentation concerning possible
> customization, but if this seems not possible and may be a blocking
> argument preventing me from using jibx, your answer could help me save
> time ! :-)
>
> Thanks in advance,
>
> Regards,
>
> --
> Laurent
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________ jibx-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jibx-users
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users