Dear All,

I am new for java and I don't know how to write a complicated to parse xml. I have downloaded xerces-j and installed.
Can any body can write a code and sent it to me for the following purpose.


I want to validate a xml file against a external dtd.

I am attaching the one xml file and corresponding to it.

Thanks in advance.
Ganesh

<?xml version="1.0" encoding="UTF-8"?>

<!--   Author: Drew Burton   Date: 4/23/01  > @(#) Version: 1.7

Content:  DTD for Apex data of Original Reference Lists for Mathematical
Reviews
Contact:  Drew Burton, American Methematical Society, [EMAIL PROTECTED];
734-995-4210

Revision History:
2001/01/07:
      o created version 1.0 with help from Patrick Ion
2001/01/27
      o changed some tags (which appear only once) to be longer, orl,
oik, sou
2001/02/27
      o added mrn and cno elements to be populed from MR database
2001/03/06
      o added entity 'untelligible'
2001/03/07
      o added cno and mrn to store identifiers from MR internal matching
2001/04/20
      o add pcno and pmrn for MR identifiers of preprints; only used in
        internal MR Processing 
2001/04/23
      o add entity, &me;,  for multiple entries within a reference
-->


<!ELEMENT orl (oik, sou, o*)>

<!-- A original reference list is identified by a leading block of
original
item keys and consists in a list of zero or more original refs; we want
a
oreference file even if there are no original references -->

<!ELEMENT oik (oic, oip, oia)>

<!-- The original item keys are the original item cno and an original
item
page used as a check value, and the original item author-3-char -->

<!-- A schema could provide data types for the element contents -->

<!ELEMENT oic (#PCDATA)>
<!-- the 7-digit control number, cno, will be on the cover page for the
reference list; do not include the spaces; generally it also will be
accompanied by a barcode version of the number -->

<!ELEMENT oip (#PCDATA)>
<!-- first page of the original article as a check that we have the 
right item  -->

<!ELEMENT oia (#PCDATA)>
<!-- First three characters of the original item's author last name or
title -->

<!ELEMENT sou (#PCDATA)>
<!-- Source of the data; e.g. "Apex"; at some point publishers
may supply data -->


<!ELEMENT o (#PCDATA | a | t | j | v | i | s | e | p | y | m | u | d | n
| x | cno | mrn | pcno | pmrn)*>

<!-- each original reference, o , consists of a mixed stream of text
with
included marked elements such as authors, a title, volume numbers,
years,
start and ending paging etc.; the intention is that if the markup tags
are
omitted the resulting string will be just the TeX for the original
reference string -->

<!-- Punctuation; the punctuation between fields belongs outside the
elements; periods ending abbreviations within a field belong inside the
field -->

<!ELEMENT a  (#PCDATA | f | l )*>
<!-- the authors are made up of authors and fill text; each author has a
last name l,and possibly a first name (or initials) f -->
<!-- if the reference list uses a convention (usually an underbar) to
indicate
that a reference has the same author as the previous reference, the
author name
should be keyboarded -->
<!ELEMENT l (#PCDATA)> 
<!-- last name or family name of author; may include suffixes like "jr."
and prefixes like "van, de" -->
<!ELEMENT f (#PCDATA)>
<!--first names, or initials; really everything except the last name
-->

<!ELEMENT t (#PCDATA | m)*>
<!-- just the title string in TeX, of a book or article with math
identified -->
<!-- we should discuss this; if it is difficult we'll do this a
different way -->
<!ELEMENT m (#PCDATA)>
<!-- identify the math strings -->

<!ELEMENT j (#PCDATA)>
<!-- a journal name whether abbreviated or not -->
<!ELEMENT v (#PCDATA)>
<!-- a volume number or identifier -->
<!ELEMENT i (#PCDATA)>
<!-- an issue number or identifier -->
<!ELEMENT s (#PCDATA)>
<!-- start page of an item -->
<!ELEMENT e (#PCDATA)>
<!-- end page of an item -->
<!-- if there is only one page number put it in start page -->
<!ELEMENT p (#PCDATA)>
<!-- publisher identifier -->
<!ELEMENT y (#PCDATA)>
<!-- year of publication -->
<!ELEMENT x (#PCDATA)>
<!-- MR number  -->
<!ELEMENT u (#PCDATA)>
<!-- a URI of some sort if it occurs -->
<!ELEMENT d (#PCDATA)>
<!-- a DOI, document identifier if it occurs; can this be identified??
-->

<!ELEMENT n (#PCDATA)>
<!-- Note from Apex to MR -->

<!ELEMENT cno (#PCDATA)>
<!-- CNO from MR database; supplied by MR -->

<!ELEMENT mrn (#PCDATA)>
<!-- MRnumber from MR database; supplied by MR -->

<!ELEMENT pcno (#PCDATA)>
<!-- CNO from MR database matching a preprint reference; supplied by MR
-->

<!ELEMENT pmrn (#PCDATA)>
<!-- MRnumber from MR database matching a preprint reference;; supplied
by MR -->

<!ENTITY illegible "illegible"><!-- used when illegible text is
encountered -->

<!ENTITY me "me"><!-- used for each additional entry within a
reference -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE orl SYSTEM "mroref.dtd">
<orl>
<oik>
<oic>1618009</oic>
<oip>1075</oip>
<oia>HAS</oia>
</oik>
<sou>Apex Data Services, Inc.</sou>
<o><a><f>S.</f> <l>Adeleke</l></a> and <a><f>P. M.</f> <l>Neumann</l></a>, {\it
<t>Relations related to betweenness: their structure and automorphisms</t>, {\bf
<j>Memoirs of the American Mathematical Society</j>}}, to appear.</o>
<o><a><f>J.</f> <l>Denef</l></a> and <a><f>L.</f> <l>van den Dries</l></a>,
<t><m>p</m>-{\it adic and real subanalytic sets}</t>, {\it {\bf <j>Annals of
Mathematics</j>}}, vol. <v>128</v> (<y>1988</y>), pp. <s>79</s>--<e>138</e>.</o>
<o><a><f>L.</f> <l>van den Dries</l></a>, {\it <t>Dimension of definable sets,
algebraic boundedness and henselian fields</t>, {\bf <j>Annals of Pure and
Applied Logic</j>}}, vol. <v>45</v> (<y>1989</y>), pp.
<s>189</s>--<e>209</e>.</o>
<o><a><f>L.</f> <l>van den Dries</l></a>, <a><f>D.</f> <l>Haskell</l></a>, and
<a><f>H. D.</f> <l>Macpherson</l></a>, <t>{\it One-dimensional} <m>p</m>-{\it
adic subanalytic sets}</t>, in preparation.</o>
<o><a><f>D.</f> <l>Haskell</l></a> and <a><f>H. D.</f> <l>Macpherson</l></a>,
<t>{\it Cell decompositions of} <m>C</m>-{\it minimal structures}</t>, {\it {\bf
<j>Annals of Pure and Applied Logic</j>}}, vol. <v>66</v> (<y>1994</y>), pp.
<s>113</s>--<e>162</e>.</o>
<o><a><f>J.</f> <l>Knight</l></a>, <a><f>A.</f> <l>Pillay</l></a>, and
<a><f>C.</f> <l>Steinhorn</l></a>, {\it <t>Definable sets in ordered structures
II</t>, {\bf <j>Transactions of the American Mathematical Society</j>}}, vol.
<v>295</v> (<y>1986</y>), pp. <s>593</s>--<e>605</e>.</o>
<o><a><f>A. J.</f> <l>Macintyre</l></a>, <t>{\it On} <m>\omega_1</m>-{\it
categorical theories of fields}</t>, {\it {\bf <j>Fundamenta Mathematicae</j>}},
vol. <v>70</v> (<y>1971</y>), pp. <s>1</s>--<e>25</e>.</o>
<o><a><f>A. J.</f> <l>Macintyre</l></a>, <t>{\it On definable subsets of}
<m>p</m>-{\it adic fields}</t>, this {\sc Journal}, vol. <v>41</v>
(<y>1976</y>), pp. <s>605</s>--<e>610</e>.</o>
<o><a><f>A. J.</f> <l>Macintyre</l></a>, <a><f>K.</f> <l>McKenna</l></a>, and
<a><f>L.</f> <l>van den Dries</l></a>, {\it <t>Elimination of quantifiers in
algebraic structures</t>, {\bf <j>Advances in Mathematics</j>}}, vol. <v>47</v>
(<y>1983</y>), pp. <s>74</s>--<e>87</e>.</o>
<o><a><f>H. D.</f> <l>Macpherson</l></a>, <a><f>D.</f> <l>Marker</l></a>, and
<a><f>C.</f> <l>Steinhorn</l></a>, <t>{\it Weakly} <m>o</m>-{\it minimal
structures and real closed fields}</t>, in preparation.</o>
<o><a><f>H. D.</f> <l>Macpherson</l></a> and <a><f>C.</f> <l>Steinhorn</l></a>,
<t>{\it On variants of} <m>o</m>-{\it minimality}</t>, {\it {\bf <j>Annals of
Pure and Applied Logic</j>}}, to appear.</o>
<o><a><f>L.</f> <l>Mathews</l></a>, <t>{\it The independence property in
unstable algebraic structures I:} <m>p</m>-{\it adically closed fields}</t>,
preprint.</o>
<o><a><f>A.</f> <l>Pillay</l></a> and <a><f>C.</f> <l>Steinhorn</l></a>, {\it
<t>Definable sets in ordered structures I</t>, {\bf <j>Transactions of the
American Mathematical Society</j>}}, vol. <v>295</v> (<y>1986</y>), pp.
<s>565</s>--<e>592</e>.</o>
<o><a><f>A.</f> <l>Prestel</l></a> and <a><f>P.</f> <l>Roquette</l></a>, <t>{\bf
{\it Formally}} <m>p</m>-{\bf {\it adic fields}}</t>, Lecture Notes in
Mathematics, no. <v>1050</v>, <p>Springer-Verlag</p>, Berlin, <y>1984</y>.</o>
<o><a><f>P.</f> <l>Ribenboim</l></a>, <t>{\bf {\it Th\'eorie des
valuations}}</t>, <p>Les Presses de l'Universit\'e de Montr\'eal</p>,
Montr\'eal, <y>1967</y>.</o>
<o><a><f>P.</f> <l>Scowcroft</l></a>, <t>{\it More on definable sets of}
<m>p</m>-{\it adic numbers}</t>, this {\sc Journal}, vol. <v>53</v>
(<y>1988</y>), pp. <s>912</s>--<e>920</e>.</o>
<o><a><f>P.</f> <l>Scowcroft</l></a> and <a><f>L.</f> <l>van den Dries</l></a>,
<t>{\it On the structure of semi-algebraic sets over} <m>p</m>-{\it adic
fields}</t>, this {\sc Journal}, vol. <v>53</v> (<y>1988</y>), pp.
<s>1138</s>--<e>1164</e>.</o>
<o><a><f>S.</f> <l>Shelah</l></a>, {\bf {\it <t>Classification theory and the
number of non-isomorphic models</t>}}, <p>North-Holland</p>, Amsterdam,
<y>1978</y>.</o>
</orl>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to