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


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

def lastargs
  @lastargs
end

Instance Method Details

#getNamedItem(arg0) ⇒ Object

IXMLDOMNode getNamedItem lookup item by name

BSTR arg0 --- name [IN]

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

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]

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

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]

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

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

#lengthObject

I4 length number of nodes in the collection


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

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

#nextNodeObject

IXMLDOMNode nextNode get next node from iterator


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

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

#removeNamedItem(arg0) ⇒ Object

IXMLDOMNode removeNamedItem remove item by name

BSTR arg0 --- name [IN]

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

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]

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

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


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

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

#setNamedItem(arg0) ⇒ Object

IXMLDOMNode setNamedItem set item by name

IXMLDOMNode arg0 --- newItem [IN]

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

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