posted 21 years ago
Try this -
<?xml version="1.0"?>
<!DOCTYPE note SYSTEM "d:\source\callcenter\WEB-INF\aaa.dtd">
In order to ensure the DTD works fine with XML, I suggest that you first make it an inline DTD. Something like this -
<?xml version="1.0"?>
<!DOCTYPE aaa[
<!ELEMENT note (to,from,heading,body)>
...
...
]>
<XMLRootElement>
....
...
</XMLRootElement>
Once this works ie., once you are able to parse the XML and check validity constraints against the DTD, you can strip the DOCTYPE and save it as a .dtd file and reference it in the document( as shown in the top of this post ).
Hope that helps.
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).