java - How to customize the way JAXB parses xml? -


i working jaxb since 2 days please forgive me if question easy. tried google didn't find interesting. used jaxb generate java classes based on xsd schema. tested, works, when make jaxb parse xml (which satisfies schemas) receive real objects full of data. great. question is, if possible generate kind of dictionary during parsing of xml? somehow possible register handler called during parsing ? how achieve it?

for example let's in xml being parsed there line this:

<bookedtrip tattoo="2" rph="100" direction="inward" bookstatus="hk"> 

i able extract bookedtrip.direction = inward. guess can using kind of handlers xml parser.


Comments

Popular posts from this blog

pentaho - Carte Status / Kettle Slave Server Status page shows status for random runs instead of the latest run -

R summary function in ddply (plyr) in a simple way -

c# - Are delegates created via lambda expressions guaranteed to be cached? -