>> English << | česky | Español | Português | Türkçe | Nederlands | По-русски | Deutsch | Français | Italiano | 中文 | ქართული | Magyar | PolskiZVON > Tutorials > XML Tutorial
>> Example 8 << | Prev | Next | Contents

Description

Characters < and & cannot be used in text as they are used in markup. If these characters are needed &lt; must be used insted of < and &amp; instead of &

Well-formed documents


& and < substitution:


<example>

     <isLower>

          23 &lt; 46

     </isLower>

     <ampersand>

          Willey &amp; sons

     </ampersand>

</example>


Documents with errorsTop


Characters & and < cannot be used inside text:


<example>

     <isLower>

          23 < 46

     </isLower>

     <ampersand>

          Willey & sons

     </ampersand>

</example>