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 9 of 10
Using the Applications

Paul has placed the DTD, the XML Schema, and both sample XML documents in the TPF file system and compiled, linked, and loaded both applications. He is ready to use the applications. Paul activates his applications by using the ZFILE command. The applications define the allowable options for the command:

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

where:
  • appname is the application that Paul wants to run: domxml or saxxml.
  • -v is optional and specifies that he wants the XML document validated against a DTD.
  • whenvalue is the level at which he wants his 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 he wants to display the contents of element elname.
  • xmldoc is the name of the XML document that he wants to parse: pnrd.xml or pnrs.xml.

Some of the permutations allowed by Paul's applications follow. Each command entry is linked with an image of Paul's display after that command entry is completed.

Once you have viewed the screen shots, you are ready to continue.

For More Information

PreviousNext

Back to the Beginning
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10

 

Close This Window.

 

    About IBM Privacy Contact