Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parser created by JAXB base on this XSD is weird #42

Open
coder-chenzhi opened this issue Dec 17, 2018 · 0 comments
Open

parser created by JAXB base on this XSD is weird #42

coder-chenzhi opened this issue Dec 17, 2018 · 0 comments

Comments

@coder-chenzhi
Copy link

I use maven-jaxb2-plugin:0.14.0 generate parser for logback xml configuration file. However, the result returned by the parser is weird. For example, I use the parser to parse the logback example configuration in your project, below is the returned Configuration object. We can see that the appender element belongs to a list named shutdownHookOrStatusListenerOrContextListener. Actually, all elements of configuration goes to this list. However, I have used JAXB to parse log4j.dtd and the result is much better. I can use getAppenders() to get all appender in configuration.

Any hints to solve this problem? Thanks!

snipaste_2018-12-17_22-11-14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant