<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.1//EN" "http://www.web3d.org/specifications/x3d-3.1.dtd">
<X3D profile='Immersive' version='3.1' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.1.xsd'>
  <head>
    <meta content='TextSpecialCharacters.x3d' name='title'/>
    <meta content='Text node demonstration of quotation, apostrophe, ampersand and backslash characters using X3D MFString escaping for XML character entities' name='description'/>
    <meta content='Don Brutzman' name='creator'/>
    <meta content='12 July 2008' name='created'/>
    <meta content='2 October 2011' name='modified'/>
    <meta content='Character entity references in HTML 4' name='reference'/>
    <meta content='http://www.w3.org/TR/REC-html40/sgml/entities.html' name='reference'/>
    <meta content='Copyright (c) Don Brutzman and Len Daly, 2008' name='rights'/>
    <meta content='http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter02-GeometryPrimitives/TextSpecialCharacters.x3d' name='identifier'/>
    <meta content='X3D-Edit, https://savage.nps.edu/X3D-Edit' name='generator'/>
    <meta content='../license.html' name='license'/>
  </head>
  <Scene>
    <Background skyColor='1 1 1'/>
    <Viewpoint description='Default View' position='0 0 15'/>
    <Shape>
      <!-- Empty string "" means to skip a line -->
      <!-- The ampersand escape characters are based on XML rules -->
      <!-- apostrophe ' is &apos; and needs to be escaped in single-quote delimiters used for string='value' attribute -->
      <!-- ampersand & is &amp; and needs to be escaped -->
      <!-- quotation " is &quot; and isn't needed if single-quote delimiters used for string='value' attribute -->
      <!-- quotation " can be used as part of X3D string if escaped with backslash: \" -->
      <!-- backslash is used as escape character for " (and itself) in X3D -->
      <!-- character entities are listed in HTML specification and are good for any XML -->
      <Text DEF='DefaultText' string='"Character entity substitutions:"
        "empty string \"\" skips a line:"
        ""
        "apostrophe  &apos;  is &amp;apos;" 
        "ampersand &amp; is &amp;amp;"
        "quote mark  \"  is &amp;quot;"
        "backslash \\ is X3D escape character"
        "double backslash \\\\ is X3D backslash \\"
        "Pi &#928; is &amp;#928; XML character entity"'>
        <FontStyle DEF='CenteredFontStyle' justify='"MIDDLE" "MIDDLE"'/>
      </Text>
      <Appearance>
        <Material DEF='DefaultMaterial' diffuseColor='0.2 0.2 0.2'/>
      </Appearance>
    </Shape>
  </Scene>
</X3D>