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

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -