iTP Active Transaction Pages (iTP ATP) Programmer's Guide
XML for ATP Add-On Module
iTP Active Transaction Pages (iTP ATP) Programmer’s Guide—522292-002
5-73
Sample Applications
Sample Applications
Example 5-1 shows the sample XML file for the previous examples in this section.
Example 5-1. XML Code (sample.xml)
<?xml version="1.0"?>
<!DOCTYPE class99 SYSTEM "sample.dtd" [
 <!ENTITY ent1 "o">
 <!ENTITY ent2 "10100 Tantau Ave">
 <!ENTITY ent3 "California">
 <!ENTITY ent4 "<entElement>Element data</entElement><?PItarget PIdata?>">
 <!ENTITY ent5 PUBLIC "entityURI" "entityFile" NDATA notation1>
 <!NOTATION notation1 PUBLIC "notationFile" "notation1">
 <!NOTATION notation2 SYSTEM "notation2File">
]>
<!--This is a comment line-->
<class99>
 <student id="NUM16001">
 <name>Jenny Mabry</name>
 <department>Computer Science</department> 
 <GPA>3.6</GPA>
 <gender>Female</gender>
 <address permanent="Yes">1010 Fargo Drive, Cupertino, California 95014 
</address>
 </student>
 <student id="NUM16002">
 <name>Lily Ramos<![CDATA[This is a CDATASection with EntityReference number 
3 &ent3;]]>
 <![CDATA[This is an adjacent CDATASection with a reference to a tab 
&tab;]]></name>
 <department>Electrical Engineering</department>
 <GPA>3.2</GPA>
 <gender>Female</gender>
 <address permanent="Yes" street="Yes">&ent2; Cupertino, &ent3;
 95014</address>
 </student>
 <student id="NUM16003">
 <name>Michael
 Oconnor</name>
 <department>Computer Science</department>
 <GPA>3.8</GPA>
 <gender>Male</gender>
 <address permanent="No" street="N&ent1;">PO Box 28 Irving, texas 
98553</address>
 </student>
 <student id="NUM16004">
 <name>Maria Jones</name>
 <department>Electrical Engineering</department>
 <GPA>3.7</GPA>
 <gender>Female</gender>
 <address permanent="Yes">277 South Road. Sunnyvale, California 
94087</address>
 </student>
 <student id="NUM16005">
 <name>John Martin</name>
 <department>Computer Science</department>
 <GPA>3.0</GPA>
 <gender>male</gender>
 <address street="Yes">1821 main street, Dallas, Texas 98556</address>
 </student>
 </class99>










