Running a sample  Chapter 8: Supported Elements and Declarations for Schemas

Chapter 7: Using Message Bridge Samples

Understanding the output

After you have run a sample, you will see output on the screen. The following example is output after running the "Element with Character" sample. (Output from other samples will be similar to this XML document.)

1. <?xml version="1.0" encoding="UTF-8"?> 
2. <!-- element containing only character data --> 
3. <!DOCTYPE checkbook SYSTEM "element_character.dtd"> 
4. <checkbook>Deposit $2,000,000 into my checkbook!</checkbook> 
5. payment amount = <Deposit $2,000,000 into my checkbook!> 
6. payment expected amount = <Deposit $2,000,000 into my checkbook!> 
7. ...Building XML... 
8. <?xml version="1.0" encoding="UTF-8"?> 
9. <!DOCTYPE checkbook SYSTEM "element_character.dtd"><!-- element containing only character data --><checkbook>Deposit $2,000,000 into my checkbook!</checkbook>

The first piece of output to appear on the screen is the original XML document, lines 1 through 4. The second piece of output is the result of the binding, line 5. The third piece of output is the expected output of the binding, line 6, which should be exactly the same as line 5. The rest of the output, lines 7 through 9, is the generated XML after the binding, which should be very similar to the original XML document.

Most of the samples’ output is similar to the previous description, with a few differences. To validate the output you see on the screen, compare it with the data in the output.txt file in the sample's directory.





Copyright © 2005. Sybase Inc. All rights reserved. Chapter 8: Supported Elements and Declarations for Schemas