Class: Microsoft_FreeThreadedXMLDOM_1_0
- Inherits:
-
Object
- Object
- Microsoft_FreeThreadedXMLDOM_1_0
- Includes:
- WIN32OLE::VARIANT
- Defined in:
- sample/xml.rb
Overview
W3C-DOM XML Document (Apartment)
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
-
#clsid ⇒ Object
readonly
Returns the value of attribute clsid.
-
#dispatch ⇒ Object
readonly
Returns the value of attribute dispatch.
-
#lastargs ⇒ Object
readonly
Returns the value of attribute lastargs.
-
#progid ⇒ Object
readonly
Returns the value of attribute progid.
Instance Method Summary collapse
-
#abort ⇒ Object
VOID abort abort an asynchronous download.
-
#appendChild(arg0) ⇒ Object
IXMLDOMNode appendChild append a child node IXMLDOMNode arg0 — newChild [IN].
-
#async ⇒ Object
BOOL async flag for asynchronous download.
-
#async=(arg0) ⇒ Object
VOID async flag for asynchronous download.
-
#attributes ⇒ Object
IXMLDOMNamedNodeMap attributes the collection of the node’s attributes.
-
#baseName ⇒ Object
BSTR baseName the base name of the node (nodename with the prefix stripped off).
-
#childNodes ⇒ Object
IXMLDOMNodeList childNodes the collection of the node’s children.
-
#cloneNode(arg0) ⇒ Object
IXMLDOMNode cloneNode BOOL arg0 — deep [IN].
-
#createAttribute(arg0) ⇒ Object
IXMLDOMAttribute createAttribute create an attribute node BSTR arg0 — name [IN].
-
#createCDATASection(arg0) ⇒ Object
IXMLDOMCDATASection createCDATASection create a CDATA section node BSTR arg0 — data [IN].
-
#createComment(arg0) ⇒ Object
IXMLDOMComment createComment create a comment node BSTR arg0 — data [IN].
-
#createDocumentFragment ⇒ Object
IXMLDOMDocumentFragment createDocumentFragment create a DocumentFragment node.
-
#createElement(arg0) ⇒ Object
IXMLDOMElement createElement create an Element node BSTR arg0 — tagName [IN].
-
#createEntityReference(arg0) ⇒ Object
IXMLDOMEntityReference createEntityReference create an entity reference node BSTR arg0 — name [IN].
-
#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].
-
#createProcessingInstruction(arg0, arg1) ⇒ Object
IXMLDOMProcessingInstruction createProcessingInstruction create a processing instruction node BSTR arg0 — target [IN] BSTR arg1 — data [IN].
-
#createTextNode(arg0) ⇒ Object
IXMLDOMText createTextNode create a text node BSTR arg0 — data [IN].
-
#dataType ⇒ Object
VARIANT dataType the data type of the node.
-
#dataType=(arg0) ⇒ Object
VOID dataType the data type of the node.
-
#definition ⇒ Object
IXMLDOMNode definition pointer to the definition of the node in the DTD or schema.
-
#doctype ⇒ Object
IXMLDOMDocumentType doctype node corresponding to the DOCTYPE.
-
#documentElement ⇒ Object
IXMLDOMElement documentElement the root of the tree.
-
#firstChild ⇒ Object
IXMLDOMNode firstChild first child of the node.
-
#getElementsByTagName(arg0) ⇒ Object
IXMLDOMNodeList getElementsByTagName build a list of elements by name BSTR arg0 — tagName [IN].
-
#hasChildNodes ⇒ Object
BOOL hasChildNodes.
-
#implementation ⇒ Object
IXMLDOMImplementation implementation info on this DOM implementation.
-
#initialize(obj = nil) ⇒ Microsoft_FreeThreadedXMLDOM_1_0
constructor
A new instance of Microsoft_FreeThreadedXMLDOM_1_0.
-
#insertBefore(arg0, arg1) ⇒ Object
IXMLDOMNode insertBefore insert a child node IXMLDOMNode arg0 — newChild [IN] VARIANT arg1 — refChild [IN].
-
#lastChild ⇒ Object
IXMLDOMNode lastChild first child of the node.
-
#load(arg0) ⇒ Object
BOOL load load document from the specified XML source VARIANT arg0 — xmlSource [IN].
-
#loadXML(arg0) ⇒ Object
BOOL loadXML load the document from a string BSTR arg0 — bstrXML [IN].
- #method_missing(cmd, *arg) ⇒ Object
-
#namespaceURI ⇒ Object
BSTR namespaceURI the URI for the namespace applying to the node.
-
#nextSibling ⇒ Object
IXMLDOMNode nextSibling right sibling of the node.
-
#nodeFromID(arg0) ⇒ Object
IXMLDOMNode nodeFromID retrieve node from it’s ID BSTR arg0 — idString [IN].
-
#nodeName ⇒ Object
BSTR nodeName name of the node.
-
#nodeType ⇒ Object
DOMNodeType nodeType the node’s type.
-
#nodeTypedValue ⇒ Object
VARIANT nodeTypedValue get the strongly typed value of the node.
-
#nodeTypedValue=(arg0) ⇒ Object
VOID nodeTypedValue get the strongly typed value of the node.
-
#nodeTypeString ⇒ Object
BSTR nodeTypeString the type of node in string form.
-
#nodeValue ⇒ Object
VARIANT nodeValue value stored in the node.
-
#nodeValue=(arg0) ⇒ Object
VOID nodeValue value stored in the node.
-
#ondataavailable ⇒ Object
HRESULT ondataavailable EVENT in XMLDOMDocumentEvents.
-
#ondataavailable=(arg0) ⇒ Object
VOID ondataavailable register an ondataavailable event handler.
-
#onreadystatechange ⇒ Object
HRESULT onreadystatechange EVENT in XMLDOMDocumentEvents.
-
#onreadystatechange=(arg0) ⇒ Object
VOID onreadystatechange register a readystatechange event handler.
-
#ontransformnode=(arg0) ⇒ Object
VOID ontransformnode register an ontransformnode event handler.
-
#ownerDocument ⇒ Object
IXMLDOMDocument ownerDocument document that contains the node.
-
#parentNode ⇒ Object
IXMLDOMNode parentNode parent of the node.
-
#parsed ⇒ Object
BOOL parsed has sub-tree been completely parsed.
-
#parseError ⇒ Object
IXMLDOMParseError parseError get the last parser error.
-
#prefix ⇒ Object
BSTR prefix the prefix for the namespace applying to the node.
-
#preserveWhiteSpace ⇒ Object
BOOL preserveWhiteSpace indicates whether the parser preserves whitespace.
-
#preserveWhiteSpace=(arg0) ⇒ Object
VOID preserveWhiteSpace indicates whether the parser preserves whitespace.
-
#previousSibling ⇒ Object
IXMLDOMNode previousSibling left sibling of the node.
-
#readyState ⇒ Object
I4 readyState get the state of the XML document.
-
#removeChild(arg0) ⇒ Object
IXMLDOMNode removeChild remove a child node IXMLDOMNode arg0 — childNode [IN].
-
#replaceChild(arg0, arg1) ⇒ Object
IXMLDOMNode replaceChild replace a child node IXMLDOMNode arg0 — newChild [IN] IXMLDOMNode arg1 — oldChild [IN].
-
#resolveExternals ⇒ Object
BOOL resolveExternals indicates whether the parser resolves references to external DTD/Entities/Schema.
-
#resolveExternals=(arg0) ⇒ Object
VOID resolveExternals indicates whether the parser resolves references to external DTD/Entities/Schema.
-
#save(arg0) ⇒ Object
VOID save save the document to a specified desination VARIANT arg0 — desination [IN].
-
#selectNodes(arg0) ⇒ Object
IXMLDOMNodeList selectNodes execute query on the subtree BSTR arg0 — queryString [IN].
-
#selectSingleNode(arg0) ⇒ Object
IXMLDOMNode selectSingleNode execute query on the subtree BSTR arg0 — queryString [IN].
-
#specified ⇒ Object
BOOL specified indicates whether node is a default value.
-
#text ⇒ Object
BSTR text text content of the node and subtree.
-
#text=(arg0) ⇒ Object
VOID text text content of the node and subtree.
-
#transformNode(arg0) ⇒ Object
BSTR transformNode apply the stylesheet to the subtree IXMLDOMNode arg0 — stylesheet [IN].
-
#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].
-
#url ⇒ Object
BSTR url get the URL for the loaded XML document.
-
#validateOnParse ⇒ Object
BOOL validateOnParse indicates whether the parser performs validation.
-
#validateOnParse=(arg0) ⇒ Object
VOID validateOnParse indicates whether the parser performs validation.
-
#xml ⇒ Object
BSTR xml return the XML source for the node and each of its descendants.
Constructor Details
#initialize(obj = nil) ⇒ Microsoft_FreeThreadedXMLDOM_1_0
Returns a new instance of Microsoft_FreeThreadedXMLDOM_1_0.
6257 6258 6259 6260 6261 6262 6263 6264 6265 |
# File 'sample/xml.rb', line 6257 def initialize(obj = nil) @clsid = "{2933BF91-7B36-11D2-B20E-00C04F983E60}" @progid = "Microsoft.FreeThreadedXMLDOM.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
6267 6268 6269 |
# File 'sample/xml.rb', line 6267 def method_missing(cmd, *arg) @dispatch.method_missing(cmd, *arg) end |
Instance Attribute Details
#clsid ⇒ Object (readonly)
Returns the value of attribute clsid
6254 6255 6256 |
# File 'sample/xml.rb', line 6254 def clsid @clsid end |
#dispatch ⇒ Object (readonly)
Returns the value of attribute dispatch
6253 6254 6255 |
# File 'sample/xml.rb', line 6253 def dispatch @dispatch end |
#lastargs ⇒ Object (readonly)
Returns the value of attribute lastargs
6252 6253 6254 |
# File 'sample/xml.rb', line 6252 def lastargs @lastargs end |
#progid ⇒ Object (readonly)
Returns the value of attribute progid
6255 6256 6257 |
# File 'sample/xml.rb', line 6255 def progid @progid end |
Instance Method Details
#abort ⇒ Object
VOID abort abort an asynchronous download
6817 6818 6819 6820 6821 |
# File 'sample/xml.rb', line 6817 def abort() ret = @dispatch._invoke(62, [], []) @lastargs = WIN32OLE::ARGV ret end |
#appendChild(arg0) ⇒ Object
IXMLDOMNode appendChild append a child node
IXMLDOMNode arg0 --- newChild [IN]
6647 6648 6649 6650 6651 |
# File 'sample/xml.rb', line 6647 def appendChild(arg0) ret = @dispatch._invoke(16, [arg0], [VT_BYREF|VT_DISPATCH]) @lastargs = WIN32OLE::ARGV ret end |
#async ⇒ Object
BOOL async flag for asynchronous download
6497 6498 6499 6500 6501 |
# File 'sample/xml.rb', line 6497 def async() ret = @dispatch._getproperty(61, [], []) @lastargs = WIN32OLE::ARGV ret end |
#async=(arg0) ⇒ Object
VOID async flag for asynchronous download
6561 6562 6563 6564 6565 |
# File 'sample/xml.rb', line 6561 def async=(arg0) ret = @dispatch._setproperty(61, [arg0], [VT_BOOL]) @lastargs = WIN32OLE::ARGV ret end |
#attributes ⇒ Object
IXMLDOMNamedNodeMap attributes the collection of the node’s attributes
6345 6346 6347 6348 6349 |
# File 'sample/xml.rb', line 6345 def attributes() ret = @dispatch._getproperty(12, [], []) @lastargs = WIN32OLE::ARGV ret end |
#baseName ⇒ Object
BSTR baseName the base name of the node (nodename with the prefix stripped off)
6441 6442 6443 6444 6445 |
# File 'sample/xml.rb', line 6441 def baseName() ret = @dispatch._getproperty(34, [], []) @lastargs = WIN32OLE::ARGV ret end |
#childNodes ⇒ Object
IXMLDOMNodeList childNodes the collection of the node’s children
6305 6306 6307 6308 6309 |
# File 'sample/xml.rb', line 6305 def childNodes() ret = @dispatch._getproperty(7, [], []) @lastargs = WIN32OLE::ARGV ret end |
#cloneNode(arg0) ⇒ Object
IXMLDOMNode cloneNode
BOOL arg0 --- deep [IN]
6662 6663 6664 6665 6666 |
# File 'sample/xml.rb', line 6662 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]
6762 6763 6764 6765 6766 |
# File 'sample/xml.rb', line 6762 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]
6743 6744 6745 6746 6747 |
# File 'sample/xml.rb', line 6743 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]
6734 6735 6736 6737 6738 |
# File 'sample/xml.rb', line 6734 def createComment(arg0) ret = @dispatch._invoke(44, [arg0], [VT_BSTR]) @lastargs = WIN32OLE::ARGV ret end |
#createDocumentFragment ⇒ Object
IXMLDOMDocumentFragment createDocumentFragment create a DocumentFragment node
6716 6717 6718 6719 6720 |
# File 'sample/xml.rb', line 6716 def createDocumentFragment() ret = @dispatch._invoke(42, [], []) @lastargs = WIN32OLE::ARGV ret end |
#createElement(arg0) ⇒ Object
IXMLDOMElement createElement create an Element node
BSTR arg0 --- tagName [IN]
6708 6709 6710 6711 6712 |
# File 'sample/xml.rb', line 6708 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]
6771 6772 6773 6774 6775 |
# File 'sample/xml.rb', line 6771 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]
6791 6792 6793 6794 6795 |
# File 'sample/xml.rb', line 6791 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]
6753 6754 6755 6756 6757 |
# File 'sample/xml.rb', line 6753 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]
6725 6726 6727 6728 6729 |
# File 'sample/xml.rb', line 6725 def createTextNode(arg0) ret = @dispatch._invoke(43, [arg0], [VT_BSTR]) @lastargs = WIN32OLE::ARGV ret end |
#dataType ⇒ Object
VARIANT dataType the data type of the node
6401 6402 6403 6404 6405 |
# File 'sample/xml.rb', line 6401 def dataType() ret = @dispatch._getproperty(26, [], []) @lastargs = WIN32OLE::ARGV ret end |
#dataType=(arg0) ⇒ Object
VOID dataType the data type of the node
6553 6554 6555 6556 6557 |
# File 'sample/xml.rb', line 6553 def dataType=(arg0) ret = @dispatch._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
6385 6386 6387 6388 6389 |
# File 'sample/xml.rb', line 6385 def definition() ret = @dispatch._getproperty(23, [], []) @lastargs = WIN32OLE::ARGV ret end |
#doctype ⇒ Object
IXMLDOMDocumentType doctype node corresponding to the DOCTYPE
6449 6450 6451 6452 6453 |
# File 'sample/xml.rb', line 6449 def doctype() ret = @dispatch._getproperty(38, [], []) @lastargs = WIN32OLE::ARGV ret end |
#documentElement ⇒ Object
IXMLDOMElement documentElement the root of the tree
6465 6466 6467 6468 6469 |
# File 'sample/xml.rb', line 6465 def documentElement() ret = @dispatch._getproperty(40, [], []) @lastargs = WIN32OLE::ARGV ret end |
#firstChild ⇒ Object
IXMLDOMNode firstChild first child of the node
6313 6314 6315 6316 6317 |
# File 'sample/xml.rb', line 6313 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]
6780 6781 6782 6783 6784 |
# File 'sample/xml.rb', line 6780 def getElementsByTagName(arg0) ret = @dispatch._invoke(50, [arg0], [VT_BSTR]) @lastargs = WIN32OLE::ARGV ret end |
#hasChildNodes ⇒ Object
BOOL hasChildNodes
6654 6655 6656 6657 6658 |
# File 'sample/xml.rb', line 6654 def hasChildNodes() ret = @dispatch._invoke(17, [], []) @lastargs = WIN32OLE::ARGV ret end |
#implementation ⇒ Object
IXMLDOMImplementation implementation info on this DOM implementation
6457 6458 6459 6460 6461 |
# File 'sample/xml.rb', line 6457 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]
6619 6620 6621 6622 6623 |
# File 'sample/xml.rb', line 6619 def insertBefore(arg0, arg1) ret = @dispatch._invoke(13, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT]) @lastargs = WIN32OLE::ARGV ret end |
#lastChild ⇒ Object
IXMLDOMNode lastChild first child of the node
6321 6322 6323 6324 6325 |
# File 'sample/xml.rb', line 6321 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]
6809 6810 6811 6812 6813 |
# File 'sample/xml.rb', line 6809 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]
6826 6827 6828 6829 6830 |
# File 'sample/xml.rb', line 6826 def loadXML(arg0) ret = @dispatch._invoke(63, [arg0], [VT_BSTR]) @lastargs = WIN32OLE::ARGV ret end |
#namespaceURI ⇒ Object
BSTR namespaceURI the URI for the namespace applying to the node
6425 6426 6427 6428 6429 |
# File 'sample/xml.rb', line 6425 def namespaceURI() ret = @dispatch._getproperty(32, [], []) @lastargs = WIN32OLE::ARGV ret end |
#nextSibling ⇒ Object
IXMLDOMNode nextSibling right sibling of the node
6337 6338 6339 6340 6341 |
# File 'sample/xml.rb', line 6337 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]
6800 6801 6802 6803 6804 |
# File 'sample/xml.rb', line 6800 def nodeFromID(arg0) ret = @dispatch._invoke(56, [arg0], [VT_BSTR]) @lastargs = WIN32OLE::ARGV ret end |
#nodeName ⇒ Object
BSTR nodeName name of the node
6273 6274 6275 6276 6277 |
# File 'sample/xml.rb', line 6273 def nodeName() ret = @dispatch._getproperty(2, [], []) @lastargs = WIN32OLE::ARGV ret end |
#nodeType ⇒ Object
DOMNodeType nodeType the node’s type
6289 6290 6291 6292 6293 |
# File 'sample/xml.rb', line 6289 def nodeType() ret = @dispatch._getproperty(4, [], []) @lastargs = WIN32OLE::ARGV ret end |
#nodeTypedValue ⇒ Object
VARIANT nodeTypedValue get the strongly typed value of the node
6393 6394 6395 6396 6397 |
# File 'sample/xml.rb', line 6393 def nodeTypedValue() ret = @dispatch._getproperty(25, [], []) @lastargs = WIN32OLE::ARGV ret end |
#nodeTypedValue=(arg0) ⇒ Object
VOID nodeTypedValue get the strongly typed value of the node
6545 6546 6547 6548 6549 |
# File 'sample/xml.rb', line 6545 def nodeTypedValue=(arg0) ret = @dispatch._setproperty(25, [arg0], [VT_VARIANT]) @lastargs = WIN32OLE::ARGV ret end |
#nodeTypeString ⇒ Object
BSTR nodeTypeString the type of node in string form
6361 6362 6363 6364 6365 |
# File 'sample/xml.rb', line 6361 def nodeTypeString() ret = @dispatch._getproperty(21, [], []) @lastargs = WIN32OLE::ARGV ret end |
#nodeValue ⇒ Object
VARIANT nodeValue value stored in the node
6281 6282 6283 6284 6285 |
# File 'sample/xml.rb', line 6281 def nodeValue() ret = @dispatch._getproperty(3, [], []) @lastargs = WIN32OLE::ARGV ret end |
#nodeValue=(arg0) ⇒ Object
VOID nodeValue value stored in the node
6529 6530 6531 6532 6533 |
# File 'sample/xml.rb', line 6529 def nodeValue=(arg0) ret = @dispatch._setproperty(3, [arg0], [VT_VARIANT]) @lastargs = WIN32OLE::ARGV ret end |
#ondataavailable ⇒ Object
HRESULT ondataavailable EVENT in XMLDOMDocumentEvents
6842 6843 6844 6845 6846 |
# File 'sample/xml.rb', line 6842 def ondataavailable() ret = @dispatch._invoke(198, [], []) @lastargs = WIN32OLE::ARGV ret end |
#ondataavailable=(arg0) ⇒ Object
VOID ondataavailable register an ondataavailable event handler
6601 6602 6603 6604 6605 |
# File 'sample/xml.rb', line 6601 def ondataavailable=(arg0) ret = @dispatch._setproperty(69, [arg0], [VT_VARIANT]) @lastargs = WIN32OLE::ARGV ret end |
#onreadystatechange ⇒ Object
HRESULT onreadystatechange EVENT in XMLDOMDocumentEvents
6849 6850 6851 6852 6853 |
# File 'sample/xml.rb', line 6849 def onreadystatechange() ret = @dispatch._invoke(-609, [], []) @lastargs = WIN32OLE::ARGV ret end |
#onreadystatechange=(arg0) ⇒ Object
VOID onreadystatechange register a readystatechange event handler
6593 6594 6595 6596 6597 |
# File 'sample/xml.rb', line 6593 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
6609 6610 6611 6612 6613 |
# File 'sample/xml.rb', line 6609 def ontransformnode=(arg0) ret = @dispatch._setproperty(70, [arg0], [VT_VARIANT]) @lastargs = WIN32OLE::ARGV ret end |
#ownerDocument ⇒ Object
IXMLDOMDocument ownerDocument document that contains the node
6353 6354 6355 6356 6357 |
# File 'sample/xml.rb', line 6353 def ownerDocument() ret = @dispatch._getproperty(18, [], []) @lastargs = WIN32OLE::ARGV ret end |
#parentNode ⇒ Object
IXMLDOMNode parentNode parent of the node
6297 6298 6299 6300 6301 |
# File 'sample/xml.rb', line 6297 def parentNode() ret = @dispatch._getproperty(6, [], []) @lastargs = WIN32OLE::ARGV ret end |
#parsed ⇒ Object
BOOL parsed has sub-tree been completely parsed
6417 6418 6419 6420 6421 |
# File 'sample/xml.rb', line 6417 def parsed() ret = @dispatch._getproperty(31, [], []) @lastargs = WIN32OLE::ARGV ret end |
#parseError ⇒ Object
IXMLDOMParseError parseError get the last parser error
6481 6482 6483 6484 6485 |
# File 'sample/xml.rb', line 6481 def parseError() ret = @dispatch._getproperty(59, [], []) @lastargs = WIN32OLE::ARGV ret end |
#prefix ⇒ Object
BSTR prefix the prefix for the namespace applying to the node
6433 6434 6435 6436 6437 |
# File 'sample/xml.rb', line 6433 def prefix() ret = @dispatch._getproperty(33, [], []) @lastargs = WIN32OLE::ARGV ret end |
#preserveWhiteSpace ⇒ Object
BOOL preserveWhiteSpace indicates whether the parser preserves whitespace
6521 6522 6523 6524 6525 |
# File 'sample/xml.rb', line 6521 def preserveWhiteSpace() ret = @dispatch._getproperty(67, [], []) @lastargs = WIN32OLE::ARGV ret end |
#preserveWhiteSpace=(arg0) ⇒ Object
VOID preserveWhiteSpace indicates whether the parser preserves whitespace
6585 6586 6587 6588 6589 |
# File 'sample/xml.rb', line 6585 def preserveWhiteSpace=(arg0) ret = @dispatch._setproperty(67, [arg0], [VT_BOOL]) @lastargs = WIN32OLE::ARGV ret end |
#previousSibling ⇒ Object
IXMLDOMNode previousSibling left sibling of the node
6329 6330 6331 6332 6333 |
# File 'sample/xml.rb', line 6329 def previousSibling() ret = @dispatch._getproperty(10, [], []) @lastargs = WIN32OLE::ARGV ret end |
#readyState ⇒ Object
I4 readyState get the state of the XML document
6473 6474 6475 6476 6477 |
# File 'sample/xml.rb', line 6473 def readyState() ret = @dispatch._getproperty(-525, [], []) @lastargs = WIN32OLE::ARGV ret end |
#removeChild(arg0) ⇒ Object
IXMLDOMNode removeChild remove a child node
IXMLDOMNode arg0 --- childNode [IN]
6638 6639 6640 6641 6642 |
# File 'sample/xml.rb', line 6638 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]
6629 6630 6631 6632 6633 |
# File 'sample/xml.rb', line 6629 def replaceChild(arg0, arg1) ret = @dispatch._invoke(14, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_BYREF|VT_DISPATCH]) @lastargs = WIN32OLE::ARGV ret end |
#resolveExternals ⇒ Object
BOOL resolveExternals indicates whether the parser resolves references to external DTD/Entities/Schema
6513 6514 6515 6516 6517 |
# File 'sample/xml.rb', line 6513 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
6577 6578 6579 6580 6581 |
# File 'sample/xml.rb', line 6577 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]
6835 6836 6837 6838 6839 |
# File 'sample/xml.rb', line 6835 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]
6680 6681 6682 6683 6684 |
# File 'sample/xml.rb', line 6680 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]
6689 6690 6691 6692 6693 |
# File 'sample/xml.rb', line 6689 def selectSingleNode(arg0) ret = @dispatch._invoke(30, [arg0], [VT_BSTR]) @lastargs = WIN32OLE::ARGV ret end |
#specified ⇒ Object
BOOL specified indicates whether node is a default value
6377 6378 6379 6380 6381 |
# File 'sample/xml.rb', line 6377 def specified() ret = @dispatch._getproperty(22, [], []) @lastargs = WIN32OLE::ARGV ret end |
#text ⇒ Object
BSTR text text content of the node and subtree
6369 6370 6371 6372 6373 |
# File 'sample/xml.rb', line 6369 def text() ret = @dispatch._getproperty(24, [], []) @lastargs = WIN32OLE::ARGV ret end |
#text=(arg0) ⇒ Object
VOID text text content of the node and subtree
6537 6538 6539 6540 6541 |
# File 'sample/xml.rb', line 6537 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]
6671 6672 6673 6674 6675 |
# File 'sample/xml.rb', line 6671 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]
6699 6700 6701 6702 6703 |
# File 'sample/xml.rb', line 6699 def transformNodeToObject(arg0, arg1) ret = @dispatch._invoke(35, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT]) @lastargs = WIN32OLE::ARGV ret end |
#url ⇒ Object
BSTR url get the URL for the loaded XML document
6489 6490 6491 6492 6493 |
# File 'sample/xml.rb', line 6489 def url() ret = @dispatch._getproperty(60, [], []) @lastargs = WIN32OLE::ARGV ret end |
#validateOnParse ⇒ Object
BOOL validateOnParse indicates whether the parser performs validation
6505 6506 6507 6508 6509 |
# File 'sample/xml.rb', line 6505 def validateOnParse() ret = @dispatch._getproperty(65, [], []) @lastargs = WIN32OLE::ARGV ret end |