Details
Description
I have data in other various text formats, which can all be represented as infosets and are navigable using XPath expressions. It would be nice to be able to use JiBX to marshall and unmarshall these as well. Presumably, the object providing the custom XInfoset/XPath navigation would then be responsible for proper encoding, such as for XML.
This is really out of scope for JiBX. I'd suggest you look into using a Jaxen-style XPath implementation that works with generic Java objects. The Apache Jakarta Commons has JXPath: http://jakarta.apache.org/commons/jxpath/ I haven't worked with this myself, but it looks like the type of thing you could use. You might also want to look into XML Beans, which does use a form of data binding in combination with comprehensive XPath support.