We have an XML file, generated from LDAP. It does start with Docroot, but there is no DTD declaration. We tried generating DTD, but there are simply too many variants and we were told every one else process the file manually (with out DTD or schema).
We know what we need to read from XML and the format of the document will not change.
So, my question is what is the simplest way to read this XML file?
We have an XML file, generated from LDAP. It does start with Docroot, but
Share
I’d use Xstream. It doesn’t require a schema. You can use annotations and/or naming conventions to drive the mapping. Since you don’t have a schema you might get some quirky behavior if your xml is malformed, but its better than nothing.