DTD parser? 2003-02-20 - By Samuel Cheung
Hi,
Can I use xerces to parser DTD only? What kind of data structure it will build?
I would like to do stuff like this: 1. given an ElementName, can that ElementName has a child named "aChildName"? 2. given an ElementName, what are the requried attributes?
Thanks.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45"> <TITLE>DTD parser?</TITLE> </HEAD> <BODY>
<P><FONT SIZE=2>Hi,</FONT> </P>
<P><FONT SIZE=2>Can I use xerces to parser DTD only?</FONT> <BR><FONT SIZE=2>What kind of data structure it will build?</FONT> </P>
<P><FONT SIZE=2>I would like to do stuff like this:</FONT> <BR><FONT SIZE=2>1. given an ElementName, can that ElementName has a child named "aChildName"?</FONT> <BR><FONT SIZE=2>2. given an ElementName, what are the requried attributes?< /FONT> </P>
<P><FONT SIZE=2>Thanks.</FONT> </P>
</BODY> </HTML>
|
|