ExpertQ: Access element definition from DOM (JAVA)
tricky problem: I have to parse different XML files which are validated by
DTD or XML Schema an need to have access to element definition.
Example: <!ELEMENT customer (NAME, ADDR, ACCOUNTMGR?, CONTACT*)>
Several variants are valid, most have account mgr asigned, some not yet.
Most have 1..n contacts, new customers not.
I need to know, that there should be an ACCOUNTMGR element, even if there
is no element in the instance:
<NAME> ACME Corp</NAME>
Any ideas? I guess, there is no standard solution for this. But I'm curios
for your replies.
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center