Exemple #1
0
        /// <summary>
        /// Retrieves the context node's attributes.
        /// </summary>
        /// <param name="node">
        ///            is the type of node. </param>
        public override void iterate(NodeType node, ResultBuffer copyInto, Node limitNode)
        {
            // only elements have attributes
            if (!(node is ElementType))
            {
                return;
            }

            // get attributes
            ElementType  elem  = (ElementType)node;
            NamedNodeMap attrs = elem.value().Attributes;

            if (attrs == null)
            {
                return;
            }

            // add attributes
            for (int i = 0; i < attrs.Length; i++)
            {
                Attr attr = (Attr)attrs.item(i);

                copyInto.add(NodeType.dom_to_xpath(attr, node.TypeModel));
            }
        }
Exemple #2
0
 public short canSetAttributeNode(Attr attrNode)
 {
     return(default(short));
 }
	public short canSetAttributeNode(Attr attrNode) { return default(short); }