code: public static List<com.ftinc.kit.attributr.model.Library> parse(Context ctx, @XmlRes int license){
          List<com.ftinc.kit.attributr.model.Library> libraries = new ArrayList<>();
  
          // Get the XMLParser
          XmlPullParser parser = ctx.getResources().getXml(license);
  
          // Begin parsing
          try {
              parser.next();
              parser.require(XmlPullParser.START_DOCUMENT, null, null);
              parser.nextTag();
              parser.require(XmlPullParser.START_TAG, null, DOCUMENT_TAG);
              while(parser.next() != XmlPullParser.END_TAG){
                  if (parser.getEventType() != XmlPullParser.START_TAG) {
                      continue;
                  }
  
                  String name = parser.getName();
                  if(name.equals(TAG_LIBRARY)){
                      libraries.add(readLibrary(parser));
                  }else{
                      skip(parser);
                  }
              }
          } catch (XmlPullParserException e) {
              e.printStackTrace();
          } catch (IOException e) {
              e.printStackTrace();
          }
  
          return libraries;
      }
docs: Parse a given XML resource file
  
  @param license       the license res id
  @return              the list of parsed libraries