code: public WireFeed build(final org.w3c.dom.Document document) throws IllegalArgumentException, FeedException {
          final DOMBuilder domBuilder = new DOMBuilder();
          try {
              final Document jdomDoc = domBuilder.build(document);
              return this.build(jdomDoc);
          } catch (final IllegalArgumentException ex) {
              throw ex;
          } catch (final Exception ex) {
              throw new ParsingFeedException("Invalid XML", ex);
          }
      }
docs: Builds an WireFeed (RSS or Atom) from an W3C DOM document.
  <p>
  NOTE: This method delages to the 'AsbtractFeed WireFeedInput#build(org.jdom2.Document)'.
  <p>
  
  @param document W3C DOM document to read to create the WireFeed.
  @return the WireFeed read from the W3C DOM document.
  @throws IllegalArgumentException thrown if feed type could not be understood by any of the
  underlying parsers.
  @throws FeedException if the feed could not be parsed