Package digilib.util

Class XMLMapListLoader


  • public class XMLMapListLoader
    extends Object
    Loads a simple XML structure into a List of Maps. The XML file has an outer list_tag. Every entry is an entry_tag. All attributes are loaded into a Map. Nested tags are not supported. The text content of the tag is put in the Map under the key "_text". The file is read by the loadURI() method, that returns a List with Maps of key-value pairs.
    Author:
    casties
    • Field Detail

      • logger

        protected static final org.slf4j.Logger logger
      • CONTENT_KEY

        public static String CONTENT_KEY
    • Constructor Detail

      • XMLMapListLoader

        public XMLMapListLoader()
      • XMLMapListLoader

        public XMLMapListLoader​(String list_tag,
                                String entry_tag)
        Creates an XMLMapListLoader with an outer list_tag. Every entry is an entry_tag. All attributes are stored in a Map.
        Parameters:
        list_tag - the list tag
        entry_tag - the entry tag