public class XMLHelper extends Object
| Constructor and Description |
|---|
XMLHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getPageXML(ContentContext ctx,
MenuElement page) |
static SiteMapBloc |
getSiteMapBloc(ContentContext ctx,
Collection<MenuElement> pages,
int i,
Calendar latestDate)
create sitemap protocol 0.9 for structured ranking in google
|
static SiteMapBloc |
getSiteMapNewsBloc(ContentContext ctx,
Collection<MenuElement> pages,
int i,
Calendar latestDate)
create sitemap protocol 0.9 for structured ranking in google
|
static String |
getXMLContent(ContentContext ctx,
int version) |
static String |
getXMLContent(MenuElement menu,
int renderMode,
int version,
String defaultLg)
return the content in a XML structure
|
static void |
main(String[] args) |
static void |
storeXMLContent(Writer inOut,
MenuElement menu,
int renderMode,
int version,
String defaultLg,
Map<String,String> contentMap,
TaxonomyBean taxonomyRoot)
return the content in a XML structure
|
public static String getPageXML(ContentContext ctx, MenuElement page) throws Exception
Exceptionpublic static SiteMapBloc getSiteMapBloc(ContentContext ctx, Collection<MenuElement> pages, int i, Calendar latestDate) throws Exception
root - the root element of the navigationExceptionpublic static SiteMapBloc getSiteMapNewsBloc(ContentContext ctx, Collection<MenuElement> pages, int i, Calendar latestDate) throws Exception
root - the root element of the navigationExceptionpublic static String getXMLContent(ContentContext ctx, int version) throws Exception
Exceptionpublic static String getXMLContent(MenuElement menu, int renderMode, int version, String defaultLg) throws Exception
ctx - the contentContextExceptionpublic static void storeXMLContent(Writer inOut, MenuElement menu, int renderMode, int version, String defaultLg, Map<String,String> contentMap, TaxonomyBean taxonomyRoot) throws Exception
ctx - the contentContextExceptionpublic static void main(String[] args)
Copyright © 2012-2018. All Rights Reserved.