XML schema validation of one xml block based on values from another xml block

A

Andy

Hi!

Is possible to do xml validation of one xml block based on values from
another xml block?

For example, I have an input xml file containing account types.
<Root>
<AccountTypes>
<AccountType></AccountType>
…………………………………..
</AccountTypes>

<Accounts>
<Account>
<AccountType></AccountType>
</Account>
</Accounts>
</Root>

Is there a way I can put restriction in schema that <Account> must
have only such <AccountType> that are listed in <AccountTypes>


The file size is 20-25 MB. (It would not be a good idea to load it
into DOM)
It is preferably to catch it before processing will start

Thank you,
Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,835
Latest member
lila30

Latest Threads

Top