title: Issue loading .XML files with doc4J in Java
body: <p>I am facing an issue where I cannot load even the sample <strong>word2003xml.xml</strong> which is provided by doc4J for tests in <strong>docx4j-samples-docx4j-8.3.1.zip</strong> found here <a href="https://www.docx4java.org/downloads.html" rel="nofollow noreferrer">https://www.docx4java.org/downloads.html</a></p>
  <p>I tried loading the file using 2 different constructors but the result is the same.</p>
  <pre><code>WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(new FileInputStream(new File(&quot;C:\\Mine\\project4tests\\word2003xml.xml&quot;)));
  WordprocessingMLPackage wordMLPackage2 = WordprocessingMLPackage.load(new java.io.File(&quot;C:\\Mine\\project4tests\\word2003xml.xml&quot;));
  </code></pre>
  <p>Here is the exception that I am getting:</p>
  <pre><code>Exception in thread &quot;main&quot; org.docx4j.openpackaging.exceptions.Docx4JException: Couldn't load xml from stream 
      at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:641)
      at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:418)
      at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:376)
      at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:341)
      at org.docx4j.openpackaging.packages.WordprocessingMLPackage.load(WordprocessingMLPackage.java:182)
      at Main.main(Main.java:13)
  Caused by: javax.xml.bind.UnmarshalException
    with linked exception:
  [com.sun.istack.internal.SAXParseException2; lineNumber: 3; columnNumber: 827; unexpected element (uri:&quot;http://schemas.microsoft.com/office/word/2003/wordml&quot;, local:&quot;wordDocument&quot;). Expected elements are &lt;{http://schemas.microsoft.com/office/2006/xmlPackage}package&gt;,&lt;{http://schemas.microsoft.com/office/2006/xmlPackage}part&gt;,&lt;{http://schemas.microsoft.com/office/2006/xmlPackage}xmlData&gt;]
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:468)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:402)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:371)
      at org.docx4j.convert.in.FlatOpcXmlImporter.&lt;init&gt;(FlatOpcXmlImporter.java:132)
      at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:638)
      ... 5 more
  Caused by: com.sun.istack.internal.SAXParseException2; lineNumber: 3; columnNumber: 827; unexpected element (uri:&quot;http://schemas.microsoft.com/office/word/2003/wordml&quot;, local:&quot;wordDocument&quot;). Expected elements are &lt;{http://schemas.microsoft.com/office/2006/xmlPackage}package&gt;,&lt;{http://schemas.microsoft.com/office/2006/xmlPackage}part&gt;,&lt;{http://schemas.microsoft.com/office/2006/xmlPackage}xmlData&gt;
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:726)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:247)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:242)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:109)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1131)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:556)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:538)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:60)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:231)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:165)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:400)
      ... 8 more
  Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:&quot;http://schemas.microsoft.com/office/word/2003/wordml&quot;, local:&quot;wordDocument&quot;). Expected elements are &lt;{http://schemas.microsoft.com/office/2006/xmlPackage}package&gt;,&lt;{http://schemas.microsoft.com/office/2006/xmlPackage}part&gt;,&lt;{http://schemas.microsoft.com/office/2006/xmlPackage}xmlData&gt;
      ... 19 more
  </code></pre>
  <p>There is no issue loading a .DOCX file, however what I need to use the docx4J library is to convert an old .DOC (WordprocessingML more like an .XML) file into a .DOCX.
  Similar to what is done here <a href="https://coderanch.com/t/721499/java/Word-XML-DOCX" rel="nofollow noreferrer">https://coderanch.com/t/721499/java/Word-XML-DOCX</a></p>
  <p>Does anybody know why I cannot load the file properly?</p>