August 2000
Beginner
456 pages
9h 24m
English
| Q1: | Why is it necessary to define and use a notation if you want to use an external resource that is not text? |
| A1: | The XML processor understands only text and has no functionality built into it to process other files. A notation is the way that you call other programs including the input that they are to process. |
| Q2: | Why would you use attributes in an XML file? |
| A2: | Because in many cases, one word or phrase is not enough. While it's possible to use a complete phrase inside the data, a value such as the following would have to be parsed by the programmer, which would make your programs much more complex:
<NodeName>Node value is 12 and the parameter is Hello</NodeName> With attributes, you can write this: <NodeName parameter="Hello">12</NodeName> ... |
Read now
Unlock full access