Module: IXMLDOMNamedNodeMap

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.



387
388
389
# File 'sample/xml.rb', line 387

def lastargs
  @lastargs
end

Instance Method Details

#getNamedItem(arg0) ⇒ Object

IXMLDOMNode getNamedItem lookup item by name

BSTR arg0 --- name [IN]


407
408
409
410
411
# File 'sample/xml.rb', line 407

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

#getQualifiedItem(arg0, arg1) ⇒ Object

IXMLDOMNode getQualifiedItem lookup the item by name and namespace

BSTR arg0 --- baseName [IN]
BSTR arg1 --- namespaceURI [IN]


435
436
437
438
439
# File 'sample/xml.rb', line 435

def getQualifiedItem(arg0, arg1)
  ret = _invoke(87, [arg0, arg1], [VT_BSTR, VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#itemObject

PTR item collection of nodes

I4 arg0 --- index [IN]


400
401
402
# File 'sample/xml.rb', line 400

def item
  OLEProperty.new(self, 0, [VT_I4], [VT_I4, VT_BYREF|VT_DISPATCH])
end

#lengthObject

I4 length number of nodes in the collection



391
392
393
394
395
# File 'sample/xml.rb', line 391

def length()
  ret = _getproperty(74, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#nextNodeObject

IXMLDOMNode nextNode get next node from iterator



453
454
455
456
457
# File 'sample/xml.rb', line 453

def nextNode()
  ret = _invoke(89, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#removeNamedItem(arg0) ⇒ Object

IXMLDOMNode removeNamedItem remove item by name

BSTR arg0 --- name [IN]


425
426
427
428
429
# File 'sample/xml.rb', line 425

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

#removeQualifiedItem(arg0, arg1) ⇒ Object

IXMLDOMNode removeQualifiedItem remove the item by name and namespace

BSTR arg0 --- baseName [IN]
BSTR arg1 --- namespaceURI [IN]


445
446
447
448
449
# File 'sample/xml.rb', line 445

def removeQualifiedItem(arg0, arg1)
  ret = _invoke(88, [arg0, arg1], [VT_BSTR, VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#resetObject

VOID reset reset the position of iterator



461
462
463
464
465
# File 'sample/xml.rb', line 461

def reset()
  ret = _invoke(90, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#setNamedItem(arg0) ⇒ Object

IXMLDOMNode setNamedItem set item by name

IXMLDOMNode arg0 --- newItem [IN]


416
417
418
419
420
# File 'sample/xml.rb', line 416

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