Module: IXMLDOMComment
- 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
-
#lastargs ⇒ Object
readonly
Returns the value of attribute lastargs.
Instance Method Summary collapse
-
#appendChild(arg0) ⇒ Object
IXMLDOMNode appendChild append a child node IXMLDOMNode arg0 — newChild [IN].
-
#appendData(arg0) ⇒ Object
VOID appendData append string to value BSTR arg0 — data [IN].
-
#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].
-
#data ⇒ Object
BSTR data value of the node.
-
#data=(arg0) ⇒ Object
VOID data value of the node.
-
#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.
-
#deleteData(arg0, arg1) ⇒ Object
VOID deleteData delete string within the value I4 arg0 — offset [IN] I4 arg1 — count [IN].
-
#firstChild ⇒ Object
IXMLDOMNode firstChild first child of the node.
-
#hasChildNodes ⇒ Object
BOOL hasChildNodes.
-
#insertBefore(arg0, arg1) ⇒ Object
IXMLDOMNode insertBefore insert a child node IXMLDOMNode arg0 — newChild [IN] VARIANT arg1 — refChild [IN].
-
#insertData(arg0, arg1) ⇒ Object
VOID insertData insert string into value I4 arg0 — offset [IN] BSTR arg1 — data [IN].
-
#lastChild ⇒ Object
IXMLDOMNode lastChild first child of the node.
-
#length ⇒ Object
I4 length number of characters in value.
-
#namespaceURI ⇒ Object
BSTR namespaceURI the URI for the namespace applying to the node.
-
#nextSibling ⇒ Object
IXMLDOMNode nextSibling right sibling of the node.
-
#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.
-
#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.
-
#prefix ⇒ Object
BSTR prefix the prefix for the namespace applying to the node.
-
#previousSibling ⇒ Object
IXMLDOMNode previousSibling left sibling of the node.
-
#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].
-
#replaceData(arg0, arg1, arg2) ⇒ Object
VOID replaceData replace string within the value I4 arg0 — offset [IN] I4 arg1 — count [IN] BSTR arg2 — data [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.
-
#substringData(arg0, arg1) ⇒ Object
BSTR substringData retrieve substring of value I4 arg0 — offset [IN] I4 arg1 — count [IN].
-
#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].
-
#xml ⇒ Object
BSTR xml return the XML source for the node and each of its descendants.
Instance Attribute Details
#lastargs ⇒ Object (readonly)
Returns the value of attribute lastargs.
3156 3157 3158 |
# File 'sample/xml.rb', line 3156 def lastargs @lastargs end |
Instance Method Details
#appendChild(arg0) ⇒ Object
IXMLDOMNode appendChild append a child node
IXMLDOMNode arg0 --- newChild [IN]
3422 3423 3424 3425 3426 |
# File 'sample/xml.rb', line 3422 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]
3493 3494 3495 3496 3497 |
# File 'sample/xml.rb', line 3493 def appendData(arg0) ret = _invoke(112, [arg0], [VT_BSTR]) @lastargs = WIN32OLE::ARGV ret end |
#attributes ⇒ Object
IXMLDOMNamedNodeMap attributes the collection of the node’s attributes
3232 3233 3234 3235 3236 |
# File 'sample/xml.rb', line 3232 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)
3328 3329 3330 3331 3332 |
# File 'sample/xml.rb', line 3328 def baseName() ret = _getproperty(34, [], []) @lastargs = WIN32OLE::ARGV ret end |
#childNodes ⇒ Object
IXMLDOMNodeList childNodes the collection of the node’s children
3192 3193 3194 3195 3196 |
# File 'sample/xml.rb', line 3192 def childNodes() ret = _getproperty(7, [], []) @lastargs = WIN32OLE::ARGV ret end |
#cloneNode(arg0) ⇒ Object
IXMLDOMNode cloneNode
BOOL arg0 --- deep [IN]
3437 3438 3439 3440 3441 |
# File 'sample/xml.rb', line 3437 def cloneNode(arg0) ret = _invoke(19, [arg0], [VT_BOOL]) @lastargs = WIN32OLE::ARGV ret end |
#data ⇒ Object
BSTR data value of the node
3336 3337 3338 3339 3340 |
# File 'sample/xml.rb', line 3336 def data() ret = _getproperty(109, [], []) @lastargs = WIN32OLE::ARGV ret end |
#data=(arg0) ⇒ Object
VOID data value of the node
3384 3385 3386 3387 3388 |
# File 'sample/xml.rb', line 3384 def data=(arg0) ret = _setproperty(109, [arg0], [VT_BSTR]) @lastargs = WIN32OLE::ARGV ret end |
#dataType ⇒ Object
VARIANT dataType the data type of the node
3288 3289 3290 3291 3292 |
# File 'sample/xml.rb', line 3288 def dataType() ret = _getproperty(26, [], []) @lastargs = WIN32OLE::ARGV ret end |
#dataType=(arg0) ⇒ Object
VOID dataType the data type of the node
3376 3377 3378 3379 3380 |
# File 'sample/xml.rb', line 3376 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
3272 3273 3274 3275 3276 |
# File 'sample/xml.rb', line 3272 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]
3513 3514 3515 3516 3517 |
# File 'sample/xml.rb', line 3513 def deleteData(arg0, arg1) ret = _invoke(114, [arg0, arg1], [VT_I4, VT_I4]) @lastargs = WIN32OLE::ARGV ret end |
#firstChild ⇒ Object
IXMLDOMNode firstChild first child of the node
3200 3201 3202 3203 3204 |
# File 'sample/xml.rb', line 3200 def firstChild() ret = _getproperty(8, [], []) @lastargs = WIN32OLE::ARGV ret end |
#hasChildNodes ⇒ Object
BOOL hasChildNodes
3429 3430 3431 3432 3433 |
# File 'sample/xml.rb', line 3429 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]
3394 3395 3396 3397 3398 |
# File 'sample/xml.rb', line 3394 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]
3503 3504 3505 3506 3507 |
# File 'sample/xml.rb', line 3503 def insertData(arg0, arg1) ret = _invoke(113, [arg0, arg1], [VT_I4, VT_BSTR]) @lastargs = WIN32OLE::ARGV ret end |
#lastChild ⇒ Object
IXMLDOMNode lastChild first child of the node
3208 3209 3210 3211 3212 |
# File 'sample/xml.rb', line 3208 def lastChild() ret = _getproperty(9, [], []) @lastargs = WIN32OLE::ARGV ret end |
#length ⇒ Object
I4 length number of characters in value
3344 3345 3346 3347 3348 |
# File 'sample/xml.rb', line 3344 def length() ret = _getproperty(110, [], []) @lastargs = WIN32OLE::ARGV ret end |
#namespaceURI ⇒ Object
BSTR namespaceURI the URI for the namespace applying to the node
3312 3313 3314 3315 3316 |
# File 'sample/xml.rb', line 3312 def namespaceURI() ret = _getproperty(32, [], []) @lastargs = WIN32OLE::ARGV ret end |
#nextSibling ⇒ Object
IXMLDOMNode nextSibling right sibling of the node
3224 3225 3226 3227 3228 |
# File 'sample/xml.rb', line 3224 def nextSibling() ret = _getproperty(11, [], []) @lastargs = WIN32OLE::ARGV ret end |
#nodeName ⇒ Object
BSTR nodeName name of the node
3160 3161 3162 3163 3164 |
# File 'sample/xml.rb', line 3160 def nodeName() ret = _getproperty(2, [], []) @lastargs = WIN32OLE::ARGV ret end |
#nodeType ⇒ Object
DOMNodeType nodeType the node’s type
3176 3177 3178 3179 3180 |
# File 'sample/xml.rb', line 3176 def nodeType() ret = _getproperty(4, [], []) @lastargs = WIN32OLE::ARGV ret end |
#nodeTypedValue ⇒ Object
VARIANT nodeTypedValue get the strongly typed value of the node
3280 3281 3282 3283 3284 |
# File 'sample/xml.rb', line 3280 def nodeTypedValue() ret = _getproperty(25, [], []) @lastargs = WIN32OLE::ARGV ret end |
#nodeTypedValue=(arg0) ⇒ Object
VOID nodeTypedValue get the strongly typed value of the node
3368 3369 3370 3371 3372 |
# File 'sample/xml.rb', line 3368 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
3248 3249 3250 3251 3252 |
# File 'sample/xml.rb', line 3248 def nodeTypeString() ret = _getproperty(21, [], []) @lastargs = WIN32OLE::ARGV ret end |
#nodeValue ⇒ Object
VARIANT nodeValue value stored in the node
3168 3169 3170 3171 3172 |
# File 'sample/xml.rb', line 3168 def nodeValue() ret = _getproperty(3, [], []) @lastargs = WIN32OLE::ARGV ret end |
#nodeValue=(arg0) ⇒ Object
VOID nodeValue value stored in the node
3352 3353 3354 3355 3356 |
# File 'sample/xml.rb', line 3352 def nodeValue=(arg0) ret = _setproperty(3, [arg0], [VT_VARIANT]) @lastargs = WIN32OLE::ARGV ret end |
#ownerDocument ⇒ Object
IXMLDOMDocument ownerDocument document that contains the node
3240 3241 3242 3243 3244 |
# File 'sample/xml.rb', line 3240 def ownerDocument() ret = _getproperty(18, [], []) @lastargs = WIN32OLE::ARGV ret end |
#parentNode ⇒ Object
IXMLDOMNode parentNode parent of the node
3184 3185 3186 3187 3188 |
# File 'sample/xml.rb', line 3184 def parentNode() ret = _getproperty(6, [], []) @lastargs = WIN32OLE::ARGV ret end |
#parsed ⇒ Object
BOOL parsed has sub-tree been completely parsed
3304 3305 3306 3307 3308 |
# File 'sample/xml.rb', line 3304 def parsed() ret = _getproperty(31, [], []) @lastargs = WIN32OLE::ARGV ret end |
#prefix ⇒ Object
BSTR prefix the prefix for the namespace applying to the node
3320 3321 3322 3323 3324 |
# File 'sample/xml.rb', line 3320 def prefix() ret = _getproperty(33, [], []) @lastargs = WIN32OLE::ARGV ret end |
#previousSibling ⇒ Object
IXMLDOMNode previousSibling left sibling of the node
3216 3217 3218 3219 3220 |
# File 'sample/xml.rb', line 3216 def previousSibling() ret = _getproperty(10, [], []) @lastargs = WIN32OLE::ARGV ret end |
#removeChild(arg0) ⇒ Object
IXMLDOMNode removeChild remove a child node
IXMLDOMNode arg0 --- childNode [IN]
3413 3414 3415 3416 3417 |
# File 'sample/xml.rb', line 3413 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]
3404 3405 3406 3407 3408 |
# File 'sample/xml.rb', line 3404 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]
3524 3525 3526 3527 3528 |
# File 'sample/xml.rb', line 3524 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]
3455 3456 3457 3458 3459 |
# File 'sample/xml.rb', line 3455 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]
3464 3465 3466 3467 3468 |
# File 'sample/xml.rb', line 3464 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
3264 3265 3266 3267 3268 |
# File 'sample/xml.rb', line 3264 def specified() ret = _getproperty(22, [], []) @lastargs = WIN32OLE::ARGV ret end |
#substringData(arg0, arg1) ⇒ Object
BSTR substringData retrieve substring of value
I4 arg0 --- offset [IN]
I4 arg1 --- count [IN]
3484 3485 3486 3487 3488 |
# File 'sample/xml.rb', line 3484 def substringData(arg0, arg1) ret = _invoke(111, [arg0, arg1], [VT_I4, VT_I4]) @lastargs = WIN32OLE::ARGV ret end |
#text ⇒ Object
BSTR text text content of the node and subtree
3256 3257 3258 3259 3260 |
# File 'sample/xml.rb', line 3256 def text() ret = _getproperty(24, [], []) @lastargs = WIN32OLE::ARGV ret end |
#text=(arg0) ⇒ Object
VOID text text content of the node and subtree
3360 3361 3362 3363 3364 |
# File 'sample/xml.rb', line 3360 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]
3446 3447 3448 3449 3450 |
# File 'sample/xml.rb', line 3446 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]
3474 3475 3476 3477 3478 |
# File 'sample/xml.rb', line 3474 def transformNodeToObject(arg0, arg1) ret = _invoke(35, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT]) @lastargs = WIN32OLE::ARGV ret end |