static parseNamespace(tag, parentTag) {
        const thisNs = {};
        let hasNs = false;
        for (const attributeKey in tag.attributes) {
            if (attributeKey.startsWith('xmlns')) {
                if (attributeKey.length === 5) {
                    // Set default namespace
                    hasNs = true;
                    thisNs[''] = tag.attributes[attributeKey];
                }
                else if (attributeKey.charAt(5) === ':') {
                    // Definition of a prefix
                    hasNs = true;
                    thisNs[attributeKey.substr(6)] = tag.attributes[attributeKey];
                }
            }
        }
        const parentNs = parentTag && parentTag.ns ? parentTag.ns : [RdfXmlParser.DEFAULT_NS];
        return hasNs ? parentNs.concat([thisNs]) : parentNs;
    }
/**
     * Parse the namespace of the given tag,
     * and take into account the namespace of the parent tag that was already parsed.
     * @param {Tag} tag A tag to parse the namespace from.
     * @param {IActiveTag} parentTag The parent tag, or null if this tag is the root.
     * @return {{[p: string]: string}[]} An array of namespaces,
     *                                   where the last ones have a priority over the first ones.
     */
Parse the namespace of the given tag,
and take into account the namespace of the parent tag that was already parsed.
@param {Tag} tag A tag to parse the namespace from.
@param {IActiveTag} parentTag The parent tag, or null if this tag is the root.
@return {{[p: string]: string}[]} An array of namespaces,
where the last ones have a priority over the first ones.
Parse the namespace of the given tag and take into account the namespace of the parent tag that was already parsed . @param { Tag } tag A tag to parse the namespace from . @param { IActiveTag } parentTag The parent tag or null if this tag is the root . @return {{ [ p : string ] : string } [] } An array of namespaces where the last ones have a priority over the first ones .
static parseNamespace(tag, parentTag) {
        const thisNs = {};
        let hasNs = false;
        for (const attributeKey in tag.attributes) {
            if (attributeKey.startsWith('xmlns')) {
                if (attributeKey.length === 5) {
                    hasNs = true;
                    thisNs[''] = tag.attributes[attributeKey];
                }
                else if (attributeKey.charAt(5) === ':') {
                    hasNs = true;
                    thisNs[attributeKey.substr(6)] = tag.attributes[attributeKey];
                }
            }
        }
        const parentNs = parentTag && parentTag.ns ? parentTag.ns : [RdfXmlParser.DEFAULT_NS];
        return hasNs ? parentNs.concat([thisNs]) : parentNs;
    }
static parseNamespace ( tag , parentTag ) { const thisNs = { } ; let hasNs = false ; for ( const attributeKey in tag . attributes ) { if ( attributeKey . startsWith ( 'xmlns' ) ) { if ( attributeKey . length === 5 ) { hasNs = true ; thisNs [ '' ] = tag . attributes [ attributeKey ] ; } else if ( attributeKey . charAt ( 5 ) === ':' ) { hasNs = true ; thisNs [ attributeKey . substr ( 6 ) ] = tag . attributes [ attributeKey ] ; } } } const parentNs = parentTag && parentTag . ns ? parentTag . ns : [ RdfXmlParser . DEFAULT_NS ] ; return hasNs ? parentNs . concat ( [ thisNs ] ) : parentNs ; }
Parse the namespace of the given tag,
 and take into account the namespace of the parent tag that was already parsed.
Parse the namespace of the given tag and take into account the namespace of the parent tag that was already parsed .
// Set default namespace // Definition of a prefix