Module: IXTLRuntime

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

Overview

XTL runtime object

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



5262
5263
5264
# File 'sample/xml.rb', line 5262

def lastargs
  @lastargs
end

Instance Method Details

#absoluteChildNumber(arg0) ⇒ Object

I4 absoluteChildNumber

IXMLDOMNode arg0 --- pNode [IN]


5597
5598
5599
5600
5601
# File 'sample/xml.rb', line 5597

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

#ancestorChildNumber(arg0, arg1) ⇒ Object

I4 ancestorChildNumber

BSTR arg0 --- bstrNodeName [IN]
IXMLDOMNode arg1 --- pNode [IN]


5589
5590
5591
5592
5593
# File 'sample/xml.rb', line 5589

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

#appendChild(arg0) ⇒ Object

IXMLDOMNode appendChild append a child node

IXMLDOMNode arg0 --- newChild [IN]


5504
5505
5506
5507
5508
# File 'sample/xml.rb', line 5504

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



5338
5339
5340
5341
5342
# File 'sample/xml.rb', line 5338

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)



5434
5435
5436
5437
5438
# File 'sample/xml.rb', line 5434

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

#childNodesObject

IXMLDOMNodeList childNodes the collection of the node’s children



5298
5299
5300
5301
5302
# File 'sample/xml.rb', line 5298

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

#childNumber(arg0) ⇒ Object

I4 childNumber

IXMLDOMNode arg0 --- pNode [IN]


5580
5581
5582
5583
5584
# File 'sample/xml.rb', line 5580

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

#cloneNode(arg0) ⇒ Object

IXMLDOMNode cloneNode

BOOL arg0 --- deep [IN]


5519
5520
5521
5522
5523
# File 'sample/xml.rb', line 5519

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

#dataTypeObject

VARIANT dataType the data type of the node



5394
5395
5396
5397
5398
# File 'sample/xml.rb', line 5394

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

#dataType=(arg0) ⇒ Object

VOID dataType the data type of the node



5466
5467
5468
5469
5470
# File 'sample/xml.rb', line 5466

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



5378
5379
5380
5381
5382
# File 'sample/xml.rb', line 5378

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

#depth(arg0) ⇒ Object

I4 depth

IXMLDOMNode arg0 --- pNode [IN]


5572
5573
5574
5575
5576
# File 'sample/xml.rb', line 5572

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

#firstChildObject

IXMLDOMNode firstChild first child of the node



5306
5307
5308
5309
5310
# File 'sample/xml.rb', line 5306

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

#formatDate(arg0, arg1, arg2 = nil) ⇒ Object

BSTR formatDate

VARIANT arg0 --- varDate [IN]
BSTR arg1 --- bstrFormat [IN]
VARIANT arg2 --- varDestLocale [IN]


5625
5626
5627
5628
5629
# File 'sample/xml.rb', line 5625

def formatDate(arg0, arg1, arg2=nil)
  ret = _invoke(194, [arg0, arg1, arg2], [VT_VARIANT, VT_BSTR, VT_VARIANT])
  @lastargs = WIN32OLE::ARGV
  ret
end

#formatIndex(arg0, arg1) ⇒ Object

BSTR formatIndex

I4 arg0 --- lIndex [IN]
BSTR arg1 --- bstrFormat [IN]


5606
5607
5608
5609
5610
# File 'sample/xml.rb', line 5606

def formatIndex(arg0, arg1)
  ret = _invoke(192, [arg0, arg1], [VT_I4, VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#formatNumber(arg0, arg1) ⇒ Object

BSTR formatNumber

R8 arg0 --- dblNumber [IN]
BSTR arg1 --- bstrFormat [IN]


5615
5616
5617
5618
5619
# File 'sample/xml.rb', line 5615

def formatNumber(arg0, arg1)
  ret = _invoke(193, [arg0, arg1], [VT_R8, VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#formatTime(arg0, arg1, arg2 = nil) ⇒ Object

BSTR formatTime

VARIANT arg0 --- varTime [IN]
BSTR arg1 --- bstrFormat [IN]
VARIANT arg2 --- varDestLocale [IN]


5635
5636
5637
5638
5639
# File 'sample/xml.rb', line 5635

def formatTime(arg0, arg1, arg2=nil)
  ret = _invoke(195, [arg0, arg1, arg2], [VT_VARIANT, VT_BSTR, VT_VARIANT])
  @lastargs = WIN32OLE::ARGV
  ret
end

#hasChildNodesObject

BOOL hasChildNodes



5511
5512
5513
5514
5515
# File 'sample/xml.rb', line 5511

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]


5476
5477
5478
5479
5480
# File 'sample/xml.rb', line 5476

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



5314
5315
5316
5317
5318
# File 'sample/xml.rb', line 5314

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

#namespaceURIObject

BSTR namespaceURI the URI for the namespace applying to the node



5418
5419
5420
5421
5422
# File 'sample/xml.rb', line 5418

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

#nextSiblingObject

IXMLDOMNode nextSibling right sibling of the node



5330
5331
5332
5333
5334
# File 'sample/xml.rb', line 5330

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

#nodeNameObject

BSTR nodeName name of the node



5266
5267
5268
5269
5270
# File 'sample/xml.rb', line 5266

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

#nodeTypeObject

DOMNodeType nodeType the node’s type



5282
5283
5284
5285
5286
# File 'sample/xml.rb', line 5282

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

#nodeTypedValueObject

VARIANT nodeTypedValue get the strongly typed value of the node



5386
5387
5388
5389
5390
# File 'sample/xml.rb', line 5386

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

#nodeTypedValue=(arg0) ⇒ Object

VOID nodeTypedValue get the strongly typed value of the node



5458
5459
5460
5461
5462
# File 'sample/xml.rb', line 5458

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

#nodeTypeStringObject

BSTR nodeTypeString the type of node in string form



5354
5355
5356
5357
5358
# File 'sample/xml.rb', line 5354

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

#nodeValueObject

VARIANT nodeValue value stored in the node



5274
5275
5276
5277
5278
# File 'sample/xml.rb', line 5274

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

#nodeValue=(arg0) ⇒ Object

VOID nodeValue value stored in the node



5442
5443
5444
5445
5446
# File 'sample/xml.rb', line 5442

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

#ownerDocumentObject

IXMLDOMDocument ownerDocument document that contains the node



5346
5347
5348
5349
5350
# File 'sample/xml.rb', line 5346

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

#parentNodeObject

IXMLDOMNode parentNode parent of the node



5290
5291
5292
5293
5294
# File 'sample/xml.rb', line 5290

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

#parsedObject

BOOL parsed has sub-tree been completely parsed



5410
5411
5412
5413
5414
# File 'sample/xml.rb', line 5410

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

#prefixObject

BSTR prefix the prefix for the namespace applying to the node



5426
5427
5428
5429
5430
# File 'sample/xml.rb', line 5426

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

#previousSiblingObject

IXMLDOMNode previousSibling left sibling of the node



5322
5323
5324
5325
5326
# File 'sample/xml.rb', line 5322

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

#removeChild(arg0) ⇒ Object

IXMLDOMNode removeChild remove a child node

IXMLDOMNode arg0 --- childNode [IN]


5495
5496
5497
5498
5499
# File 'sample/xml.rb', line 5495

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]


5486
5487
5488
5489
5490
# File 'sample/xml.rb', line 5486

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]


5537
5538
5539
5540
5541
# File 'sample/xml.rb', line 5537

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]


5546
5547
5548
5549
5550
# File 'sample/xml.rb', line 5546

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

#specifiedObject

BOOL specified indicates whether node is a default value



5370
5371
5372
5373
5374
# File 'sample/xml.rb', line 5370

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

#textObject

BSTR text text content of the node and subtree



5362
5363
5364
5365
5366
# File 'sample/xml.rb', line 5362

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

#text=(arg0) ⇒ Object

VOID text text content of the node and subtree



5450
5451
5452
5453
5454
# File 'sample/xml.rb', line 5450

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]


5528
5529
5530
5531
5532
# File 'sample/xml.rb', line 5528

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]


5556
5557
5558
5559
5560
# File 'sample/xml.rb', line 5556

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

#uniqueID(arg0) ⇒ Object

I4 uniqueID

IXMLDOMNode arg0 --- pNode [IN]


5564
5565
5566
5567
5568
# File 'sample/xml.rb', line 5564

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

#xmlObject

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



5402
5403
5404
5405
5406
# File 'sample/xml.rb', line 5402

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