private void parseTagRules()

in src/main/java/org/apache/sling/xss/impl/xml/MapBuilder.java [164:177]


    private void parseTagRules(List<Tag> root) throws InvalidConfigException {
        if (root == null) return;

        for (Tag tagNode : root) {
            String name = tagNode.getName();
            String action = tagNode.getAction();

            List<Attribute> attributeList = tagNode.getAttributeList();
            List<Attribute> tagAttributes = getTagAttributes(attributeList, name);
            Tag tag = new Tag(name, action, tagAttributes);

            policy.tagRules.put(name, tag);
        }
    }