code: public static boolean isXmlPage(CmsResource resource) {
  
          boolean result = false;
          if (resource != null) {
              result = resource.getTypeId() == m_staticTypeId;
          }
          return result;
      }
docs: Returns <code>true</code> in case the given resource is an XML page.<p>
  
  Internally this checks if the type id for the given resource is
  identical type id of the XML page.<p>
  
  @param resource the resource to check
  
  @return <code>true</code> in case the given resource is an XML page
  
  @since 7.0.2