I have following xml file:
<?xml version = "1.0" ?>
<Employee>
<Emp_Id>E-001</Emp_Id>
<Emp_Name>Vinod</Emp_Name>
<Emp_E-mail>[email protected]</Emp_E-mail>
</Employee>
I have following dtd file:
<!ELEMENT Employee (Emp_Id, Emp_Name, Emp_E-mail)>
<!ELEMENT Emp_Id (#PCDATA)>
<!ELEMENT Emp_Name (#PCDATA)>
<!ELEMENT Emp_E-mail (#PCDATA)>
I want to validate this xml file with above dtd using java.
Please, help thanks..:-)