Ejemplo n.º 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));
            }
        }
Ejemplo n.º 2
0
 public short canSetAttributeNode(Attr attrNode)
 {
     return(default(short));
 }
Ejemplo n.º 3
0
	public short canSetAttributeNode(Attr attrNode) { return default(short); }