Module: IXMLDOMCDATASection

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



3534
3535
3536
# File 'sample/xml.rb', line 3534

def lastargs
  @lastargs
end

Instance Method Details

#appendChild(arg0) ⇒ Object

IXMLDOMNode appendChild append a child node

IXMLDOMNode arg0 --- newChild [IN]


3800
3801
3802
3803
3804
# File 'sample/xml.rb', line 3800

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

#appendData(arg0) ⇒ Object

VOID appendData append string to value

BSTR arg0 --- data [IN]


3871
3872
3873
3874
3875
# File 'sample/xml.rb', line 3871

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

#attributesObject

IXMLDOMNamedNodeMap attributes the collection of the node’s attributes



3610
3611
3612
3613
3614
# File 'sample/xml.rb', line 3610

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)



3706
3707
3708
3709
3710
# File 'sample/xml.rb', line 3706

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

#childNodesObject

IXMLDOMNodeList childNodes the collection of the node’s children



3570
3571
3572
3573
3574
# File 'sample/xml.rb', line 3570

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

#cloneNode(arg0) ⇒ Object

IXMLDOMNode cloneNode

BOOL arg0 --- deep [IN]


3815
3816
3817
3818
3819
# File 'sample/xml.rb', line 3815

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

#dataObject

BSTR data value of the node



3714
3715
3716
3717
3718
# File 'sample/xml.rb', line 3714

def data()
  ret = _getproperty(109, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#data=(arg0) ⇒ Object

VOID data value of the node



3762
3763
3764
3765
3766
# File 'sample/xml.rb', line 3762

def data=(arg0)
  ret = _setproperty(109, [arg0], [VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#dataTypeObject

VARIANT dataType the data type of the node



3666
3667
3668
3669
3670
# File 'sample/xml.rb', line 3666

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

#dataType=(arg0) ⇒ Object

VOID dataType the data type of the node



3754
3755
3756
3757
3758
# File 'sample/xml.rb', line 3754

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



3650
3651
3652
3653
3654
# File 'sample/xml.rb', line 3650

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

#deleteData(arg0, arg1) ⇒ Object

VOID deleteData delete string within the value

I4 arg0 --- offset [IN]
I4 arg1 --- count [IN]


3891
3892
3893
3894
3895
# File 'sample/xml.rb', line 3891

def deleteData(arg0, arg1)
  ret = _invoke(114, [arg0, arg1], [VT_I4, VT_I4])
  @lastargs = WIN32OLE::ARGV
  ret
end

#firstChildObject

IXMLDOMNode firstChild first child of the node



3578
3579
3580
3581
3582
# File 'sample/xml.rb', line 3578

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

#hasChildNodesObject

BOOL hasChildNodes



3807
3808
3809
3810
3811
# File 'sample/xml.rb', line 3807

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]


3772
3773
3774
3775
3776
# File 'sample/xml.rb', line 3772

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

#insertData(arg0, arg1) ⇒ Object

VOID insertData insert string into value

I4 arg0 --- offset [IN]
BSTR arg1 --- data [IN]


3881
3882
3883
3884
3885
# File 'sample/xml.rb', line 3881

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

#lastChildObject

IXMLDOMNode lastChild first child of the node



3586
3587
3588
3589
3590
# File 'sample/xml.rb', line 3586

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

#lengthObject

I4 length number of characters in value



3722
3723
3724
3725
3726
# File 'sample/xml.rb', line 3722

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

#namespaceURIObject

BSTR namespaceURI the URI for the namespace applying to the node



3690
3691
3692
3693
3694
# File 'sample/xml.rb', line 3690

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

#nextSiblingObject

IXMLDOMNode nextSibling right sibling of the node



3602
3603
3604
3605
3606
# File 'sample/xml.rb', line 3602

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

#nodeNameObject

BSTR nodeName name of the node



3538
3539
3540
3541
3542
# File 'sample/xml.rb', line 3538

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

#nodeTypeObject

DOMNodeType nodeType the node’s type



3554
3555
3556
3557
3558
# File 'sample/xml.rb', line 3554

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

#nodeTypedValueObject

VARIANT nodeTypedValue get the strongly typed value of the node



3658
3659
3660
3661
3662
# File 'sample/xml.rb', line 3658

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

#nodeTypedValue=(arg0) ⇒ Object

VOID nodeTypedValue get the strongly typed value of the node



3746
3747
3748
3749
3750
# File 'sample/xml.rb', line 3746

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

#nodeTypeStringObject

BSTR nodeTypeString the type of node in string form



3626
3627
3628
3629
3630
# File 'sample/xml.rb', line 3626

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

#nodeValueObject

VARIANT nodeValue value stored in the node



3546
3547
3548
3549
3550
# File 'sample/xml.rb', line 3546

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

#nodeValue=(arg0) ⇒ Object

VOID nodeValue value stored in the node



3730
3731
3732
3733
3734
# File 'sample/xml.rb', line 3730

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

#ownerDocumentObject

IXMLDOMDocument ownerDocument document that contains the node



3618
3619
3620
3621
3622
# File 'sample/xml.rb', line 3618

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

#parentNodeObject

IXMLDOMNode parentNode parent of the node



3562
3563
3564
3565
3566
# File 'sample/xml.rb', line 3562

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

#parsedObject

BOOL parsed has sub-tree been completely parsed



3682
3683
3684
3685
3686
# File 'sample/xml.rb', line 3682

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

#prefixObject

BSTR prefix the prefix for the namespace applying to the node



3698
3699
3700
3701
3702
# File 'sample/xml.rb', line 3698

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

#previousSiblingObject

IXMLDOMNode previousSibling left sibling of the node



3594
3595
3596
3597
3598
# File 'sample/xml.rb', line 3594

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

#removeChild(arg0) ⇒ Object

IXMLDOMNode removeChild remove a child node

IXMLDOMNode arg0 --- childNode [IN]


3791
3792
3793
3794
3795
# File 'sample/xml.rb', line 3791

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]


3782
3783
3784
3785
3786
# File 'sample/xml.rb', line 3782

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

#replaceData(arg0, arg1, arg2) ⇒ Object

VOID replaceData replace string within the value

I4 arg0 --- offset [IN]
I4 arg1 --- count [IN]
BSTR arg2 --- data [IN]


3902
3903
3904
3905
3906
# File 'sample/xml.rb', line 3902

def replaceData(arg0, arg1, arg2)
  ret = _invoke(115, [arg0, arg1, arg2], [VT_I4, VT_I4, VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#selectNodes(arg0) ⇒ Object

IXMLDOMNodeList selectNodes execute query on the subtree

BSTR arg0 --- queryString [IN]


3833
3834
3835
3836
3837
# File 'sample/xml.rb', line 3833

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]


3842
3843
3844
3845
3846
# File 'sample/xml.rb', line 3842

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

#specifiedObject

BOOL specified indicates whether node is a default value



3642
3643
3644
3645
3646
# File 'sample/xml.rb', line 3642

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

#splitText(arg0) ⇒ Object

IXMLDOMText splitText split the text node into two text nodes at the position specified

I4 arg0 --- offset [IN]


3911
3912
3913
3914
3915
# File 'sample/xml.rb', line 3911

def splitText(arg0)
  ret = _invoke(123, [arg0], [VT_I4])
  @lastargs = WIN32OLE::ARGV
  ret
end

#substringData(arg0, arg1) ⇒ Object

BSTR substringData retrieve substring of value

I4 arg0 --- offset [IN]
I4 arg1 --- count [IN]


3862
3863
3864
3865
3866
# File 'sample/xml.rb', line 3862

def substringData(arg0, arg1)
  ret = _invoke(111, [arg0, arg1], [VT_I4, VT_I4])
  @lastargs = WIN32OLE::ARGV
  ret
end

#textObject

BSTR text text content of the node and subtree



3634
3635
3636
3637
3638
# File 'sample/xml.rb', line 3634

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

#text=(arg0) ⇒ Object

VOID text text content of the node and subtree



3738
3739
3740
3741
3742
# File 'sample/xml.rb', line 3738

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]


3824
3825
3826
3827
3828
# File 'sample/xml.rb', line 3824

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]


3852
3853
3854
3855
3856
# File 'sample/xml.rb', line 3852

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



3674
3675
3676
3677
3678
# File 'sample/xml.rb', line 3674

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