I've been making a reflective program, which examines class files, and then creates an XML file that holds all it's values. But, I've been trying to now parse these XML files I've made, and I've been trying to do it using DOM. Unfortuanetly I have no clue as to how DOM works. My XML files look like this:
<?xml version="1.0" ?>
- <classInformation>
- <className>
XMLBuild
<constructor>[Ljava.lang.reflect.Constructor;@16897b2</constructor>
<superClass>class java.lang.Object</superClass>
<classes />
<methods>public java.lang.String XMLBuild.CreateXML(java.lang.Class) throws java.io.IOException private static java.lang.String XMLBuild.Version() </methods>
<fields />
</className>
</classInformation>
I was wondering if there was any way I could easily extract the information based on the tags that are around, or do I have to make some really complex methods involving regular expressions and whatnot to make this work?