code: private void includeXmlContent(final XIncludeAttributes xIncludeAttributes)
              throws XIncludeFatalException, XIncludeResourceException
      {
          try
          {
              settingLanguage();
              final SAXSource source = buildingXIncludeSource(xIncludeAttributes);
              final TreeInfo docInfo = this.context.getConfiguration().getProcessor().getUnderlyingConfiguration()
                      .buildDocumentTree(source);
              final XdmNode node = new XdmNode(docInfo.getRootNode());
              startingInjectXInclude();
              injectingXInclude(xIncludeAttributes, source, node);
          }
          catch (final XPointerResourceException e)
          {
              throw new XIncludeResourceException(e.getMessage());
          }
          catch (final XPointerException e)
          {
              throw new XIncludeFatalException(e.getMessage());
          }
          catch (final XPathException e)
          {
              if (e.getCause() instanceof XIncludeFatalException)
              {
                  throw (XIncludeFatalException) e.getCause();
              }
              else
              {
                  throw new XIncludeFatalException(e.getMessage());
              }
          }
          finally
          {
              if (isInjectingXInclude())
              {
                  endingInjectXInclude();
              }
          }
      }
docs: //////////////////////////