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.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL