Class: Microsoft_XMLDOM_1_0

Inherits:
Object
  • Object
show all
Includes:
WIN32OLE::VARIANT
Defined in:
sample/xml.rb

Overview

W3C-DOM XML Document

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

Constructor Details

#initialize(obj = nil) ⇒ Microsoft_XMLDOM_1_0

Returns a new instance of Microsoft_XMLDOM_1_0.



5651
5652
5653
5654
5655
5656
5657
5658
5659
# File 'sample/xml.rb', line 5651

def initialize(obj = nil)
  @clsid = "{2933BF90-7B36-11D2-B20E-00C04F983E60}"
  @progid = "Microsoft.XMLDOM.1.0"
  if obj.nil?
    @dispatch = WIN32OLE.new(@progid)
  else
    @dispatch = obj
  end
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(cmd, *arg) ⇒ Object



5661
5662
5663
# File 'sample/xml.rb', line 5661

def method_missing(cmd, *arg)
  @dispatch.method_missing(cmd, *arg)
end

Instance Attribute Details

#clsidObject (readonly)

Returns the value of attribute clsid.



5648
5649
5650
# File 'sample/xml.rb', line 5648

def clsid
  @clsid
end

#dispatchObject (readonly)

Returns the value of attribute dispatch.



5647
5648
5649
# File 'sample/xml.rb', line 5647

def dispatch
  @dispatch
end

#lastargsObject (readonly)

Returns the value of attribute lastargs.



5646
5647
5648
# File 'sample/xml.rb', line 5646

def lastargs
  @lastargs
end

#progidObject (readonly)

Returns the value of attribute progid.



5649
5650
5651
# File 'sample/xml.rb', line 5649

def progid
  @progid
end

Instance Method Details

#abortObject

VOID abort abort an asynchronous download



6211
6212
6213
6214
6215
# File 'sample/xml.rb', line 6211

def abort()
  ret = @dispatch._invoke(62, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#appendChild(arg0) ⇒ Object

IXMLDOMNode appendChild append a child node

IXMLDOMNode arg0 --- newChild [IN]


6041
6042
6043
6044
6045
# File 'sample/xml.rb', line 6041

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

#asyncObject

BOOL async flag for asynchronous download



5891
5892
5893
5894
5895
# File 'sample/xml.rb', line 5891

def async()
  ret = @dispatch._getproperty(61, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#async=(arg0) ⇒ Object

VOID async flag for asynchronous download



5955
5956
5957
5958
5959
# File 'sample/xml.rb', line 5955

def async=(arg0)
  ret = @dispatch._setproperty(61, [arg0], [VT_BOOL])
  @lastargs = WIN32OLE::ARGV
  ret
end

#attributesObject

IXMLDOMNamedNodeMap attributes the collection of the node’s attributes



5739
5740
5741
5742
5743
# File 'sample/xml.rb', line 5739

def attributes()
  ret = @dispatch._getproperty(12, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#baseNameObject

BSTR baseName the base name of the node (nodename with the prefix stripped off)



5835
5836
5837
5838
5839
# File 'sample/xml.rb', line 5835

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

#childNodesObject

IXMLDOMNodeList childNodes the collection of the node’s children



5699
5700
5701
5702
5703
# File 'sample/xml.rb', line 5699

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

#cloneNode(arg0) ⇒ Object

IXMLDOMNode cloneNode

BOOL arg0 --- deep [IN]


6056
6057
6058
6059
6060
# File 'sample/xml.rb', line 6056

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

#createAttribute(arg0) ⇒ Object

IXMLDOMAttribute createAttribute create an attribute node

BSTR arg0 --- name [IN]


6156
6157
6158
6159
6160
# File 'sample/xml.rb', line 6156

def createAttribute(arg0)
  ret = @dispatch._invoke(47, [arg0], [VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#createCDATASection(arg0) ⇒ Object

IXMLDOMCDATASection createCDATASection create a CDATA section node

BSTR arg0 --- data [IN]


6137
6138
6139
6140
6141
# File 'sample/xml.rb', line 6137

def createCDATASection(arg0)
  ret = @dispatch._invoke(45, [arg0], [VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#createComment(arg0) ⇒ Object

IXMLDOMComment createComment create a comment node

BSTR arg0 --- data [IN]


6128
6129
6130
6131
6132
# File 'sample/xml.rb', line 6128

def createComment(arg0)
  ret = @dispatch._invoke(44, [arg0], [VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#createDocumentFragmentObject

IXMLDOMDocumentFragment createDocumentFragment create a DocumentFragment node



6110
6111
6112
6113
6114
# File 'sample/xml.rb', line 6110

def createDocumentFragment()
  ret = @dispatch._invoke(42, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#createElement(arg0) ⇒ Object

IXMLDOMElement createElement create an Element node

BSTR arg0 --- tagName [IN]


6102
6103
6104
6105
6106
# File 'sample/xml.rb', line 6102

def createElement(arg0)
  ret = @dispatch._invoke(41, [arg0], [VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#createEntityReference(arg0) ⇒ Object

IXMLDOMEntityReference createEntityReference create an entity reference node

BSTR arg0 --- name [IN]


6165
6166
6167
6168
6169
# File 'sample/xml.rb', line 6165

def createEntityReference(arg0)
  ret = @dispatch._invoke(49, [arg0], [VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#createNode(arg0, arg1, arg2) ⇒ Object

IXMLDOMNode createNode create a node of the specified node type and name

VARIANT arg0 --- type [IN]
BSTR arg1 --- name [IN]
BSTR arg2 --- namespaceURI [IN]


6185
6186
6187
6188
6189
# File 'sample/xml.rb', line 6185

def createNode(arg0, arg1, arg2)
  ret = @dispatch._invoke(54, [arg0, arg1, arg2], [VT_VARIANT, VT_BSTR, VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#createProcessingInstruction(arg0, arg1) ⇒ Object

IXMLDOMProcessingInstruction createProcessingInstruction create a processing instruction node

BSTR arg0 --- target [IN]
BSTR arg1 --- data [IN]


6147
6148
6149
6150
6151
# File 'sample/xml.rb', line 6147

def createProcessingInstruction(arg0, arg1)
  ret = @dispatch._invoke(46, [arg0, arg1], [VT_BSTR, VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#createTextNode(arg0) ⇒ Object

IXMLDOMText createTextNode create a text node

BSTR arg0 --- data [IN]


6119
6120
6121
6122
6123
# File 'sample/xml.rb', line 6119

def createTextNode(arg0)
  ret = @dispatch._invoke(43, [arg0], [VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#dataTypeObject

VARIANT dataType the data type of the node



5795
5796
5797
5798
5799
# File 'sample/xml.rb', line 5795

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

#dataType=(arg0) ⇒ Object

VOID dataType the data type of the node



5947
5948
5949
5950
5951
# File 'sample/xml.rb', line 5947

def dataType=(arg0)
  ret = @dispatch._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



5779
5780
5781
5782
5783
# File 'sample/xml.rb', line 5779

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

#doctypeObject

IXMLDOMDocumentType doctype node corresponding to the DOCTYPE



5843
5844
5845
5846
5847
# File 'sample/xml.rb', line 5843

def doctype()
  ret = @dispatch._getproperty(38, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#documentElementObject

IXMLDOMElement documentElement the root of the tree



5859
5860
5861
5862
5863
# File 'sample/xml.rb', line 5859

def documentElement()
  ret = @dispatch._getproperty(40, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#firstChildObject

IXMLDOMNode firstChild first child of the node



5707
5708
5709
5710
5711
# File 'sample/xml.rb', line 5707

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

#getElementsByTagName(arg0) ⇒ Object

IXMLDOMNodeList getElementsByTagName build a list of elements by name

BSTR arg0 --- tagName [IN]


6174
6175
6176
6177
6178
# File 'sample/xml.rb', line 6174

def getElementsByTagName(arg0)
  ret = @dispatch._invoke(50, [arg0], [VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#hasChildNodesObject

BOOL hasChildNodes



6048
6049
6050
6051
6052
# File 'sample/xml.rb', line 6048

def hasChildNodes()
  ret = @dispatch._invoke(17, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#implementationObject

IXMLDOMImplementation implementation info on this DOM implementation



5851
5852
5853
5854
5855
# File 'sample/xml.rb', line 5851

def implementation()
  ret = @dispatch._getproperty(39, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#insertBefore(arg0, arg1) ⇒ Object

IXMLDOMNode insertBefore insert a child node

IXMLDOMNode arg0 --- newChild [IN]
VARIANT arg1 --- refChild [IN]


6013
6014
6015
6016
6017
# File 'sample/xml.rb', line 6013

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

#lastChildObject

IXMLDOMNode lastChild first child of the node



5715
5716
5717
5718
5719
# File 'sample/xml.rb', line 5715

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

#load(arg0) ⇒ Object

BOOL load load document from the specified XML source

VARIANT arg0 --- xmlSource [IN]


6203
6204
6205
6206
6207
# File 'sample/xml.rb', line 6203

def load(arg0)
  ret = @dispatch._invoke(58, [arg0], [VT_VARIANT])
  @lastargs = WIN32OLE::ARGV
  ret
end

#loadXML(arg0) ⇒ Object

BOOL loadXML load the document from a string

BSTR arg0 --- bstrXML [IN]


6220
6221
6222
6223
6224
# File 'sample/xml.rb', line 6220

def loadXML(arg0)
  ret = @dispatch._invoke(63, [arg0], [VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#namespaceURIObject

BSTR namespaceURI the URI for the namespace applying to the node



5819
5820
5821
5822
5823
# File 'sample/xml.rb', line 5819

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

#nextSiblingObject

IXMLDOMNode nextSibling right sibling of the node



5731
5732
5733
5734
5735
# File 'sample/xml.rb', line 5731

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

#nodeFromID(arg0) ⇒ Object

IXMLDOMNode nodeFromID retrieve node from it’s ID

BSTR arg0 --- idString [IN]


6194
6195
6196
6197
6198
# File 'sample/xml.rb', line 6194

def nodeFromID(arg0)
  ret = @dispatch._invoke(56, [arg0], [VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#nodeNameObject

BSTR nodeName name of the node



5667
5668
5669
5670
5671
# File 'sample/xml.rb', line 5667

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

#nodeTypeObject

DOMNodeType nodeType the node’s type



5683
5684
5685
5686
5687
# File 'sample/xml.rb', line 5683

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

#nodeTypedValueObject

VARIANT nodeTypedValue get the strongly typed value of the node



5787
5788
5789
5790
5791
# File 'sample/xml.rb', line 5787

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

#nodeTypedValue=(arg0) ⇒ Object

VOID nodeTypedValue get the strongly typed value of the node



5939
5940
5941
5942
5943
# File 'sample/xml.rb', line 5939

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

#nodeTypeStringObject

BSTR nodeTypeString the type of node in string form



5755
5756
5757
5758
5759
# File 'sample/xml.rb', line 5755

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

#nodeValueObject

VARIANT nodeValue value stored in the node



5675
5676
5677
5678
5679
# File 'sample/xml.rb', line 5675

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

#nodeValue=(arg0) ⇒ Object

VOID nodeValue value stored in the node



5923
5924
5925
5926
5927
# File 'sample/xml.rb', line 5923

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

#ondataavailableObject

HRESULT ondataavailable EVENT in XMLDOMDocumentEvents



6236
6237
6238
6239
6240
# File 'sample/xml.rb', line 6236

def ondataavailable()
  ret = @dispatch._invoke(198, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#ondataavailable=(arg0) ⇒ Object

VOID ondataavailable register an ondataavailable event handler



5995
5996
5997
5998
5999
# File 'sample/xml.rb', line 5995

def ondataavailable=(arg0)
  ret = @dispatch._setproperty(69, [arg0], [VT_VARIANT])
  @lastargs = WIN32OLE::ARGV
  ret
end

#onreadystatechangeObject

HRESULT onreadystatechange EVENT in XMLDOMDocumentEvents



6243
6244
6245
6246
6247
# File 'sample/xml.rb', line 6243

def onreadystatechange()
  ret = @dispatch._invoke(-609, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#onreadystatechange=(arg0) ⇒ Object

VOID onreadystatechange register a readystatechange event handler



5987
5988
5989
5990
5991
# File 'sample/xml.rb', line 5987

def onreadystatechange=(arg0)
  ret = @dispatch._setproperty(68, [arg0], [VT_VARIANT])
  @lastargs = WIN32OLE::ARGV
  ret
end

#ontransformnode=(arg0) ⇒ Object

VOID ontransformnode register an ontransformnode event handler



6003
6004
6005
6006
6007
# File 'sample/xml.rb', line 6003

def ontransformnode=(arg0)
  ret = @dispatch._setproperty(70, [arg0], [VT_VARIANT])
  @lastargs = WIN32OLE::ARGV
  ret
end

#ownerDocumentObject

IXMLDOMDocument ownerDocument document that contains the node



5747
5748
5749
5750
5751
# File 'sample/xml.rb', line 5747

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

#parentNodeObject

IXMLDOMNode parentNode parent of the node



5691
5692
5693
5694
5695
# File 'sample/xml.rb', line 5691

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

#parsedObject

BOOL parsed has sub-tree been completely parsed



5811
5812
5813
5814
5815
# File 'sample/xml.rb', line 5811

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

#parseErrorObject

IXMLDOMParseError parseError get the last parser error



5875
5876
5877
5878
5879
# File 'sample/xml.rb', line 5875

def parseError()
  ret = @dispatch._getproperty(59, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#prefixObject

BSTR prefix the prefix for the namespace applying to the node



5827
5828
5829
5830
5831
# File 'sample/xml.rb', line 5827

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

#preserveWhiteSpaceObject

BOOL preserveWhiteSpace indicates whether the parser preserves whitespace



5915
5916
5917
5918
5919
# File 'sample/xml.rb', line 5915

def preserveWhiteSpace()
  ret = @dispatch._getproperty(67, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#preserveWhiteSpace=(arg0) ⇒ Object

VOID preserveWhiteSpace indicates whether the parser preserves whitespace



5979
5980
5981
5982
5983
# File 'sample/xml.rb', line 5979

def preserveWhiteSpace=(arg0)
  ret = @dispatch._setproperty(67, [arg0], [VT_BOOL])
  @lastargs = WIN32OLE::ARGV
  ret
end

#previousSiblingObject

IXMLDOMNode previousSibling left sibling of the node



5723
5724
5725
5726
5727
# File 'sample/xml.rb', line 5723

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

#readyStateObject

I4 readyState get the state of the XML document



5867
5868
5869
5870
5871
# File 'sample/xml.rb', line 5867

def readyState()
  ret = @dispatch._getproperty(-525, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#removeChild(arg0) ⇒ Object

IXMLDOMNode removeChild remove a child node

IXMLDOMNode arg0 --- childNode [IN]


6032
6033
6034
6035
6036
# File 'sample/xml.rb', line 6032

def removeChild(arg0)
  ret = @dispatch._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]


6023
6024
6025
6026
6027
# File 'sample/xml.rb', line 6023

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

#resolveExternalsObject

BOOL resolveExternals indicates whether the parser resolves references to external DTD/Entities/Schema



5907
5908
5909
5910
5911
# File 'sample/xml.rb', line 5907

def resolveExternals()
  ret = @dispatch._getproperty(66, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#resolveExternals=(arg0) ⇒ Object

VOID resolveExternals indicates whether the parser resolves references to external DTD/Entities/Schema



5971
5972
5973
5974
5975
# File 'sample/xml.rb', line 5971

def resolveExternals=(arg0)
  ret = @dispatch._setproperty(66, [arg0], [VT_BOOL])
  @lastargs = WIN32OLE::ARGV
  ret
end

#save(arg0) ⇒ Object

VOID save save the document to a specified desination

VARIANT arg0 --- desination [IN]


6229
6230
6231
6232
6233
# File 'sample/xml.rb', line 6229

def save(arg0)
  ret = @dispatch._invoke(64, [arg0], [VT_VARIANT])
  @lastargs = WIN32OLE::ARGV
  ret
end

#selectNodes(arg0) ⇒ Object

IXMLDOMNodeList selectNodes execute query on the subtree

BSTR arg0 --- queryString [IN]


6074
6075
6076
6077
6078
# File 'sample/xml.rb', line 6074

def selectNodes(arg0)
  ret = @dispatch._invoke(29, [arg0], [VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#selectSingleNode(arg0) ⇒ Object

IXMLDOMNode selectSingleNode execute query on the subtree

BSTR arg0 --- queryString [IN]


6083
6084
6085
6086
6087
# File 'sample/xml.rb', line 6083

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

#specifiedObject

BOOL specified indicates whether node is a default value



5771
5772
5773
5774
5775
# File 'sample/xml.rb', line 5771

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

#textObject

BSTR text text content of the node and subtree



5763
5764
5765
5766
5767
# File 'sample/xml.rb', line 5763

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

#text=(arg0) ⇒ Object

VOID text text content of the node and subtree



5931
5932
5933
5934
5935
# File 'sample/xml.rb', line 5931

def text=(arg0)
  ret = @dispatch._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]


6065
6066
6067
6068
6069
# File 'sample/xml.rb', line 6065

def transformNode(arg0)
  ret = @dispatch._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]


6093
6094
6095
6096
6097
# File 'sample/xml.rb', line 6093

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

#urlObject

BSTR url get the URL for the loaded XML document



5883
5884
5885
5886
5887
# File 'sample/xml.rb', line 5883

def url()
  ret = @dispatch._getproperty(60, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#validateOnParseObject

BOOL validateOnParse indicates whether the parser performs validation



5899
5900
5901
5902
5903
# File 'sample/xml.rb', line 5899

def validateOnParse()
  ret = @dispatch._getproperty(65, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#validateOnParse=(arg0) ⇒ Object

VOID validateOnParse indicates whether the parser performs validation



5963
5964
5965
5966
5967
# File 'sample/xml.rb', line 5963

def validateOnParse=(arg0)
  ret = @dispatch._setproperty(65, [arg0], [VT_BOOL])
  @lastargs = WIN32OLE::ARGV
  ret
end

#xmlObject

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



5803
5804
5805
5806
5807
# File 'sample/xml.rb', line 5803

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