Validating XML with schema AND DTD

Having trouble installing Oxygen? Got a bug to report? Post it all here.
yaakov
Posts: 1
Joined: Sun Jun 26, 2005 4:18 pm

Validating XML with schema AND DTD

Post by yaakov »

Hi,

If I have the following XML declaration:

Code: Select all

<?xml version="1.0"?>
<!DOCTYPE store SYSTEM "store.dtd">
<store xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://someURL/"
xsi:schemaLocation="http://someURL/ store.xsd">
<cust_list>
<customer cid="C-1">
...
Is there a way to enable OxygenXML to validate this file with both, the Schema and DTD.

Yes, I know that in a "real" project you probably wouldn't want to do this. But, I would still like to know if this is possible with OxygenXML.

Thanks,
Yaakov.
george
Site Admin
Posts: 2096
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi,

By default oXygen will validate the instance against the DTD. If you want to validate against the schema you have two choices:
- use external validattion action and choose the schema
- enable the Options->Preferences -- XML -- XML Parser Options -- Use only XML Schema for validation.

It is not possible to perform both validations in a single action.

Best Regards,
George
Post Reply