Module: IXMLDOMElement

Includes:
WIN32OLE::VARIANT
Defined in:
sample/xml.rb

Constant Summary

Constants included from WIN32OLE::VARIANT

WIN32OLE::VARIANT::VT_ARRAY, WIN32OLE::VARIANT::VT_BOOL, WIN32OLE::VARIANT::VT_BSTR, WIN32OLE::VARIANT::VT_BYREF, WIN32OLE::VARIANT::VT_CY, WIN32OLE::VARIANT::VT_DATE, WIN32OLE::VARIANT::VT_DISPATCH, WIN32OLE::VARIANT::VT_EMPTY, WIN32OLE::VARIANT::VT_ERROR, WIN32OLE::VARIANT::VT_I1, WIN32OLE::VARIANT::VT_I2, WIN32OLE::VARIANT::VT_I4, WIN32OLE::VARIANT::VT_I8, WIN32OLE::VARIANT::VT_INT, WIN32OLE::VARIANT::VT_NULL, WIN32OLE::VARIANT::VT_PTR, WIN32OLE::VARIANT::VT_R4, WIN32OLE::VARIANT::VT_R8, WIN32OLE::VARIANT::VT_UI1, WIN32OLE::VARIANT::VT_UI2, WIN32OLE::VARIANT::VT_UI4, WIN32OLE::VARIANT::VT_UI8, WIN32OLE::VARIANT::VT_UINT, WIN32OLE::VARIANT::VT_UNKNOWN, WIN32OLE::VARIANT::VT_USERDEFINED, WIN32OLE::VARIANT::VT_VARIANT

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#lastargsObject (readonly)

Returns the value of attribute lastargs



1375
1376
1377
# File 'sample/xml.rb', line 1375

def lastargs
  @lastargs
end

Instance Method Details

#appendChild(arg0) ⇒ Object

IXMLDOMNode appendChild append a child node

IXMLDOMNode arg0 --- newChild [IN]


1625
1626
1627
1628
1629
# File 'sample/xml.rb', line 1625

def appendChild(arg0)
  ret = _invoke(16, [arg0], [VT_BYREF|VT_DISPATCH])
  @lastargs = WIN32OLE::ARGV
  ret
end

#attributesObject

IXMLDOMNamedNodeMap attributes the collection of the node’s attributes



1451
1452
1453
1454
1455
# File 'sample/xml.rb', line 1451

def attributes()
  ret = _getproperty(12, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#baseNameObject

BSTR baseName the base name of the node (nodename with the prefix stripped off)



1547
1548
1549
1550
1551
# File 'sample/xml.rb', line 1547

def baseName()
  ret = _getproperty(34, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#childNodesObject

IXMLDOMNodeList childNodes the collection of the node’s children



1411
1412
1413
1414
1415
# File 'sample/xml.rb', line 1411

def childNodes()
  ret = _getproperty(7, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#cloneNode(arg0) ⇒ Object

IXMLDOMNode cloneNode

BOOL arg0 --- deep [IN]


1640
1641
1642
1643
1644
# File 'sample/xml.rb', line 1640

def cloneNode(arg0)
  ret = _invoke(19, [arg0], [VT_BOOL])
  @lastargs = WIN32OLE::ARGV
  ret
end

#dataTypeObject

VARIANT dataType the data type of the node



1507
1508
1509
1510
1511
# File 'sample/xml.rb', line 1507

def dataType()
  ret = _getproperty(26, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#dataType=(arg0) ⇒ Object

VOID dataType the data type of the node



1587
1588
1589
1590
1591
# File 'sample/xml.rb', line 1587

def dataType=(arg0)
  ret = _setproperty(26, [arg0], [VT_VARIANT])
  @lastargs = WIN32OLE::ARGV
  ret
end

#definitionObject

IXMLDOMNode definition pointer to the definition of the node in the DTD or schema



1491
1492
1493
1494
1495
# File 'sample/xml.rb', line 1491

def definition()
  ret = _getproperty(23, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#firstChildObject

IXMLDOMNode firstChild first child of the node



1419
1420
1421
1422
1423
# File 'sample/xml.rb', line 1419

def firstChild()
  ret = _getproperty(8, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#getAttribute(arg0) ⇒ Object

VARIANT getAttribute look up the string value of an attribute by name

BSTR arg0 --- name [IN]


1686
1687
1688
1689
1690
# File 'sample/xml.rb', line 1686

def getAttribute(arg0)
  ret = _invoke(99, [arg0], [VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#getAttributeNode(arg0) ⇒ Object

IXMLDOMAttribute getAttributeNode look up the attribute node by name

BSTR arg0 --- name [IN]


1714
1715
1716
1717
1718
# File 'sample/xml.rb', line 1714

def getAttributeNode(arg0)
  ret = _invoke(102, [arg0], [VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#getElementsByTagName(arg0) ⇒ Object

IXMLDOMNodeList getElementsByTagName build a list of elements by name

BSTR arg0 --- tagName [IN]


1741
1742
1743
1744
1745
# File 'sample/xml.rb', line 1741

def getElementsByTagName(arg0)
  ret = _invoke(105, [arg0], [VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#hasChildNodesObject

BOOL hasChildNodes



1632
1633
1634
1635
1636
# File 'sample/xml.rb', line 1632

def hasChildNodes()
  ret = _invoke(17, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#insertBefore(arg0, arg1) ⇒ Object

IXMLDOMNode insertBefore insert a child node

IXMLDOMNode arg0 --- newChild [IN]
VARIANT arg1 --- refChild [IN]


1597
1598
1599
1600
1601
# File 'sample/xml.rb', line 1597

def insertBefore(arg0, arg1)
  ret = _invoke(13, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
  @lastargs = WIN32OLE::ARGV
  ret
end

#lastChildObject

IXMLDOMNode lastChild first child of the node



1427
1428
1429
1430
1431
# File 'sample/xml.rb', line 1427

def lastChild()
  ret = _getproperty(9, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#namespaceURIObject

BSTR namespaceURI the URI for the namespace applying to the node



1531
1532
1533
1534
1535
# File 'sample/xml.rb', line 1531

def namespaceURI()
  ret = _getproperty(32, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#nextSiblingObject

IXMLDOMNode nextSibling right sibling of the node



1443
1444
1445
1446
1447
# File 'sample/xml.rb', line 1443

def nextSibling()
  ret = _getproperty(11, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#nodeNameObject

BSTR nodeName name of the node



1379
1380
1381
1382
1383
# File 'sample/xml.rb', line 1379

def nodeName()
  ret = _getproperty(2, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#nodeTypeObject

DOMNodeType nodeType the node’s type



1395
1396
1397
1398
1399
# File 'sample/xml.rb', line 1395

def nodeType()
  ret = _getproperty(4, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#nodeTypedValueObject

VARIANT nodeTypedValue get the strongly typed value of the node



1499
1500
1501
1502
1503
# File 'sample/xml.rb', line 1499

def nodeTypedValue()
  ret = _getproperty(25, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#nodeTypedValue=(arg0) ⇒ Object

VOID nodeTypedValue get the strongly typed value of the node



1579
1580
1581
1582
1583
# File 'sample/xml.rb', line 1579

def nodeTypedValue=(arg0)
  ret = _setproperty(25, [arg0], [VT_VARIANT])
  @lastargs = WIN32OLE::ARGV
  ret
end

#nodeTypeStringObject

BSTR nodeTypeString the type of node in string form



1467
1468
1469
1470
1471
# File 'sample/xml.rb', line 1467

def nodeTypeString()
  ret = _getproperty(21, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#nodeValueObject

VARIANT nodeValue value stored in the node



1387
1388
1389
1390
1391
# File 'sample/xml.rb', line 1387

def nodeValue()
  ret = _getproperty(3, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#nodeValue=(arg0) ⇒ Object

VOID nodeValue value stored in the node



1563
1564
1565
1566
1567
# File 'sample/xml.rb', line 1563

def nodeValue=(arg0)
  ret = _setproperty(3, [arg0], [VT_VARIANT])
  @lastargs = WIN32OLE::ARGV
  ret
end

#normalizeObject

VOID normalize collapse all adjacent text nodes in sub-tree



1749
1750
1751
1752
1753
# File 'sample/xml.rb', line 1749

def normalize()
  ret = _invoke(106, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#ownerDocumentObject

IXMLDOMDocument ownerDocument document that contains the node



1459
1460
1461
1462
1463
# File 'sample/xml.rb', line 1459

def ownerDocument()
  ret = _getproperty(18, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#parentNodeObject

IXMLDOMNode parentNode parent of the node



1403
1404
1405
1406
1407
# File 'sample/xml.rb', line 1403

def parentNode()
  ret = _getproperty(6, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#parsedObject

BOOL parsed has sub-tree been completely parsed



1523
1524
1525
1526
1527
# File 'sample/xml.rb', line 1523

def parsed()
  ret = _getproperty(31, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#prefixObject

BSTR prefix the prefix for the namespace applying to the node



1539
1540
1541
1542
1543
# File 'sample/xml.rb', line 1539

def prefix()
  ret = _getproperty(33, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#previousSiblingObject

IXMLDOMNode previousSibling left sibling of the node



1435
1436
1437
1438
1439
# File 'sample/xml.rb', line 1435

def previousSibling()
  ret = _getproperty(10, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#removeAttribute(arg0) ⇒ Object

VOID removeAttribute remove an attribute by name

BSTR arg0 --- name [IN]


1705
1706
1707
1708
1709
# File 'sample/xml.rb', line 1705

def removeAttribute(arg0)
  ret = _invoke(101, [arg0], [VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#removeAttributeNode(arg0) ⇒ Object

IXMLDOMAttribute removeAttributeNode remove the specified attribute

IXMLDOMAttribute arg0 --- DOMAttribute [IN]


1732
1733
1734
1735
1736
# File 'sample/xml.rb', line 1732

def removeAttributeNode(arg0)
  ret = _invoke(104, [arg0], [VT_BYREF|VT_DISPATCH])
  @lastargs = WIN32OLE::ARGV
  ret
end

#removeChild(arg0) ⇒ Object

IXMLDOMNode removeChild remove a child node

IXMLDOMNode arg0 --- childNode [IN]


1616
1617
1618
1619
1620
# File 'sample/xml.rb', line 1616

def removeChild(arg0)
  ret = _invoke(15, [arg0], [VT_BYREF|VT_DISPATCH])
  @lastargs = WIN32OLE::ARGV
  ret
end

#replaceChild(arg0, arg1) ⇒ Object

IXMLDOMNode replaceChild replace a child node

IXMLDOMNode arg0 --- newChild [IN]
IXMLDOMNode arg1 --- oldChild [IN]


1607
1608
1609
1610
1611
# File 'sample/xml.rb', line 1607

def replaceChild(arg0, arg1)
  ret = _invoke(14, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_BYREF|VT_DISPATCH])
  @lastargs = WIN32OLE::ARGV
  ret
end

#selectNodes(arg0) ⇒ Object

IXMLDOMNodeList selectNodes execute query on the subtree

BSTR arg0 --- queryString [IN]


1658
1659
1660
1661
1662
# File 'sample/xml.rb', line 1658

def selectNodes(arg0)
  ret = _invoke(29, [arg0], [VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#selectSingleNode(arg0) ⇒ Object

IXMLDOMNode selectSingleNode execute query on the subtree

BSTR arg0 --- queryString [IN]


1667
1668
1669
1670
1671
# File 'sample/xml.rb', line 1667

def selectSingleNode(arg0)
  ret = _invoke(30, [arg0], [VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#setAttribute(arg0, arg1) ⇒ Object

VOID setAttribute set the string value of an attribute by name

BSTR arg0 --- name [IN]
VARIANT arg1 --- value [IN]


1696
1697
1698
1699
1700
# File 'sample/xml.rb', line 1696

def setAttribute(arg0, arg1)
  ret = _invoke(100, [arg0, arg1], [VT_BSTR, VT_VARIANT])
  @lastargs = WIN32OLE::ARGV
  ret
end

#setAttributeNode(arg0) ⇒ Object

IXMLDOMAttribute setAttributeNode set the specified attribute on the element

IXMLDOMAttribute arg0 --- DOMAttribute [IN]


1723
1724
1725
1726
1727
# File 'sample/xml.rb', line 1723

def setAttributeNode(arg0)
  ret = _invoke(103, [arg0], [VT_BYREF|VT_DISPATCH])
  @lastargs = WIN32OLE::ARGV
  ret
end

#specifiedObject

BOOL specified indicates whether node is a default value



1483
1484
1485
1486
1487
# File 'sample/xml.rb', line 1483

def specified()
  ret = _getproperty(22, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#tagNameObject

BSTR tagName get the tagName of the element



1555
1556
1557
1558
1559
# File 'sample/xml.rb', line 1555

def tagName()
  ret = _getproperty(97, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#textObject

BSTR text text content of the node and subtree



1475
1476
1477
1478
1479
# File 'sample/xml.rb', line 1475

def text()
  ret = _getproperty(24, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#text=(arg0) ⇒ Object

VOID text text content of the node and subtree



1571
1572
1573
1574
1575
# File 'sample/xml.rb', line 1571

def text=(arg0)
  ret = _setproperty(24, [arg0], [VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#transformNode(arg0) ⇒ Object

BSTR transformNode apply the stylesheet to the subtree

IXMLDOMNode arg0 --- stylesheet [IN]


1649
1650
1651
1652
1653
# File 'sample/xml.rb', line 1649

def transformNode(arg0)
  ret = _invoke(28, [arg0], [VT_BYREF|VT_DISPATCH])
  @lastargs = WIN32OLE::ARGV
  ret
end

#transformNodeToObject(arg0, arg1) ⇒ Object

VOID transformNodeToObject apply the stylesheet to the subtree, returning the result through a document or a stream

IXMLDOMNode arg0 --- stylesheet [IN]
VARIANT arg1 --- outputObject [IN]


1677
1678
1679
1680
1681
# File 'sample/xml.rb', line 1677

def transformNodeToObject(arg0, arg1)
  ret = _invoke(35, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
  @lastargs = WIN32OLE::ARGV
  ret
end

#xmlObject

BSTR xml return the XML source for the node and each of its descendants



1515
1516
1517
1518
1519
# File 'sample/xml.rb', line 1515

def xml()
  ret = _getproperty(27, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end