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



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

def lastargs
  @lastargs
end

Instance Method Details

#appendChild(arg0) ⇒ Object

IXMLDOMNode appendChild append a child node

IXMLDOMNode arg0 --- newChild [IN]


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

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



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

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)



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

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

#childNodesObject

IXMLDOMNodeList childNodes the collection of the node’s children



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

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

#cloneNode(arg0) ⇒ Object

IXMLDOMNode cloneNode

BOOL arg0 --- deep [IN]


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

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

#dataTypeObject

VARIANT dataType the data type of the node



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

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

#dataType=(arg0) ⇒ Object

VOID dataType the data type of the node



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

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



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

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

#firstChildObject

IXMLDOMNode firstChild first child of the node



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

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]


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

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]


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

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]


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

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

#hasChildNodesObject

BOOL hasChildNodes



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

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]


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

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



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

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

#namespaceURIObject

BSTR namespaceURI the URI for the namespace applying to the node



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

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

#nextSiblingObject

IXMLDOMNode nextSibling right sibling of the node



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

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

#nodeNameObject

BSTR nodeName name of the node



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

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

#nodeTypeObject

DOMNodeType nodeType the node’s type



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

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

#nodeTypedValueObject

VARIANT nodeTypedValue get the strongly typed value of the node



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

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

#nodeTypedValue=(arg0) ⇒ Object

VOID nodeTypedValue get the strongly typed value of the node



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

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

#nodeTypeStringObject

BSTR nodeTypeString the type of node in string form



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

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

#nodeValueObject

VARIANT nodeValue value stored in the node



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

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

#nodeValue=(arg0) ⇒ Object

VOID nodeValue value stored in the node



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

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



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

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

#ownerDocumentObject

IXMLDOMDocument ownerDocument document that contains the node



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

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

#parentNodeObject

IXMLDOMNode parentNode parent of the node



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

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

#parsedObject

BOOL parsed has sub-tree been completely parsed



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

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

#prefixObject

BSTR prefix the prefix for the namespace applying to the node



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

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

#previousSiblingObject

IXMLDOMNode previousSibling left sibling of the node



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

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

#removeAttribute(arg0) ⇒ Object

VOID removeAttribute remove an attribute by name

BSTR arg0 --- name [IN]


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

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]


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

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]


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

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]


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

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]


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

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]


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

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]


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

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]


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

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



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

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

#tagNameObject

BSTR tagName get the tagName of the element



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

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

#textObject

BSTR text text content of the node and subtree



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

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

#text=(arg0) ⇒ Object

VOID text text content of the node and subtree



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

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]


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

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]


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

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



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

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