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.



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

def lastargs
  @lastargs
end

Instance Method Details

#absoluteChildNumber(arg0) ⇒ Object

I4 absoluteChildNumber

IXMLDOMNode arg0 --- pNode [IN]


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

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]


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

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]


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

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



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

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)



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

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

#childNodesObject

IXMLDOMNodeList childNodes the collection of the node’s children



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

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

#childNumber(arg0) ⇒ Object

I4 childNumber

IXMLDOMNode arg0 --- pNode [IN]


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

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]


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

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

#dataTypeObject

VARIANT dataType the data type of the node



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

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

#dataType=(arg0) ⇒ Object

VOID dataType the data type of the node



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

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



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

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

#depth(arg0) ⇒ Object

I4 depth

IXMLDOMNode arg0 --- pNode [IN]


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

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

#firstChildObject

IXMLDOMNode firstChild first child of the node



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

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]


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

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]


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

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]


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

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]


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

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



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

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]


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

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



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

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

#namespaceURIObject

BSTR namespaceURI the URI for the namespace applying to the node



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

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

#nextSiblingObject

IXMLDOMNode nextSibling right sibling of the node



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

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

#nodeNameObject

BSTR nodeName name of the node



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

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

#nodeTypeObject

DOMNodeType nodeType the node’s type



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

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

#nodeTypedValueObject

VARIANT nodeTypedValue get the strongly typed value of the node



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

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

#nodeTypedValue=(arg0) ⇒ Object

VOID nodeTypedValue get the strongly typed value of the node



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

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

#nodeTypeStringObject

BSTR nodeTypeString the type of node in string form



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

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

#nodeValueObject

VARIANT nodeValue value stored in the node



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

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

#nodeValue=(arg0) ⇒ Object

VOID nodeValue value stored in the node



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

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

#ownerDocumentObject

IXMLDOMDocument ownerDocument document that contains the node



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

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

#parentNodeObject

IXMLDOMNode parentNode parent of the node



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

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

#parsedObject

BOOL parsed has sub-tree been completely parsed



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

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

#prefixObject

BSTR prefix the prefix for the namespace applying to the node



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

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

#previousSiblingObject

IXMLDOMNode previousSibling left sibling of the node



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

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

#removeChild(arg0) ⇒ Object

IXMLDOMNode removeChild remove a child node

IXMLDOMNode arg0 --- childNode [IN]


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

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]


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

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]


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

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]


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

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

#specifiedObject

BOOL specified indicates whether node is a default value



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

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

#textObject

BSTR text text content of the node and subtree



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

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

#text=(arg0) ⇒ Object

VOID text text content of the node and subtree



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

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]


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

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]


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

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]


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

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



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

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