-
ExpertQ: Access element definition from DOM (JAVA)
Hi there,
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:
<CUSTOMER>
<NAME> ACME Corp</NAME>
<ADDR>
...
</ADDR>
<CONTACT>
...
</CONTACT>
</CUSTOMER>
Any ideas? I guess, there is no standard solution for this. But I'm curios
for your replies.
TIA,
Thomas
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks