au.edu.anu.portal.portlets.sakaiconnector.utils
Class XmlParser
java.lang.Object
au.edu.anu.portal.portlets.sakaiconnector.utils.XmlParser
public class XmlParser
- extends Object
A collection of methods to parse XML into various lists and objects
Ideally these should be genericised to a generic parsing algorithm
- Author:
- Steve Swinsburg (steve.swinsburg@anu.edu.au)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlParser
public XmlParser()
parseListOfSites
public static List<Site> parseListOfSites(String xml)
- Parse the given XML into a list of Sites. This comes from getSitesUserCanAccess.
- Parameters:
xml -
- Returns:
parseListOfPages
public static List<Tool> parseListOfPages(String xml)
- Parse the given XML into a list of Tools. This comes from getPagesAndToolsForSite.
- Parameters:
xml -
- Returns:
Copyright © 2009-2012 Division of Information, Australian National University. All Rights Reserved.