How do I parse YANG models in java ? I need to convert the yang model into a xml format.
I have already tried pyang. But since it is in python, it does not suite my requirement.
Yes, that's true.
Use yang-parser-impl from Open daylight. It provides a yang parser and returns a set of parsed modules. Which you can further query to get more node objects.