Page 1 of 1

Validating XML with schema AND DTD

Posted: Sun Jun 26, 2005 4:23 pm
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.

Posted: Sun Jun 26, 2005 10:56 pm
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