The value of this flag determines whether the children of entity
reference nodes are visible to the
TreeWalker
. If false,
these children and their descendants will be rejected. Note that
this rejection takes precedence over
whatToShow
and the
filter, if any.
To produce a view of the document that has entity references
expanded and does not expose the entity reference node itself, use
the
whatToShow
flags to hide the entity reference node
and set
expandEntityReferences
to true when creating the
TreeWalker
. To produce a view of the document that has
entity reference nodes but no entity expansion, use the
whatToShow
flags to show the entity reference node and
set
expandEntityReferences
to false.