IBM®
Skip to main content
    United States [change]      Terms of use
 
 
   
     Home      Products      Services & solutions      Support & downloads      My account     
     
  XML on TPF: A Short Tutorial IBM

XML on TPF: A Short Tutorial — Page 13 of 14
Using the Applications

Now that you have placed the DTD, XML Schema, and both sample XML documents in the TPF file system and compiled, linked, and loaded both applications, you are ready to use the applications. The applications are activated using the ZFILE command.

Before continuing, do the following:

On your TPF 4.1 test system, use the ZFILE command to see how the two applications display the sample data on the screen. The applications define the allowable options for the command:

ZFILE appname [-v=whenvalue] [-n [-s]] -e=elname xmldoc

where:
  • appname is the application that you want to run: domxml or saxxml.
  • -v is optional and specifies that you want the XML document validated against a DTD.
  • whenvalue is the level at which you wants your document validated:
    • always means that the parser should always try to validate the document.
    • never means that the parser should never try to validate the document.
    • auto means that the parser will validate if it detects the specification of a DTD.
    The default value is auto.
  • -n is optional and enables namespace processing.
  • -s is optional and enables Schema processing. If you are processing a Schema, you must also enable namespace processing by specifying -n.
  • -e=elname. specifies that you want to display the contents of element elname.
  • xmldoc is the name of the XML document that you want to parse: pnrd.xml or pnrs.xml.

For example, the following list shows sample commands and is linked to an image of how your display will look after that command is completed:

Once you have entered the commands, you are ready to continue.

For More Information

PreviousNext

Back to the Beginning
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14

 

Close This Window.

 

    About IBM Privacy Contact