-
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
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|