November 2002
Intermediate to advanced
1120 pages
21h 2m
English
One of the more obscure parts of the XML 1.0 specification is the perhaps misleadingly named “ignorable white space.” This is white space that occurs between tags in places where the DTD does not allow mixed content. Consider the XML-RPC document in Example 6.13.
<?xml version="1.0"?>
<!DOCTYPE methodCall [
<!ELEMENT methodCall (methodName, params)>
<!ELEMENT params (param+)>
<!ELEMENT param (value)>
<!ELEMENT value (string)>
<!ELEMENT methodName (#PCDATA)>
<!ELEMENT string (#PCDATA)>
]>
<methodCall>
<methodName>lookupSymbol</methodName>
<params>
<param>
<value>
<string>
Red Hat
</string>
</value>
</param>
</params>
</methodCall>
|
This example ...
Read now
Unlock full access