title: How to import the xml into another xml?
body: <p>I have 2 xml files, and in the first file need to do the import second file, I tried to do it with <a href="https://www.w3.org/TR/xinclude/#syntax" rel="nofollow noreferrer">Xinclude</a>:</p>
  
  <p><em>first.xml:</em></p>
  
  <pre><code>&lt;FirstXml name="first" xmlns:xi="http://www.w3.org/2001/XInclude"&gt;
      &lt;xi:include href="second.xml"/&gt;
  &lt;/FirstXml&gt;
  </code></pre>
  
  <p><em>second.xml</em></p>
  
  <pre><code>&lt;SecondXml name="second&gt;
    ...
  &lt;/SecondXml&gt;
  </code></pre>
  
  <p>Then I tried to create an instance of a DocumentBuilderFactory and to enable XInclude processing.</p>
  
  <pre><code>DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
  factory.setXIncludeAware(true);
  </code></pre>
  
  <p>But when I try to enable the  XInclude processing throws an UnsupportedOperationException.</p>
  
  <p><a href="https://developer.android.com/reference/javax/xml/parsers/DocumentBuilderFactory.html#setXIncludeAware(boolean)" rel="nofollow noreferrer">The documentation</a> says that this exception throws when implementations for earlier versions of JAXP is used.</p>
  
  <p>How can I fix this problem? Or how I can do such import in android?</p>