code: public synchronized void loadFromXML(InputStream in)
          throws IOException, InvalidPropertiesFormatException
      {
          if (in == null)
              throw new NullPointerException();
          XMLUtils.load(this, in);
          in.close();
      }
docs: Loads all of the properties represented by the XML document on the
  specified input stream into this properties table.
  
  <p>The XML document must have the following DOCTYPE declaration:
  <pre>
  &lt;!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"&gt;
  </pre>
  Furthermore, the document must satisfy the properties DTD described
  above.
  
  <p>The specified stream is closed after this method returns.
  
  @param in the input stream from which to read the XML document.
  @throws IOException if reading from the specified input stream
  results in an <tt>IOException</tt>.
  @throws InvalidPropertiesFormatException Data on input stream does not
  constitute a valid XML document with the mandated document type.
  @throws NullPointerException if <code>in</code> is null.
  @see    #storeToXML(OutputStream, String, String)
  @since 1.5