@Nonnull
  public IMicroDocument getAsDocument ()
  {
    if (isMultiFileSitemap ())
      throw new IllegalStateException ("Cannot convert a multi file sitemap to a single - invalid - document");

    final IMicroDocument ret = new MicroDocument ();
    final IMicroElement eUrlset = ret.appendElement (CXMLSitemap.XML_NAMESPACE_0_9, "urlset");
    for (final XMLSitemapURL aURL : m_aURLs)
      eUrlset.appendChild (aURL.getAsElement ());
    return ret;
  }
@ Nonnull public IMicroDocument getAsDocument ( ) { if ( isMultiFileSitemap ( ) ) throw new IllegalStateException ( "Cannot convert a multi file sitemap to a single - invalid - document" ) ; final IMicroDocument ret = new MicroDocument ( ) ; final IMicroElement eUrlset = ret . appendElement ( CXMLSitemap . XML_NAMESPACE_0_9 , "urlset" ) ; for ( final XMLSitemapURL aURL : m_aURLs ) eUrlset . appendChild ( aURL . getAsElement ( ) ) ; return ret ; }
@return The whole URL set as a single XML document. This works only for
non-multi file sitemaps.
@throws IllegalStateException
if this is a multi-file URL set