Entity References

Before discussing entity references, let's consider three situations:

  • You want to enter the > sign in the XML document. You will not be able to enter the > sign directly, because the XML parser will treat it as a markup, and the XML processor will take great offense when it finds a > hanging around in the XML document. You need a mechanism to escape the > character, so that it can be entered in the XML document.

  • Suppose you are creating an XML document describing car parts, and you need to specify the name of a product that is still under development. At the time you created the document, suppose the name of the product was Wonder Writer. After some time, the legal department figured out that there was a problem with the name ...

Get Java™ APIs for XML Kick Start now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.