Predefined entities in XPath queries

When you specify XML queries with character literals that contain the XML special characters, you can write them as either plain characters or as pre-defined entities. The following example shows two points:

The following example is the same, except that the XML query specifies the character literal with the plain XML special characters. Those XML special characters are replaced by the predefined entities before the query is evaluated.

select xmlextract("/a='&<>""' " ,
            "<a>&amp;&lt;&gt;&quot;</a>")
----------------------------------
          <a>&amp;&lt;&gt;&quot;</a>