Java Reference
In-Depth Information
Next, the DTD describes the valid content (that is, the elements) of POST_
JOURNAL (the actual journal information). A POST_JOURNAL consists of a
JEHEADER (journal header) and one or more JELINE (journal line) elements:
<!ELEMENT POST_JOURNAL (JEHEADER, JELINE+)>
This DTD segment describes the valid content (that is, the elements) of
JEHEADER (the journal header information). Some of the fields in JEHEADER are
optional (as identified by a ?). Elements that are entity names, such as
AMOUNT.DOCUMENT.T, are enclosed in parentheses.
<!ELEMENT JEHEADER (
(%AMOUNT.DOCUMENT.T;)?,
(%DATETIME.DOCUMENT;)?,
(%DATETIME.PAYEND;)?,
GLENTITYS, ORIGREF, DESCRIPTN?, DOCTYPE?, JEID?,
LEDGER?, USERID?, USERAREA?)>
And finally, the DTD describes the valid content (that is, the elements) of
JELINE (the journal line information):
<!ELEMENT JELINE (
(%AMOUNT.ACTUAL.T;),
(%AMOUNT.ACTUAL.F;)?,
GLNOMACCT, BUSNAREA?, COSTCENTER?, DEPARTMENT?,
DESCRIPTN?,
...
((%DATETIME.ACCOUNTING;) | (ACCTPERIOD, ACCTYEAR)),
USERAREA?)>
<!-- From 001_post_journal_004.dtd -->
A sample XML document based on the DTD you've defined would look like
this:1
<?xml version="1.0" standalone="no"?>
<!--
$Revision: 6.0.1 $
$Date: 31 October 1998 $
Open Applications Group Sample XML Data
Copyright 1998, All Rights Reserved
Search WWH ::




Custom Search