Module: IXMLDOMNotation

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

#lastargs ⇒ Object (readonly)

Returns the value of attribute lastargs.



4615
4616
4617
# File 'sample/xml.rb', line 4615

def lastargs
  @lastargs
end

Instance Method Details

#appendChild(arg0) ⇒ Object

IXMLDOMNode appendChild append a child node IXMLDOMNode arg0 --- newChild [IN]



4873
4874
4875
4876
4877
# File 'sample/xml.rb', line 4873

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

#attributes ⇒ Object

IXMLDOMNamedNodeMap attributes the collection of the node's attributes



4691
4692
4693
4694
4695
# File 'sample/xml.rb', line 4691

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

#baseName ⇒ Object

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



4787
4788
4789
4790
4791
# File 'sample/xml.rb', line 4787

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

#childNodes ⇒ Object

IXMLDOMNodeList childNodes the collection of the node's children



4651
4652
4653
4654
4655
# File 'sample/xml.rb', line 4651

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

#cloneNode(arg0) ⇒ Object

IXMLDOMNode cloneNode BOOL arg0 --- deep [IN]



4888
4889
4890
4891
4892
# File 'sample/xml.rb', line 4888

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

#dataType ⇒ Object

VARIANT dataType the data type of the node



4747
4748
4749
4750
4751
# File 'sample/xml.rb', line 4747

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

#dataType=(arg0) ⇒ Object

VOID dataType the data type of the node



4835
4836
4837
4838
4839
# File 'sample/xml.rb', line 4835

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

#definition ⇒ Object

IXMLDOMNode definition pointer to the definition of the node in the DTD or schema



4731
4732
4733
4734
4735
# File 'sample/xml.rb', line 4731

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

#firstChild ⇒ Object

IXMLDOMNode firstChild first child of the node



4659
4660
4661
4662
4663
# File 'sample/xml.rb', line 4659

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

#hasChildNodes ⇒ Object

BOOL hasChildNodes



4880
4881
4882
4883
4884
# File 'sample/xml.rb', line 4880

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]



4845
4846
4847
4848
4849
# File 'sample/xml.rb', line 4845

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

#lastChild ⇒ Object

IXMLDOMNode lastChild first child of the node



4667
4668
4669
4670
4671
# File 'sample/xml.rb', line 4667

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

#namespaceURI ⇒ Object

BSTR namespaceURI the URI for the namespace applying to the node



4771
4772
4773
4774
4775
# File 'sample/xml.rb', line 4771

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

#nextSibling ⇒ Object

IXMLDOMNode nextSibling right sibling of the node



4683
4684
4685
4686
4687
# File 'sample/xml.rb', line 4683

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

#nodeName ⇒ Object

BSTR nodeName name of the node



4619
4620
4621
4622
4623
# File 'sample/xml.rb', line 4619

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

#nodeType ⇒ Object

DOMNodeType nodeType the node's type



4635
4636
4637
4638
4639
# File 'sample/xml.rb', line 4635

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

#nodeTypedValue ⇒ Object

VARIANT nodeTypedValue get the strongly typed value of the node



4739
4740
4741
4742
4743
# File 'sample/xml.rb', line 4739

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

#nodeTypedValue=(arg0) ⇒ Object

VOID nodeTypedValue get the strongly typed value of the node



4827
4828
4829
4830
4831
# File 'sample/xml.rb', line 4827

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

#nodeTypeString ⇒ Object

BSTR nodeTypeString the type of node in string form



4707
4708
4709
4710
4711
# File 'sample/xml.rb', line 4707

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

#nodeValue ⇒ Object

VARIANT nodeValue value stored in the node



4627
4628
4629
4630
4631
# File 'sample/xml.rb', line 4627

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

#nodeValue=(arg0) ⇒ Object

VOID nodeValue value stored in the node



4811
4812
4813
4814
4815
# File 'sample/xml.rb', line 4811

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

#ownerDocument ⇒ Object

IXMLDOMDocument ownerDocument document that contains the node



4699
4700
4701
4702
4703
# File 'sample/xml.rb', line 4699

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

#parentNode ⇒ Object

IXMLDOMNode parentNode parent of the node



4643
4644
4645
4646
4647
# File 'sample/xml.rb', line 4643

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

#parsed ⇒ Object

BOOL parsed has sub-tree been completely parsed



4763
4764
4765
4766
4767
# File 'sample/xml.rb', line 4763

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

#prefix ⇒ Object

BSTR prefix the prefix for the namespace applying to the node



4779
4780
4781
4782
4783
# File 'sample/xml.rb', line 4779

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

#previousSibling ⇒ Object

IXMLDOMNode previousSibling left sibling of the node



4675
4676
4677
4678
4679
# File 'sample/xml.rb', line 4675

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

#publicId ⇒ Object

VARIANT publicId the public ID



4795
4796
4797
4798
4799
# File 'sample/xml.rb', line 4795

def publicId()
  ret = _getproperty(136, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#removeChild(arg0) ⇒ Object

IXMLDOMNode removeChild remove a child node IXMLDOMNode arg0 --- childNode [IN]



4864
4865
4866
4867
4868
# File 'sample/xml.rb', line 4864

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]



4855
4856
4857
4858
4859
# File 'sample/xml.rb', line 4855

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]



4906
4907
4908
4909
4910
# File 'sample/xml.rb', line 4906

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]



4915
4916
4917
4918
4919
# File 'sample/xml.rb', line 4915

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

#specified ⇒ Object

BOOL specified indicates whether node is a default value



4723
4724
4725
4726
4727
# File 'sample/xml.rb', line 4723

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

#systemId ⇒ Object

VARIANT systemId the system ID



4803
4804
4805
4806
4807
# File 'sample/xml.rb', line 4803

def systemId()
  ret = _getproperty(137, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#text ⇒ Object

BSTR text text content of the node and subtree



4715
4716
4717
4718
4719
# File 'sample/xml.rb', line 4715

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

#text=(arg0) ⇒ Object

VOID text text content of the node and subtree



4819
4820
4821
4822
4823
# File 'sample/xml.rb', line 4819

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]



4897
4898
4899
4900
4901
# File 'sample/xml.rb', line 4897

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]



4925
4926
4927
4928
4929
# File 'sample/xml.rb', line 4925

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

#xml ⇒ Object

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



4755
4756
4757
4758
4759
# File 'sample/xml.rb', line 4755

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