I have always been using jaxb for parsing XML files into java object. This requires generating the java source code from the xsd schema at compiletime.
Now, what if the application needs to parse xml files at runtime which are unknown at compiletime, i.e. provided by users for example ??
David
I don’t know why you would want to do what you’re asking, but I think what you want to can be done using the Streaming API for XML. I have never used it before but reading about the API it seems that it provides something like what you’re asking about.