Debian Codegraph @

ext/win32ole/sample/xml.rb

raw symbols SCIP
1 # frozen_string_literal: false
2 #
3 # This file created by olegen.rb as following.
4 # ruby olegen.rb 'Microsoft XML, version 2.0' > xml.rb
5 #
6 require 'win32ole'
7 require 'win32ole/property'
8
9 #
10 module IXMLDOMImplementation
11 include WIN32OLE::VARIANT
12 attr_reader :lastargs
13
14 # BOOL hasFeature
15 # BSTR arg0 --- feature [IN]
16 # BSTR arg1 --- version [IN]
17 def hasFeature(arg0, arg1)
18 ret = _invoke(145, [arg0, arg1], [VT_BSTR, VT_BSTR])
19 @lastargs = WIN32OLE::ARGV
20 ret
21 end
22 end
23
24 # Core DOM node interface
25 module IXMLDOMNode
26 include WIN32OLE::VARIANT
27 attr_reader :lastargs
28
29 # BSTR nodeName
30 # name of the node
31 def nodeName()
32 ret = _getproperty(2, [], [])
33 @lastargs = WIN32OLE::ARGV
34 ret
35 end
36
37 # VARIANT nodeValue
38 # value stored in the node
39 def nodeValue()
40 ret = _getproperty(3, [], [])
41 @lastargs = WIN32OLE::ARGV
42 ret
43 end
44
45 # DOMNodeType nodeType
46 # the node's type
47 def nodeType()
48 ret = _getproperty(4, [], [])
49 @lastargs = WIN32OLE::ARGV
50 ret
51 end
52
53 # IXMLDOMNode parentNode
54 # parent of the node
55 def parentNode()
56 ret = _getproperty(6, [], [])
57 @lastargs = WIN32OLE::ARGV
58 ret
59 end
60
61 # IXMLDOMNodeList childNodes
62 # the collection of the node's children
63 def childNodes()
64 ret = _getproperty(7, [], [])
65 @lastargs = WIN32OLE::ARGV
66 ret
67 end
68
69 # IXMLDOMNode firstChild
70 # first child of the node
71 def firstChild()
72 ret = _getproperty(8, [], [])
73 @lastargs = WIN32OLE::ARGV
74 ret
75 end
76
77 # IXMLDOMNode lastChild
78 # first child of the node
79 def lastChild()
80 ret = _getproperty(9, [], [])
81 @lastargs = WIN32OLE::ARGV
82 ret
83 end
84
85 # IXMLDOMNode previousSibling
86 # left sibling of the node
87 def previousSibling()
88 ret = _getproperty(10, [], [])
89 @lastargs = WIN32OLE::ARGV
90 ret
91 end
92
93 # IXMLDOMNode nextSibling
94 # right sibling of the node
95 def nextSibling()
96 ret = _getproperty(11, [], [])
97 @lastargs = WIN32OLE::ARGV
98 ret
99 end
100
101 # IXMLDOMNamedNodeMap attributes
102 # the collection of the node's attributes
103 def attributes()
104 ret = _getproperty(12, [], [])
105 @lastargs = WIN32OLE::ARGV
106 ret
107 end
108
109 # IXMLDOMDocument ownerDocument
110 # document that contains the node
111 def ownerDocument()
112 ret = _getproperty(18, [], [])
113 @lastargs = WIN32OLE::ARGV
114 ret
115 end
116
117 # BSTR nodeTypeString
118 # the type of node in string form
119 def nodeTypeString()
120 ret = _getproperty(21, [], [])
121 @lastargs = WIN32OLE::ARGV
122 ret
123 end
124
125 # BSTR text
126 # text content of the node and subtree
127 def text()
128 ret = _getproperty(24, [], [])
129 @lastargs = WIN32OLE::ARGV
130 ret
131 end
132
133 # BOOL specified
134 # indicates whether node is a default value
135 def specified()
136 ret = _getproperty(22, [], [])
137 @lastargs = WIN32OLE::ARGV
138 ret
139 end
140
141 # IXMLDOMNode definition
142 # pointer to the definition of the node in the DTD or schema
143 def definition()
144 ret = _getproperty(23, [], [])
145 @lastargs = WIN32OLE::ARGV
146 ret
147 end
148
149 # VARIANT nodeTypedValue
150 # get the strongly typed value of the node
151 def nodeTypedValue()
152 ret = _getproperty(25, [], [])
153 @lastargs = WIN32OLE::ARGV
154 ret
155 end
156
157 # VARIANT dataType
158 # the data type of the node
159 def dataType()
160 ret = _getproperty(26, [], [])
161 @lastargs = WIN32OLE::ARGV
162 ret
163 end
164
165 # BSTR xml
166 # return the XML source for the node and each of its descendants
167 def xml()
168 ret = _getproperty(27, [], [])
169 @lastargs = WIN32OLE::ARGV
170 ret
171 end
172
173 # BOOL parsed
174 # has sub-tree been completely parsed
175 def parsed()
176 ret = _getproperty(31, [], [])
177 @lastargs = WIN32OLE::ARGV
178 ret
179 end
180
181 # BSTR namespaceURI
182 # the URI for the namespace applying to the node
183 def namespaceURI()
184 ret = _getproperty(32, [], [])
185 @lastargs = WIN32OLE::ARGV
186 ret
187 end
188
189 # BSTR prefix
190 # the prefix for the namespace applying to the node
191 def prefix()
192 ret = _getproperty(33, [], [])
193 @lastargs = WIN32OLE::ARGV
194 ret
195 end
196
197 # BSTR baseName
198 # the base name of the node (nodename with the prefix stripped off)
199 def baseName()
200 ret = _getproperty(34, [], [])
201 @lastargs = WIN32OLE::ARGV
202 ret
203 end
204
205 # VOID nodeValue
206 # value stored in the node
207 def nodeValue=(arg0)
208 ret = _setproperty(3, [arg0], [VT_VARIANT])
209 @lastargs = WIN32OLE::ARGV
210 ret
211 end
212
213 # VOID text
214 # text content of the node and subtree
215 def text=(arg0)
216 ret = _setproperty(24, [arg0], [VT_BSTR])
217 @lastargs = WIN32OLE::ARGV
218 ret
219 end
220
221 # VOID nodeTypedValue
222 # get the strongly typed value of the node
223 def nodeTypedValue=(arg0)
224 ret = _setproperty(25, [arg0], [VT_VARIANT])
225 @lastargs = WIN32OLE::ARGV
226 ret
227 end
228
229 # VOID dataType
230 # the data type of the node
231 def dataType=(arg0)
232 ret = _setproperty(26, [arg0], [VT_VARIANT])
233 @lastargs = WIN32OLE::ARGV
234 ret
235 end
236
237 # IXMLDOMNode insertBefore
238 # insert a child node
239 # IXMLDOMNode arg0 --- newChild [IN]
240 # VARIANT arg1 --- refChild [IN]
241 def insertBefore(arg0, arg1)
242 ret = _invoke(13, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
243 @lastargs = WIN32OLE::ARGV
244 ret
245 end
246
247 # IXMLDOMNode replaceChild
248 # replace a child node
249 # IXMLDOMNode arg0 --- newChild [IN]
250 # IXMLDOMNode arg1 --- oldChild [IN]
251 def replaceChild(arg0, arg1)
252 ret = _invoke(14, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_BYREF|VT_DISPATCH])
253 @lastargs = WIN32OLE::ARGV
254 ret
255 end
256
257 # IXMLDOMNode removeChild
258 # remove a child node
259 # IXMLDOMNode arg0 --- childNode [IN]
260 def removeChild(arg0)
261 ret = _invoke(15, [arg0], [VT_BYREF|VT_DISPATCH])
262 @lastargs = WIN32OLE::ARGV
263 ret
264 end
265
266 # IXMLDOMNode appendChild
267 # append a child node
268 # IXMLDOMNode arg0 --- newChild [IN]
269 def appendChild(arg0)
270 ret = _invoke(16, [arg0], [VT_BYREF|VT_DISPATCH])
271 @lastargs = WIN32OLE::ARGV
272 ret
273 end
274
275 # BOOL hasChildNodes
276 def hasChildNodes()
277 ret = _invoke(17, [], [])
278 @lastargs = WIN32OLE::ARGV
279 ret
280 end
281
282 # IXMLDOMNode cloneNode
283 # BOOL arg0 --- deep [IN]
284 def cloneNode(arg0)
285 ret = _invoke(19, [arg0], [VT_BOOL])
286 @lastargs = WIN32OLE::ARGV
287 ret
288 end
289
290 # BSTR transformNode
291 # apply the stylesheet to the subtree
292 # IXMLDOMNode arg0 --- stylesheet [IN]
293 def transformNode(arg0)
294 ret = _invoke(28, [arg0], [VT_BYREF|VT_DISPATCH])
295 @lastargs = WIN32OLE::ARGV
296 ret
297 end
298
299 # IXMLDOMNodeList selectNodes
300 # execute query on the subtree
301 # BSTR arg0 --- queryString [IN]
302 def selectNodes(arg0)
303 ret = _invoke(29, [arg0], [VT_BSTR])
304 @lastargs = WIN32OLE::ARGV
305 ret
306 end
307
308 # IXMLDOMNode selectSingleNode
309 # execute query on the subtree
310 # BSTR arg0 --- queryString [IN]
311 def selectSingleNode(arg0)
312 ret = _invoke(30, [arg0], [VT_BSTR])
313 @lastargs = WIN32OLE::ARGV
314 ret
315 end
316
317 # VOID transformNodeToObject
318 # apply the stylesheet to the subtree, returning the result through a document or a stream
319 # IXMLDOMNode arg0 --- stylesheet [IN]
320 # VARIANT arg1 --- outputObject [IN]
321 def transformNodeToObject(arg0, arg1)
322 ret = _invoke(35, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
323 @lastargs = WIN32OLE::ARGV
324 ret
325 end
326 end
327
328 # Constants that define a node's type
329 module OLEtagDOMNodeType
330 include WIN32OLE::VARIANT
331 attr_reader :lastargs
332 NODE_INVALID = 0
333 NODE_ELEMENT = 1
334 NODE_ATTRIBUTE = 2
335 NODE_TEXT = 3
336 NODE_CDATA_SECTION = 4
337 NODE_ENTITY_REFERENCE = 5
338 NODE_ENTITY = 6
339 NODE_PROCESSING_INSTRUCTION = 7
340 NODE_COMMENT = 8
341 NODE_DOCUMENT = 9
342 NODE_DOCUMENT_TYPE = 10
343 NODE_DOCUMENT_FRAGMENT = 11
344 NODE_NOTATION = 12
345 end
346
347 #
348 module IXMLDOMNodeList
349 include WIN32OLE::VARIANT
350 attr_reader :lastargs
351
352 # I4 length
353 # number of nodes in the collection
354 def length()
355 ret = _getproperty(74, [], [])
356 @lastargs = WIN32OLE::ARGV
357 ret
358 end
359
360 # PTR item
361 # collection of nodes
362 # I4 arg0 --- index [IN]
363 def item
364 OLEProperty.new(self, 0, [VT_I4], [VT_I4, VT_BYREF|VT_DISPATCH])
365 end
366
367 # IXMLDOMNode nextNode
368 # get next node from iterator
369 def nextNode()
370 ret = _invoke(76, [], [])
371 @lastargs = WIN32OLE::ARGV
372 ret
373 end
374
375 # VOID reset
376 # reset the position of iterator
377 def reset()
378 ret = _invoke(77, [], [])
379 @lastargs = WIN32OLE::ARGV
380 ret
381 end
382 end
383
384 #
385 module IXMLDOMNamedNodeMap
386 include WIN32OLE::VARIANT
387 attr_reader :lastargs
388
389 # I4 length
390 # number of nodes in the collection
391 def length()
392 ret = _getproperty(74, [], [])
393 @lastargs = WIN32OLE::ARGV
394 ret
395 end
396
397 # PTR item
398 # collection of nodes
399 # I4 arg0 --- index [IN]
400 def item
401 OLEProperty.new(self, 0, [VT_I4], [VT_I4, VT_BYREF|VT_DISPATCH])
402 end
403
404 # IXMLDOMNode getNamedItem
405 # lookup item by name
406 # BSTR arg0 --- name [IN]
407 def getNamedItem(arg0)
408 ret = _invoke(83, [arg0], [VT_BSTR])
409 @lastargs = WIN32OLE::ARGV
410 ret
411 end
412
413 # IXMLDOMNode setNamedItem
414 # set item by name
415 # IXMLDOMNode arg0 --- newItem [IN]
416 def setNamedItem(arg0)
417 ret = _invoke(84, [arg0], [VT_BYREF|VT_DISPATCH])
418 @lastargs = WIN32OLE::ARGV
419 ret
420 end
421
422 # IXMLDOMNode removeNamedItem
423 # remove item by name
424 # BSTR arg0 --- name [IN]
425 def removeNamedItem(arg0)
426 ret = _invoke(85, [arg0], [VT_BSTR])
427 @lastargs = WIN32OLE::ARGV
428 ret
429 end
430
431 # IXMLDOMNode getQualifiedItem
432 # lookup the item by name and namespace
433 # BSTR arg0 --- baseName [IN]
434 # BSTR arg1 --- namespaceURI [IN]
435 def getQualifiedItem(arg0, arg1)
436 ret = _invoke(87, [arg0, arg1], [VT_BSTR, VT_BSTR])
437 @lastargs = WIN32OLE::ARGV
438 ret
439 end
440
441 # IXMLDOMNode removeQualifiedItem
442 # remove the item by name and namespace
443 # BSTR arg0 --- baseName [IN]
444 # BSTR arg1 --- namespaceURI [IN]
445 def removeQualifiedItem(arg0, arg1)
446 ret = _invoke(88, [arg0, arg1], [VT_BSTR, VT_BSTR])
447 @lastargs = WIN32OLE::ARGV
448 ret
449 end
450
451 # IXMLDOMNode nextNode
452 # get next node from iterator
453 def nextNode()
454 ret = _invoke(89, [], [])
455 @lastargs = WIN32OLE::ARGV
456 ret
457 end
458
459 # VOID reset
460 # reset the position of iterator
461 def reset()
462 ret = _invoke(90, [], [])
463 @lastargs = WIN32OLE::ARGV
464 ret
465 end
466 end
467
468 #
469 module IXMLDOMDocument
470 include WIN32OLE::VARIANT
471 attr_reader :lastargs
472
473 # BSTR nodeName
474 # name of the node
475 def nodeName()
476 ret = _getproperty(2, [], [])
477 @lastargs = WIN32OLE::ARGV
478 ret
479 end
480
481 # VARIANT nodeValue
482 # value stored in the node
483 def nodeValue()
484 ret = _getproperty(3, [], [])
485 @lastargs = WIN32OLE::ARGV
486 ret
487 end
488
489 # DOMNodeType nodeType
490 # the node's type
491 def nodeType()
492 ret = _getproperty(4, [], [])
493 @lastargs = WIN32OLE::ARGV
494 ret
495 end
496
497 # IXMLDOMNode parentNode
498 # parent of the node
499 def parentNode()
500 ret = _getproperty(6, [], [])
501 @lastargs = WIN32OLE::ARGV
502 ret
503 end
504
505 # IXMLDOMNodeList childNodes
506 # the collection of the node's children
507 def childNodes()
508 ret = _getproperty(7, [], [])
509 @lastargs = WIN32OLE::ARGV
510 ret
511 end
512
513 # IXMLDOMNode firstChild
514 # first child of the node
515 def firstChild()
516 ret = _getproperty(8, [], [])
517 @lastargs = WIN32OLE::ARGV
518 ret
519 end
520
521 # IXMLDOMNode lastChild
522 # first child of the node
523 def lastChild()
524 ret = _getproperty(9, [], [])
525 @lastargs = WIN32OLE::ARGV
526 ret
527 end
528
529 # IXMLDOMNode previousSibling
530 # left sibling of the node
531 def previousSibling()
532 ret = _getproperty(10, [], [])
533 @lastargs = WIN32OLE::ARGV
534 ret
535 end
536
537 # IXMLDOMNode nextSibling
538 # right sibling of the node
539 def nextSibling()
540 ret = _getproperty(11, [], [])
541 @lastargs = WIN32OLE::ARGV
542 ret
543 end
544
545 # IXMLDOMNamedNodeMap attributes
546 # the collection of the node's attributes
547 def attributes()
548 ret = _getproperty(12, [], [])
549 @lastargs = WIN32OLE::ARGV
550 ret
551 end
552
553 # IXMLDOMDocument ownerDocument
554 # document that contains the node
555 def ownerDocument()
556 ret = _getproperty(18, [], [])
557 @lastargs = WIN32OLE::ARGV
558 ret
559 end
560
561 # BSTR nodeTypeString
562 # the type of node in string form
563 def nodeTypeString()
564 ret = _getproperty(21, [], [])
565 @lastargs = WIN32OLE::ARGV
566 ret
567 end
568
569 # BSTR text
570 # text content of the node and subtree
571 def text()
572 ret = _getproperty(24, [], [])
573 @lastargs = WIN32OLE::ARGV
574 ret
575 end
576
577 # BOOL specified
578 # indicates whether node is a default value
579 def specified()
580 ret = _getproperty(22, [], [])
581 @lastargs = WIN32OLE::ARGV
582 ret
583 end
584
585 # IXMLDOMNode definition
586 # pointer to the definition of the node in the DTD or schema
587 def definition()
588 ret = _getproperty(23, [], [])
589 @lastargs = WIN32OLE::ARGV
590 ret
591 end
592
593 # VARIANT nodeTypedValue
594 # get the strongly typed value of the node
595 def nodeTypedValue()
596 ret = _getproperty(25, [], [])
597 @lastargs = WIN32OLE::ARGV
598 ret
599 end
600
601 # VARIANT dataType
602 # the data type of the node
603 def dataType()
604 ret = _getproperty(26, [], [])
605 @lastargs = WIN32OLE::ARGV
606 ret
607 end
608
609 # BSTR xml
610 # return the XML source for the node and each of its descendants
611 def xml()
612 ret = _getproperty(27, [], [])
613 @lastargs = WIN32OLE::ARGV
614 ret
615 end
616
617 # BOOL parsed
618 # has sub-tree been completely parsed
619 def parsed()
620 ret = _getproperty(31, [], [])
621 @lastargs = WIN32OLE::ARGV
622 ret
623 end
624
625 # BSTR namespaceURI
626 # the URI for the namespace applying to the node
627 def namespaceURI()
628 ret = _getproperty(32, [], [])
629 @lastargs = WIN32OLE::ARGV
630 ret
631 end
632
633 # BSTR prefix
634 # the prefix for the namespace applying to the node
635 def prefix()
636 ret = _getproperty(33, [], [])
637 @lastargs = WIN32OLE::ARGV
638 ret
639 end
640
641 # BSTR baseName
642 # the base name of the node (nodename with the prefix stripped off)
643 def baseName()
644 ret = _getproperty(34, [], [])
645 @lastargs = WIN32OLE::ARGV
646 ret
647 end
648
649 # IXMLDOMDocumentType doctype
650 # node corresponding to the DOCTYPE
651 def doctype()
652 ret = _getproperty(38, [], [])
653 @lastargs = WIN32OLE::ARGV
654 ret
655 end
656
657 # IXMLDOMImplementation implementation
658 # info on this DOM implementation
659 def implementation()
660 ret = _getproperty(39, [], [])
661 @lastargs = WIN32OLE::ARGV
662 ret
663 end
664
665 # IXMLDOMElement documentElement
666 # the root of the tree
667 def documentElement()
668 ret = _getproperty(40, [], [])
669 @lastargs = WIN32OLE::ARGV
670 ret
671 end
672
673 # I4 readyState
674 # get the state of the XML document
675 def readyState()
676 ret = _getproperty(-525, [], [])
677 @lastargs = WIN32OLE::ARGV
678 ret
679 end
680
681 # IXMLDOMParseError parseError
682 # get the last parser error
683 def parseError()
684 ret = _getproperty(59, [], [])
685 @lastargs = WIN32OLE::ARGV
686 ret
687 end
688
689 # BSTR url
690 # get the URL for the loaded XML document
691 def url()
692 ret = _getproperty(60, [], [])
693 @lastargs = WIN32OLE::ARGV
694 ret
695 end
696
697 # BOOL async
698 # flag for asynchronous download
699 def async()
700 ret = _getproperty(61, [], [])
701 @lastargs = WIN32OLE::ARGV
702 ret
703 end
704
705 # BOOL validateOnParse
706 # indicates whether the parser performs validation
707 def validateOnParse()
708 ret = _getproperty(65, [], [])
709 @lastargs = WIN32OLE::ARGV
710 ret
711 end
712
713 # BOOL resolveExternals
714 # indicates whether the parser resolves references to external DTD/Entities/Schema
715 def resolveExternals()
716 ret = _getproperty(66, [], [])
717 @lastargs = WIN32OLE::ARGV
718 ret
719 end
720
721 # BOOL preserveWhiteSpace
722 # indicates whether the parser preserves whitespace
723 def preserveWhiteSpace()
724 ret = _getproperty(67, [], [])
725 @lastargs = WIN32OLE::ARGV
726 ret
727 end
728
729 # VOID nodeValue
730 # value stored in the node
731 def nodeValue=(arg0)
732 ret = _setproperty(3, [arg0], [VT_VARIANT])
733 @lastargs = WIN32OLE::ARGV
734 ret
735 end
736
737 # VOID text
738 # text content of the node and subtree
739 def text=(arg0)
740 ret = _setproperty(24, [arg0], [VT_BSTR])
741 @lastargs = WIN32OLE::ARGV
742 ret
743 end
744
745 # VOID nodeTypedValue
746 # get the strongly typed value of the node
747 def nodeTypedValue=(arg0)
748 ret = _setproperty(25, [arg0], [VT_VARIANT])
749 @lastargs = WIN32OLE::ARGV
750 ret
751 end
752
753 # VOID dataType
754 # the data type of the node
755 def dataType=(arg0)
756 ret = _setproperty(26, [arg0], [VT_VARIANT])
757 @lastargs = WIN32OLE::ARGV
758 ret
759 end
760
761 # VOID async
762 # flag for asynchronous download
763 def async=(arg0)
764 ret = _setproperty(61, [arg0], [VT_BOOL])
765 @lastargs = WIN32OLE::ARGV
766 ret
767 end
768
769 # VOID validateOnParse
770 # indicates whether the parser performs validation
771 def validateOnParse=(arg0)
772 ret = _setproperty(65, [arg0], [VT_BOOL])
773 @lastargs = WIN32OLE::ARGV
774 ret
775 end
776
777 # VOID resolveExternals
778 # indicates whether the parser resolves references to external DTD/Entities/Schema
779 def resolveExternals=(arg0)
780 ret = _setproperty(66, [arg0], [VT_BOOL])
781 @lastargs = WIN32OLE::ARGV
782 ret
783 end
784
785 # VOID preserveWhiteSpace
786 # indicates whether the parser preserves whitespace
787 def preserveWhiteSpace=(arg0)
788 ret = _setproperty(67, [arg0], [VT_BOOL])
789 @lastargs = WIN32OLE::ARGV
790 ret
791 end
792
793 # VOID onreadystatechange
794 # register a readystatechange event handler
795 def onreadystatechange=(arg0)
796 ret = _setproperty(68, [arg0], [VT_VARIANT])
797 @lastargs = WIN32OLE::ARGV
798 ret
799 end
800
801 # VOID ondataavailable
802 # register an ondataavailable event handler
803 def ondataavailable=(arg0)
804 ret = _setproperty(69, [arg0], [VT_VARIANT])
805 @lastargs = WIN32OLE::ARGV
806 ret
807 end
808
809 # VOID ontransformnode
810 # register an ontransformnode event handler
811 def ontransformnode=(arg0)
812 ret = _setproperty(70, [arg0], [VT_VARIANT])
813 @lastargs = WIN32OLE::ARGV
814 ret
815 end
816
817 # IXMLDOMNode insertBefore
818 # insert a child node
819 # IXMLDOMNode arg0 --- newChild [IN]
820 # VARIANT arg1 --- refChild [IN]
821 def insertBefore(arg0, arg1)
822 ret = _invoke(13, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
823 @lastargs = WIN32OLE::ARGV
824 ret
825 end
826
827 # IXMLDOMNode replaceChild
828 # replace a child node
829 # IXMLDOMNode arg0 --- newChild [IN]
830 # IXMLDOMNode arg1 --- oldChild [IN]
831 def replaceChild(arg0, arg1)
832 ret = _invoke(14, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_BYREF|VT_DISPATCH])
833 @lastargs = WIN32OLE::ARGV
834 ret
835 end
836
837 # IXMLDOMNode removeChild
838 # remove a child node
839 # IXMLDOMNode arg0 --- childNode [IN]
840 def removeChild(arg0)
841 ret = _invoke(15, [arg0], [VT_BYREF|VT_DISPATCH])
842 @lastargs = WIN32OLE::ARGV
843 ret
844 end
845
846 # IXMLDOMNode appendChild
847 # append a child node
848 # IXMLDOMNode arg0 --- newChild [IN]
849 def appendChild(arg0)
850 ret = _invoke(16, [arg0], [VT_BYREF|VT_DISPATCH])
851 @lastargs = WIN32OLE::ARGV
852 ret
853 end
854
855 # BOOL hasChildNodes
856 def hasChildNodes()
857 ret = _invoke(17, [], [])
858 @lastargs = WIN32OLE::ARGV
859 ret
860 end
861
862 # IXMLDOMNode cloneNode
863 # BOOL arg0 --- deep [IN]
864 def cloneNode(arg0)
865 ret = _invoke(19, [arg0], [VT_BOOL])
866 @lastargs = WIN32OLE::ARGV
867 ret
868 end
869
870 # BSTR transformNode
871 # apply the stylesheet to the subtree
872 # IXMLDOMNode arg0 --- stylesheet [IN]
873 def transformNode(arg0)
874 ret = _invoke(28, [arg0], [VT_BYREF|VT_DISPATCH])
875 @lastargs = WIN32OLE::ARGV
876 ret
877 end
878
879 # IXMLDOMNodeList selectNodes
880 # execute query on the subtree
881 # BSTR arg0 --- queryString [IN]
882 def selectNodes(arg0)
883 ret = _invoke(29, [arg0], [VT_BSTR])
884 @lastargs = WIN32OLE::ARGV
885 ret
886 end
887
888 # IXMLDOMNode selectSingleNode
889 # execute query on the subtree
890 # BSTR arg0 --- queryString [IN]
891 def selectSingleNode(arg0)
892 ret = _invoke(30, [arg0], [VT_BSTR])
893 @lastargs = WIN32OLE::ARGV
894 ret
895 end
896
897 # VOID transformNodeToObject
898 # apply the stylesheet to the subtree, returning the result through a document or a stream
899 # IXMLDOMNode arg0 --- stylesheet [IN]
900 # VARIANT arg1 --- outputObject [IN]
901 def transformNodeToObject(arg0, arg1)
902 ret = _invoke(35, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
903 @lastargs = WIN32OLE::ARGV
904 ret
905 end
906
907 # IXMLDOMElement createElement
908 # create an Element node
909 # BSTR arg0 --- tagName [IN]
910 def createElement(arg0)
911 ret = _invoke(41, [arg0], [VT_BSTR])
912 @lastargs = WIN32OLE::ARGV
913 ret
914 end
915
916 # IXMLDOMDocumentFragment createDocumentFragment
917 # create a DocumentFragment node
918 def createDocumentFragment()
919 ret = _invoke(42, [], [])
920 @lastargs = WIN32OLE::ARGV
921 ret
922 end
923
924 # IXMLDOMText createTextNode
925 # create a text node
926 # BSTR arg0 --- data [IN]
927 def createTextNode(arg0)
928 ret = _invoke(43, [arg0], [VT_BSTR])
929 @lastargs = WIN32OLE::ARGV
930 ret
931 end
932
933 # IXMLDOMComment createComment
934 # create a comment node
935 # BSTR arg0 --- data [IN]
936 def createComment(arg0)
937 ret = _invoke(44, [arg0], [VT_BSTR])
938 @lastargs = WIN32OLE::ARGV
939 ret
940 end
941
942 # IXMLDOMCDATASection createCDATASection
943 # create a CDATA section node
944 # BSTR arg0 --- data [IN]
945 def createCDATASection(arg0)
946 ret = _invoke(45, [arg0], [VT_BSTR])
947 @lastargs = WIN32OLE::ARGV
948 ret
949 end
950
951 # IXMLDOMProcessingInstruction createProcessingInstruction
952 # create a processing instruction node
953 # BSTR arg0 --- target [IN]
954 # BSTR arg1 --- data [IN]
955 def createProcessingInstruction(arg0, arg1)
956 ret = _invoke(46, [arg0, arg1], [VT_BSTR, VT_BSTR])
957 @lastargs = WIN32OLE::ARGV
958 ret
959 end
960
961 # IXMLDOMAttribute createAttribute
962 # create an attribute node
963 # BSTR arg0 --- name [IN]
964 def createAttribute(arg0)
965 ret = _invoke(47, [arg0], [VT_BSTR])
966 @lastargs = WIN32OLE::ARGV
967 ret
968 end
969
970 # IXMLDOMEntityReference createEntityReference
971 # create an entity reference node
972 # BSTR arg0 --- name [IN]
973 def createEntityReference(arg0)
974 ret = _invoke(49, [arg0], [VT_BSTR])
975 @lastargs = WIN32OLE::ARGV
976 ret
977 end
978
979 # IXMLDOMNodeList getElementsByTagName
980 # build a list of elements by name
981 # BSTR arg0 --- tagName [IN]
982 def getElementsByTagName(arg0)
983 ret = _invoke(50, [arg0], [VT_BSTR])
984 @lastargs = WIN32OLE::ARGV
985 ret
986 end
987
988 # IXMLDOMNode createNode
989 # create a node of the specified node type and name
990 # VARIANT arg0 --- type [IN]
991 # BSTR arg1 --- name [IN]
992 # BSTR arg2 --- namespaceURI [IN]
993 def createNode(arg0, arg1, arg2)
994 ret = _invoke(54, [arg0, arg1, arg2], [VT_VARIANT, VT_BSTR, VT_BSTR])
995 @lastargs = WIN32OLE::ARGV
996 ret
997 end
998
999 # IXMLDOMNode nodeFromID
1000 # retrieve node from it's ID
1001 # BSTR arg0 --- idString [IN]
1002 def nodeFromID(arg0)
1003 ret = _invoke(56, [arg0], [VT_BSTR])
1004 @lastargs = WIN32OLE::ARGV
1005 ret
1006 end
1007
1008 # BOOL load
1009 # load document from the specified XML source
1010 # VARIANT arg0 --- xmlSource [IN]
1011 def load(arg0)
1012 ret = _invoke(58, [arg0], [VT_VARIANT])
1013 @lastargs = WIN32OLE::ARGV
1014 ret
1015 end
1016
1017 # VOID abort
1018 # abort an asynchronous download
1019 def abort()
1020 ret = _invoke(62, [], [])
1021 @lastargs = WIN32OLE::ARGV
1022 ret
1023 end
1024
1025 # BOOL loadXML
1026 # load the document from a string
1027 # BSTR arg0 --- bstrXML [IN]
1028 def loadXML(arg0)
1029 ret = _invoke(63, [arg0], [VT_BSTR])
1030 @lastargs = WIN32OLE::ARGV
1031 ret
1032 end
1033
1034 # VOID save
1035 # save the document to a specified destination
1036 # VARIANT arg0 --- destination [IN]
1037 def save(arg0)
1038 ret = _invoke(64, [arg0], [VT_VARIANT])
1039 @lastargs = WIN32OLE::ARGV
1040 ret
1041 end
1042 end
1043
1044 #
1045 module IXMLDOMDocumentType
1046 include WIN32OLE::VARIANT
1047 attr_reader :lastargs
1048
1049 # BSTR nodeName
1050 # name of the node
1051 def nodeName()
1052 ret = _getproperty(2, [], [])
1053 @lastargs = WIN32OLE::ARGV
1054 ret
1055 end
1056
1057 # VARIANT nodeValue
1058 # value stored in the node
1059 def nodeValue()
1060 ret = _getproperty(3, [], [])
1061 @lastargs = WIN32OLE::ARGV
1062 ret
1063 end
1064
1065 # DOMNodeType nodeType
1066 # the node's type
1067 def nodeType()
1068 ret = _getproperty(4, [], [])
1069 @lastargs = WIN32OLE::ARGV
1070 ret
1071 end
1072
1073 # IXMLDOMNode parentNode
1074 # parent of the node
1075 def parentNode()
1076 ret = _getproperty(6, [], [])
1077 @lastargs = WIN32OLE::ARGV
1078 ret
1079 end
1080
1081 # IXMLDOMNodeList childNodes
1082 # the collection of the node's children
1083 def childNodes()
1084 ret = _getproperty(7, [], [])
1085 @lastargs = WIN32OLE::ARGV
1086 ret
1087 end
1088
1089 # IXMLDOMNode firstChild
1090 # first child of the node
1091 def firstChild()
1092 ret = _getproperty(8, [], [])
1093 @lastargs = WIN32OLE::ARGV
1094 ret
1095 end
1096
1097 # IXMLDOMNode lastChild
1098 # first child of the node
1099 def lastChild()
1100 ret = _getproperty(9, [], [])
1101 @lastargs = WIN32OLE::ARGV
1102 ret
1103 end
1104
1105 # IXMLDOMNode previousSibling
1106 # left sibling of the node
1107 def previousSibling()
1108 ret = _getproperty(10, [], [])
1109 @lastargs = WIN32OLE::ARGV
1110 ret
1111 end
1112
1113 # IXMLDOMNode nextSibling
1114 # right sibling of the node
1115 def nextSibling()
1116 ret = _getproperty(11, [], [])
1117 @lastargs = WIN32OLE::ARGV
1118 ret
1119 end
1120
1121 # IXMLDOMNamedNodeMap attributes
1122 # the collection of the node's attributes
1123 def attributes()
1124 ret = _getproperty(12, [], [])
1125 @lastargs = WIN32OLE::ARGV
1126 ret
1127 end
1128
1129 # IXMLDOMDocument ownerDocument
1130 # document that contains the node
1131 def ownerDocument()
1132 ret = _getproperty(18, [], [])
1133 @lastargs = WIN32OLE::ARGV
1134 ret
1135 end
1136
1137 # BSTR nodeTypeString
1138 # the type of node in string form
1139 def nodeTypeString()
1140 ret = _getproperty(21, [], [])
1141 @lastargs = WIN32OLE::ARGV
1142 ret
1143 end
1144
1145 # BSTR text
1146 # text content of the node and subtree
1147 def text()
1148 ret = _getproperty(24, [], [])
1149 @lastargs = WIN32OLE::ARGV
1150 ret
1151 end
1152
1153 # BOOL specified
1154 # indicates whether node is a default value
1155 def specified()
1156 ret = _getproperty(22, [], [])
1157 @lastargs = WIN32OLE::ARGV
1158 ret
1159 end
1160
1161 # IXMLDOMNode definition
1162 # pointer to the definition of the node in the DTD or schema
1163 def definition()
1164 ret = _getproperty(23, [], [])
1165 @lastargs = WIN32OLE::ARGV
1166 ret
1167 end
1168
1169 # VARIANT nodeTypedValue
1170 # get the strongly typed value of the node
1171 def nodeTypedValue()
1172 ret = _getproperty(25, [], [])
1173 @lastargs = WIN32OLE::ARGV
1174 ret
1175 end
1176
1177 # VARIANT dataType
1178 # the data type of the node
1179 def dataType()
1180 ret = _getproperty(26, [], [])
1181 @lastargs = WIN32OLE::ARGV
1182 ret
1183 end
1184
1185 # BSTR xml
1186 # return the XML source for the node and each of its descendants
1187 def xml()
1188 ret = _getproperty(27, [], [])
1189 @lastargs = WIN32OLE::ARGV
1190 ret
1191 end
1192
1193 # BOOL parsed
1194 # has sub-tree been completely parsed
1195 def parsed()
1196 ret = _getproperty(31, [], [])
1197 @lastargs = WIN32OLE::ARGV
1198 ret
1199 end
1200
1201 # BSTR namespaceURI
1202 # the URI for the namespace applying to the node
1203 def namespaceURI()
1204 ret = _getproperty(32, [], [])
1205 @lastargs = WIN32OLE::ARGV
1206 ret
1207 end
1208
1209 # BSTR prefix
1210 # the prefix for the namespace applying to the node
1211 def prefix()
1212 ret = _getproperty(33, [], [])
1213 @lastargs = WIN32OLE::ARGV
1214 ret
1215 end
1216
1217 # BSTR baseName
1218 # the base name of the node (nodename with the prefix stripped off)
1219 def baseName()
1220 ret = _getproperty(34, [], [])
1221 @lastargs = WIN32OLE::ARGV
1222 ret
1223 end
1224
1225 # BSTR name
1226 # name of the document type (root of the tree)
1227 def name()
1228 ret = _getproperty(131, [], [])
1229 @lastargs = WIN32OLE::ARGV
1230 ret
1231 end
1232
1233 # IXMLDOMNamedNodeMap entities
1234 # a list of entities in the document
1235 def entities()
1236 ret = _getproperty(132, [], [])
1237 @lastargs = WIN32OLE::ARGV
1238 ret
1239 end
1240
1241 # IXMLDOMNamedNodeMap notations
1242 # a list of notations in the document
1243 def notations()
1244 ret = _getproperty(133, [], [])
1245 @lastargs = WIN32OLE::ARGV
1246 ret
1247 end
1248
1249 # VOID nodeValue
1250 # value stored in the node
1251 def nodeValue=(arg0)
1252 ret = _setproperty(3, [arg0], [VT_VARIANT])
1253 @lastargs = WIN32OLE::ARGV
1254 ret
1255 end
1256
1257 # VOID text
1258 # text content of the node and subtree
1259 def text=(arg0)
1260 ret = _setproperty(24, [arg0], [VT_BSTR])
1261 @lastargs = WIN32OLE::ARGV
1262 ret
1263 end
1264
1265 # VOID nodeTypedValue
1266 # get the strongly typed value of the node
1267 def nodeTypedValue=(arg0)
1268 ret = _setproperty(25, [arg0], [VT_VARIANT])
1269 @lastargs = WIN32OLE::ARGV
1270 ret
1271 end
1272
1273 # VOID dataType
1274 # the data type of the node
1275 def dataType=(arg0)
1276 ret = _setproperty(26, [arg0], [VT_VARIANT])
1277 @lastargs = WIN32OLE::ARGV
1278 ret
1279 end
1280
1281 # IXMLDOMNode insertBefore
1282 # insert a child node
1283 # IXMLDOMNode arg0 --- newChild [IN]
1284 # VARIANT arg1 --- refChild [IN]
1285 def insertBefore(arg0, arg1)
1286 ret = _invoke(13, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
1287 @lastargs = WIN32OLE::ARGV
1288 ret
1289 end
1290
1291 # IXMLDOMNode replaceChild
1292 # replace a child node
1293 # IXMLDOMNode arg0 --- newChild [IN]
1294 # IXMLDOMNode arg1 --- oldChild [IN]
1295 def replaceChild(arg0, arg1)
1296 ret = _invoke(14, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_BYREF|VT_DISPATCH])
1297 @lastargs = WIN32OLE::ARGV
1298 ret
1299 end
1300
1301 # IXMLDOMNode removeChild
1302 # remove a child node
1303 # IXMLDOMNode arg0 --- childNode [IN]
1304 def removeChild(arg0)
1305 ret = _invoke(15, [arg0], [VT_BYREF|VT_DISPATCH])
1306 @lastargs = WIN32OLE::ARGV
1307 ret
1308 end
1309
1310 # IXMLDOMNode appendChild
1311 # append a child node
1312 # IXMLDOMNode arg0 --- newChild [IN]
1313 def appendChild(arg0)
1314 ret = _invoke(16, [arg0], [VT_BYREF|VT_DISPATCH])
1315 @lastargs = WIN32OLE::ARGV
1316 ret
1317 end
1318
1319 # BOOL hasChildNodes
1320 def hasChildNodes()
1321 ret = _invoke(17, [], [])
1322 @lastargs = WIN32OLE::ARGV
1323 ret
1324 end
1325
1326 # IXMLDOMNode cloneNode
1327 # BOOL arg0 --- deep [IN]
1328 def cloneNode(arg0)
1329 ret = _invoke(19, [arg0], [VT_BOOL])
1330 @lastargs = WIN32OLE::ARGV
1331 ret
1332 end
1333
1334 # BSTR transformNode
1335 # apply the stylesheet to the subtree
1336 # IXMLDOMNode arg0 --- stylesheet [IN]
1337 def transformNode(arg0)
1338 ret = _invoke(28, [arg0], [VT_BYREF|VT_DISPATCH])
1339 @lastargs = WIN32OLE::ARGV
1340 ret
1341 end
1342
1343 # IXMLDOMNodeList selectNodes
1344 # execute query on the subtree
1345 # BSTR arg0 --- queryString [IN]
1346 def selectNodes(arg0)
1347 ret = _invoke(29, [arg0], [VT_BSTR])
1348 @lastargs = WIN32OLE::ARGV
1349 ret
1350 end
1351
1352 # IXMLDOMNode selectSingleNode
1353 # execute query on the subtree
1354 # BSTR arg0 --- queryString [IN]
1355 def selectSingleNode(arg0)
1356 ret = _invoke(30, [arg0], [VT_BSTR])
1357 @lastargs = WIN32OLE::ARGV
1358 ret
1359 end
1360
1361 # VOID transformNodeToObject
1362 # apply the stylesheet to the subtree, returning the result through a document or a stream
1363 # IXMLDOMNode arg0 --- stylesheet [IN]
1364 # VARIANT arg1 --- outputObject [IN]
1365 def transformNodeToObject(arg0, arg1)
1366 ret = _invoke(35, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
1367 @lastargs = WIN32OLE::ARGV
1368 ret
1369 end
1370 end
1371
1372 #
1373 module IXMLDOMElement
1374 include WIN32OLE::VARIANT
1375 attr_reader :lastargs
1376
1377 # BSTR nodeName
1378 # name of the node
1379 def nodeName()
1380 ret = _getproperty(2, [], [])
1381 @lastargs = WIN32OLE::ARGV
1382 ret
1383 end
1384
1385 # VARIANT nodeValue
1386 # value stored in the node
1387 def nodeValue()
1388 ret = _getproperty(3, [], [])
1389 @lastargs = WIN32OLE::ARGV
1390 ret
1391 end
1392
1393 # DOMNodeType nodeType
1394 # the node's type
1395 def nodeType()
1396 ret = _getproperty(4, [], [])
1397 @lastargs = WIN32OLE::ARGV
1398 ret
1399 end
1400
1401 # IXMLDOMNode parentNode
1402 # parent of the node
1403 def parentNode()
1404 ret = _getproperty(6, [], [])
1405 @lastargs = WIN32OLE::ARGV
1406 ret
1407 end
1408
1409 # IXMLDOMNodeList childNodes
1410 # the collection of the node's children
1411 def childNodes()
1412 ret = _getproperty(7, [], [])
1413 @lastargs = WIN32OLE::ARGV
1414 ret
1415 end
1416
1417 # IXMLDOMNode firstChild
1418 # first child of the node
1419 def firstChild()
1420 ret = _getproperty(8, [], [])
1421 @lastargs = WIN32OLE::ARGV
1422 ret
1423 end
1424
1425 # IXMLDOMNode lastChild
1426 # first child of the node
1427 def lastChild()
1428 ret = _getproperty(9, [], [])
1429 @lastargs = WIN32OLE::ARGV
1430 ret
1431 end
1432
1433 # IXMLDOMNode previousSibling
1434 # left sibling of the node
1435 def previousSibling()
1436 ret = _getproperty(10, [], [])
1437 @lastargs = WIN32OLE::ARGV
1438 ret
1439 end
1440
1441 # IXMLDOMNode nextSibling
1442 # right sibling of the node
1443 def nextSibling()
1444 ret = _getproperty(11, [], [])
1445 @lastargs = WIN32OLE::ARGV
1446 ret
1447 end
1448
1449 # IXMLDOMNamedNodeMap attributes
1450 # the collection of the node's attributes
1451 def attributes()
1452 ret = _getproperty(12, [], [])
1453 @lastargs = WIN32OLE::ARGV
1454 ret
1455 end
1456
1457 # IXMLDOMDocument ownerDocument
1458 # document that contains the node
1459 def ownerDocument()
1460 ret = _getproperty(18, [], [])
1461 @lastargs = WIN32OLE::ARGV
1462 ret
1463 end
1464
1465 # BSTR nodeTypeString
1466 # the type of node in string form
1467 def nodeTypeString()
1468 ret = _getproperty(21, [], [])
1469 @lastargs = WIN32OLE::ARGV
1470 ret
1471 end
1472
1473 # BSTR text
1474 # text content of the node and subtree
1475 def text()
1476 ret = _getproperty(24, [], [])
1477 @lastargs = WIN32OLE::ARGV
1478 ret
1479 end
1480
1481 # BOOL specified
1482 # indicates whether node is a default value
1483 def specified()
1484 ret = _getproperty(22, [], [])
1485 @lastargs = WIN32OLE::ARGV
1486 ret
1487 end
1488
1489 # IXMLDOMNode definition
1490 # pointer to the definition of the node in the DTD or schema
1491 def definition()
1492 ret = _getproperty(23, [], [])
1493 @lastargs = WIN32OLE::ARGV
1494 ret
1495 end
1496
1497 # VARIANT nodeTypedValue
1498 # get the strongly typed value of the node
1499 def nodeTypedValue()
1500 ret = _getproperty(25, [], [])
1501 @lastargs = WIN32OLE::ARGV
1502 ret
1503 end
1504
1505 # VARIANT dataType
1506 # the data type of the node
1507 def dataType()
1508 ret = _getproperty(26, [], [])
1509 @lastargs = WIN32OLE::ARGV
1510 ret
1511 end
1512
1513 # BSTR xml
1514 # return the XML source for the node and each of its descendants
1515 def xml()
1516 ret = _getproperty(27, [], [])
1517 @lastargs = WIN32OLE::ARGV
1518 ret
1519 end
1520
1521 # BOOL parsed
1522 # has sub-tree been completely parsed
1523 def parsed()
1524 ret = _getproperty(31, [], [])
1525 @lastargs = WIN32OLE::ARGV
1526 ret
1527 end
1528
1529 # BSTR namespaceURI
1530 # the URI for the namespace applying to the node
1531 def namespaceURI()
1532 ret = _getproperty(32, [], [])
1533 @lastargs = WIN32OLE::ARGV
1534 ret
1535 end
1536
1537 # BSTR prefix
1538 # the prefix for the namespace applying to the node
1539 def prefix()
1540 ret = _getproperty(33, [], [])
1541 @lastargs = WIN32OLE::ARGV
1542 ret
1543 end
1544
1545 # BSTR baseName
1546 # the base name of the node (nodename with the prefix stripped off)
1547 def baseName()
1548 ret = _getproperty(34, [], [])
1549 @lastargs = WIN32OLE::ARGV
1550 ret
1551 end
1552
1553 # BSTR tagName
1554 # get the tagName of the element
1555 def tagName()
1556 ret = _getproperty(97, [], [])
1557 @lastargs = WIN32OLE::ARGV
1558 ret
1559 end
1560
1561 # VOID nodeValue
1562 # value stored in the node
1563 def nodeValue=(arg0)
1564 ret = _setproperty(3, [arg0], [VT_VARIANT])
1565 @lastargs = WIN32OLE::ARGV
1566 ret
1567 end
1568
1569 # VOID text
1570 # text content of the node and subtree
1571 def text=(arg0)
1572 ret = _setproperty(24, [arg0], [VT_BSTR])
1573 @lastargs = WIN32OLE::ARGV
1574 ret
1575 end
1576
1577 # VOID nodeTypedValue
1578 # get the strongly typed value of the node
1579 def nodeTypedValue=(arg0)
1580 ret = _setproperty(25, [arg0], [VT_VARIANT])
1581 @lastargs = WIN32OLE::ARGV
1582 ret
1583 end
1584
1585 # VOID dataType
1586 # the data type of the node
1587 def dataType=(arg0)
1588 ret = _setproperty(26, [arg0], [VT_VARIANT])
1589 @lastargs = WIN32OLE::ARGV
1590 ret
1591 end
1592
1593 # IXMLDOMNode insertBefore
1594 # insert a child node
1595 # IXMLDOMNode arg0 --- newChild [IN]
1596 # VARIANT arg1 --- refChild [IN]
1597 def insertBefore(arg0, arg1)
1598 ret = _invoke(13, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
1599 @lastargs = WIN32OLE::ARGV
1600 ret
1601 end
1602
1603 # IXMLDOMNode replaceChild
1604 # replace a child node
1605 # IXMLDOMNode arg0 --- newChild [IN]
1606 # IXMLDOMNode arg1 --- oldChild [IN]
1607 def replaceChild(arg0, arg1)
1608 ret = _invoke(14, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_BYREF|VT_DISPATCH])
1609 @lastargs = WIN32OLE::ARGV
1610 ret
1611 end
1612
1613 # IXMLDOMNode removeChild
1614 # remove a child node
1615 # IXMLDOMNode arg0 --- childNode [IN]
1616 def removeChild(arg0)
1617 ret = _invoke(15, [arg0], [VT_BYREF|VT_DISPATCH])
1618 @lastargs = WIN32OLE::ARGV
1619 ret
1620 end
1621
1622 # IXMLDOMNode appendChild
1623 # append a child node
1624 # IXMLDOMNode arg0 --- newChild [IN]
1625 def appendChild(arg0)
1626 ret = _invoke(16, [arg0], [VT_BYREF|VT_DISPATCH])
1627 @lastargs = WIN32OLE::ARGV
1628 ret
1629 end
1630
1631 # BOOL hasChildNodes
1632 def hasChildNodes()
1633 ret = _invoke(17, [], [])
1634 @lastargs = WIN32OLE::ARGV
1635 ret
1636 end
1637
1638 # IXMLDOMNode cloneNode
1639 # BOOL arg0 --- deep [IN]
1640 def cloneNode(arg0)
1641 ret = _invoke(19, [arg0], [VT_BOOL])
1642 @lastargs = WIN32OLE::ARGV
1643 ret
1644 end
1645
1646 # BSTR transformNode
1647 # apply the stylesheet to the subtree
1648 # IXMLDOMNode arg0 --- stylesheet [IN]
1649 def transformNode(arg0)
1650 ret = _invoke(28, [arg0], [VT_BYREF|VT_DISPATCH])
1651 @lastargs = WIN32OLE::ARGV
1652 ret
1653 end
1654
1655 # IXMLDOMNodeList selectNodes
1656 # execute query on the subtree
1657 # BSTR arg0 --- queryString [IN]
1658 def selectNodes(arg0)
1659 ret = _invoke(29, [arg0], [VT_BSTR])
1660 @lastargs = WIN32OLE::ARGV
1661 ret
1662 end
1663
1664 # IXMLDOMNode selectSingleNode
1665 # execute query on the subtree
1666 # BSTR arg0 --- queryString [IN]
1667 def selectSingleNode(arg0)
1668 ret = _invoke(30, [arg0], [VT_BSTR])
1669 @lastargs = WIN32OLE::ARGV
1670 ret
1671 end
1672
1673 # VOID transformNodeToObject
1674 # apply the stylesheet to the subtree, returning the result through a document or a stream
1675 # IXMLDOMNode arg0 --- stylesheet [IN]
1676 # VARIANT arg1 --- outputObject [IN]
1677 def transformNodeToObject(arg0, arg1)
1678 ret = _invoke(35, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
1679 @lastargs = WIN32OLE::ARGV
1680 ret
1681 end
1682
1683 # VARIANT getAttribute
1684 # look up the string value of an attribute by name
1685 # BSTR arg0 --- name [IN]
1686 def getAttribute(arg0)
1687 ret = _invoke(99, [arg0], [VT_BSTR])
1688 @lastargs = WIN32OLE::ARGV
1689 ret
1690 end
1691
1692 # VOID setAttribute
1693 # set the string value of an attribute by name
1694 # BSTR arg0 --- name [IN]
1695 # VARIANT arg1 --- value [IN]
1696 def setAttribute(arg0, arg1)
1697 ret = _invoke(100, [arg0, arg1], [VT_BSTR, VT_VARIANT])
1698 @lastargs = WIN32OLE::ARGV
1699 ret
1700 end
1701
1702 # VOID removeAttribute
1703 # remove an attribute by name
1704 # BSTR arg0 --- name [IN]
1705 def removeAttribute(arg0)
1706 ret = _invoke(101, [arg0], [VT_BSTR])
1707 @lastargs = WIN32OLE::ARGV
1708 ret
1709 end
1710
1711 # IXMLDOMAttribute getAttributeNode
1712 # look up the attribute node by name
1713 # BSTR arg0 --- name [IN]
1714 def getAttributeNode(arg0)
1715 ret = _invoke(102, [arg0], [VT_BSTR])
1716 @lastargs = WIN32OLE::ARGV
1717 ret
1718 end
1719
1720 # IXMLDOMAttribute setAttributeNode
1721 # set the specified attribute on the element
1722 # IXMLDOMAttribute arg0 --- DOMAttribute [IN]
1723 def setAttributeNode(arg0)
1724 ret = _invoke(103, [arg0], [VT_BYREF|VT_DISPATCH])
1725 @lastargs = WIN32OLE::ARGV
1726 ret
1727 end
1728
1729 # IXMLDOMAttribute removeAttributeNode
1730 # remove the specified attribute
1731 # IXMLDOMAttribute arg0 --- DOMAttribute [IN]
1732 def removeAttributeNode(arg0)
1733 ret = _invoke(104, [arg0], [VT_BYREF|VT_DISPATCH])
1734 @lastargs = WIN32OLE::ARGV
1735 ret
1736 end
1737
1738 # IXMLDOMNodeList getElementsByTagName
1739 # build a list of elements by name
1740 # BSTR arg0 --- tagName [IN]
1741 def getElementsByTagName(arg0)
1742 ret = _invoke(105, [arg0], [VT_BSTR])
1743 @lastargs = WIN32OLE::ARGV
1744 ret
1745 end
1746
1747 # VOID normalize
1748 # collapse all adjacent text nodes in sub-tree
1749 def normalize()
1750 ret = _invoke(106, [], [])
1751 @lastargs = WIN32OLE::ARGV
1752 ret
1753 end
1754 end
1755
1756 #
1757 module IXMLDOMAttribute
1758 include WIN32OLE::VARIANT
1759 attr_reader :lastargs
1760
1761 # BSTR nodeName
1762 # name of the node
1763 def nodeName()
1764 ret = _getproperty(2, [], [])
1765 @lastargs = WIN32OLE::ARGV
1766 ret
1767 end
1768
1769 # VARIANT nodeValue
1770 # value stored in the node
1771 def nodeValue()
1772 ret = _getproperty(3, [], [])
1773 @lastargs = WIN32OLE::ARGV
1774 ret
1775 end
1776
1777 # DOMNodeType nodeType
1778 # the node's type
1779 def nodeType()
1780 ret = _getproperty(4, [], [])
1781 @lastargs = WIN32OLE::ARGV
1782 ret
1783 end
1784
1785 # IXMLDOMNode parentNode
1786 # parent of the node
1787 def parentNode()
1788 ret = _getproperty(6, [], [])
1789 @lastargs = WIN32OLE::ARGV
1790 ret
1791 end
1792
1793 # IXMLDOMNodeList childNodes
1794 # the collection of the node's children
1795 def childNodes()
1796 ret = _getproperty(7, [], [])
1797 @lastargs = WIN32OLE::ARGV
1798 ret
1799 end
1800
1801 # IXMLDOMNode firstChild
1802 # first child of the node
1803 def firstChild()
1804 ret = _getproperty(8, [], [])
1805 @lastargs = WIN32OLE::ARGV
1806 ret
1807 end
1808
1809 # IXMLDOMNode lastChild
1810 # first child of the node
1811 def lastChild()
1812 ret = _getproperty(9, [], [])
1813 @lastargs = WIN32OLE::ARGV
1814 ret
1815 end
1816
1817 # IXMLDOMNode previousSibling
1818 # left sibling of the node
1819 def previousSibling()
1820 ret = _getproperty(10, [], [])
1821 @lastargs = WIN32OLE::ARGV
1822 ret
1823 end
1824
1825 # IXMLDOMNode nextSibling
1826 # right sibling of the node
1827 def nextSibling()
1828 ret = _getproperty(11, [], [])
1829 @lastargs = WIN32OLE::ARGV
1830 ret
1831 end
1832
1833 # IXMLDOMNamedNodeMap attributes
1834 # the collection of the node's attributes
1835 def attributes()
1836 ret = _getproperty(12, [], [])
1837 @lastargs = WIN32OLE::ARGV
1838 ret
1839 end
1840
1841 # IXMLDOMDocument ownerDocument
1842 # document that contains the node
1843 def ownerDocument()
1844 ret = _getproperty(18, [], [])
1845 @lastargs = WIN32OLE::ARGV
1846 ret
1847 end
1848
1849 # BSTR nodeTypeString
1850 # the type of node in string form
1851 def nodeTypeString()
1852 ret = _getproperty(21, [], [])
1853 @lastargs = WIN32OLE::ARGV
1854 ret
1855 end
1856
1857 # BSTR text
1858 # text content of the node and subtree
1859 def text()
1860 ret = _getproperty(24, [], [])
1861 @lastargs = WIN32OLE::ARGV
1862 ret
1863 end
1864
1865 # BOOL specified
1866 # indicates whether node is a default value
1867 def specified()
1868 ret = _getproperty(22, [], [])
1869 @lastargs = WIN32OLE::ARGV
1870 ret
1871 end
1872
1873 # IXMLDOMNode definition
1874 # pointer to the definition of the node in the DTD or schema
1875 def definition()
1876 ret = _getproperty(23, [], [])
1877 @lastargs = WIN32OLE::ARGV
1878 ret
1879 end
1880
1881 # VARIANT nodeTypedValue
1882 # get the strongly typed value of the node
1883 def nodeTypedValue()
1884 ret = _getproperty(25, [], [])
1885 @lastargs = WIN32OLE::ARGV
1886 ret
1887 end
1888
1889 # VARIANT dataType
1890 # the data type of the node
1891 def dataType()
1892 ret = _getproperty(26, [], [])
1893 @lastargs = WIN32OLE::ARGV
1894 ret
1895 end
1896
1897 # BSTR xml
1898 # return the XML source for the node and each of its descendants
1899 def xml()
1900 ret = _getproperty(27, [], [])
1901 @lastargs = WIN32OLE::ARGV
1902 ret
1903 end
1904
1905 # BOOL parsed
1906 # has sub-tree been completely parsed
1907 def parsed()
1908 ret = _getproperty(31, [], [])
1909 @lastargs = WIN32OLE::ARGV
1910 ret
1911 end
1912
1913 # BSTR namespaceURI
1914 # the URI for the namespace applying to the node
1915 def namespaceURI()
1916 ret = _getproperty(32, [], [])
1917 @lastargs = WIN32OLE::ARGV
1918 ret
1919 end
1920
1921 # BSTR prefix
1922 # the prefix for the namespace applying to the node
1923 def prefix()
1924 ret = _getproperty(33, [], [])
1925 @lastargs = WIN32OLE::ARGV
1926 ret
1927 end
1928
1929 # BSTR baseName
1930 # the base name of the node (nodename with the prefix stripped off)
1931 def baseName()
1932 ret = _getproperty(34, [], [])
1933 @lastargs = WIN32OLE::ARGV
1934 ret
1935 end
1936
1937 # BSTR name
1938 # get name of the attribute
1939 def name()
1940 ret = _getproperty(118, [], [])
1941 @lastargs = WIN32OLE::ARGV
1942 ret
1943 end
1944
1945 # VARIANT value
1946 # string value of the attribute
1947 def value()
1948 ret = _getproperty(120, [], [])
1949 @lastargs = WIN32OLE::ARGV
1950 ret
1951 end
1952
1953 # VOID nodeValue
1954 # value stored in the node
1955 def nodeValue=(arg0)
1956 ret = _setproperty(3, [arg0], [VT_VARIANT])
1957 @lastargs = WIN32OLE::ARGV
1958 ret
1959 end
1960
1961 # VOID text
1962 # text content of the node and subtree
1963 def text=(arg0)
1964 ret = _setproperty(24, [arg0], [VT_BSTR])
1965 @lastargs = WIN32OLE::ARGV
1966 ret
1967 end
1968
1969 # VOID nodeTypedValue
1970 # get the strongly typed value of the node
1971 def nodeTypedValue=(arg0)
1972 ret = _setproperty(25, [arg0], [VT_VARIANT])
1973 @lastargs = WIN32OLE::ARGV
1974 ret
1975 end
1976
1977 # VOID dataType
1978 # the data type of the node
1979 def dataType=(arg0)
1980 ret = _setproperty(26, [arg0], [VT_VARIANT])
1981 @lastargs = WIN32OLE::ARGV
1982 ret
1983 end
1984
1985 # VOID value
1986 # string value of the attribute
1987 def value=(arg0)
1988 ret = _setproperty(120, [arg0], [VT_VARIANT])
1989 @lastargs = WIN32OLE::ARGV
1990 ret
1991 end
1992
1993 # IXMLDOMNode insertBefore
1994 # insert a child node
1995 # IXMLDOMNode arg0 --- newChild [IN]
1996 # VARIANT arg1 --- refChild [IN]
1997 def insertBefore(arg0, arg1)
1998 ret = _invoke(13, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
1999 @lastargs = WIN32OLE::ARGV
2000 ret
2001 end
2002
2003 # IXMLDOMNode replaceChild
2004 # replace a child node
2005 # IXMLDOMNode arg0 --- newChild [IN]
2006 # IXMLDOMNode arg1 --- oldChild [IN]
2007 def replaceChild(arg0, arg1)
2008 ret = _invoke(14, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_BYREF|VT_DISPATCH])
2009 @lastargs = WIN32OLE::ARGV
2010 ret
2011 end
2012
2013 # IXMLDOMNode removeChild
2014 # remove a child node
2015 # IXMLDOMNode arg0 --- childNode [IN]
2016 def removeChild(arg0)
2017 ret = _invoke(15, [arg0], [VT_BYREF|VT_DISPATCH])
2018 @lastargs = WIN32OLE::ARGV
2019 ret
2020 end
2021
2022 # IXMLDOMNode appendChild
2023 # append a child node
2024 # IXMLDOMNode arg0 --- newChild [IN]
2025 def appendChild(arg0)
2026 ret = _invoke(16, [arg0], [VT_BYREF|VT_DISPATCH])
2027 @lastargs = WIN32OLE::ARGV
2028 ret
2029 end
2030
2031 # BOOL hasChildNodes
2032 def hasChildNodes()
2033 ret = _invoke(17, [], [])
2034 @lastargs = WIN32OLE::ARGV
2035 ret
2036 end
2037
2038 # IXMLDOMNode cloneNode
2039 # BOOL arg0 --- deep [IN]
2040 def cloneNode(arg0)
2041 ret = _invoke(19, [arg0], [VT_BOOL])
2042 @lastargs = WIN32OLE::ARGV
2043 ret
2044 end
2045
2046 # BSTR transformNode
2047 # apply the stylesheet to the subtree
2048 # IXMLDOMNode arg0 --- stylesheet [IN]
2049 def transformNode(arg0)
2050 ret = _invoke(28, [arg0], [VT_BYREF|VT_DISPATCH])
2051 @lastargs = WIN32OLE::ARGV
2052 ret
2053 end
2054
2055 # IXMLDOMNodeList selectNodes
2056 # execute query on the subtree
2057 # BSTR arg0 --- queryString [IN]
2058 def selectNodes(arg0)
2059 ret = _invoke(29, [arg0], [VT_BSTR])
2060 @lastargs = WIN32OLE::ARGV
2061 ret
2062 end
2063
2064 # IXMLDOMNode selectSingleNode
2065 # execute query on the subtree
2066 # BSTR arg0 --- queryString [IN]
2067 def selectSingleNode(arg0)
2068 ret = _invoke(30, [arg0], [VT_BSTR])
2069 @lastargs = WIN32OLE::ARGV
2070 ret
2071 end
2072
2073 # VOID transformNodeToObject
2074 # apply the stylesheet to the subtree, returning the result through a document or a stream
2075 # IXMLDOMNode arg0 --- stylesheet [IN]
2076 # VARIANT arg1 --- outputObject [IN]
2077 def transformNodeToObject(arg0, arg1)
2078 ret = _invoke(35, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
2079 @lastargs = WIN32OLE::ARGV
2080 ret
2081 end
2082 end
2083
2084 #
2085 module IXMLDOMDocumentFragment
2086 include WIN32OLE::VARIANT
2087 attr_reader :lastargs
2088
2089 # BSTR nodeName
2090 # name of the node
2091 def nodeName()
2092 ret = _getproperty(2, [], [])
2093 @lastargs = WIN32OLE::ARGV
2094 ret
2095 end
2096
2097 # VARIANT nodeValue
2098 # value stored in the node
2099 def nodeValue()
2100 ret = _getproperty(3, [], [])
2101 @lastargs = WIN32OLE::ARGV
2102 ret
2103 end
2104
2105 # DOMNodeType nodeType
2106 # the node's type
2107 def nodeType()
2108 ret = _getproperty(4, [], [])
2109 @lastargs = WIN32OLE::ARGV
2110 ret
2111 end
2112
2113 # IXMLDOMNode parentNode
2114 # parent of the node
2115 def parentNode()
2116 ret = _getproperty(6, [], [])
2117 @lastargs = WIN32OLE::ARGV
2118 ret
2119 end
2120
2121 # IXMLDOMNodeList childNodes
2122 # the collection of the node's children
2123 def childNodes()
2124 ret = _getproperty(7, [], [])
2125 @lastargs = WIN32OLE::ARGV
2126 ret
2127 end
2128
2129 # IXMLDOMNode firstChild
2130 # first child of the node
2131 def firstChild()
2132 ret = _getproperty(8, [], [])
2133 @lastargs = WIN32OLE::ARGV
2134 ret
2135 end
2136
2137 # IXMLDOMNode lastChild
2138 # first child of the node
2139 def lastChild()
2140 ret = _getproperty(9, [], [])
2141 @lastargs = WIN32OLE::ARGV
2142 ret
2143 end
2144
2145 # IXMLDOMNode previousSibling
2146 # left sibling of the node
2147 def previousSibling()
2148 ret = _getproperty(10, [], [])
2149 @lastargs = WIN32OLE::ARGV
2150 ret
2151 end
2152
2153 # IXMLDOMNode nextSibling
2154 # right sibling of the node
2155 def nextSibling()
2156 ret = _getproperty(11, [], [])
2157 @lastargs = WIN32OLE::ARGV
2158 ret
2159 end
2160
2161 # IXMLDOMNamedNodeMap attributes
2162 # the collection of the node's attributes
2163 def attributes()
2164 ret = _getproperty(12, [], [])
2165 @lastargs = WIN32OLE::ARGV
2166 ret
2167 end
2168
2169 # IXMLDOMDocument ownerDocument
2170 # document that contains the node
2171 def ownerDocument()
2172 ret = _getproperty(18, [], [])
2173 @lastargs = WIN32OLE::ARGV
2174 ret
2175 end
2176
2177 # BSTR nodeTypeString
2178 # the type of node in string form
2179 def nodeTypeString()
2180 ret = _getproperty(21, [], [])
2181 @lastargs = WIN32OLE::ARGV
2182 ret
2183 end
2184
2185 # BSTR text
2186 # text content of the node and subtree
2187 def text()
2188 ret = _getproperty(24, [], [])
2189 @lastargs = WIN32OLE::ARGV
2190 ret
2191 end
2192
2193 # BOOL specified
2194 # indicates whether node is a default value
2195 def specified()
2196 ret = _getproperty(22, [], [])
2197 @lastargs = WIN32OLE::ARGV
2198 ret
2199 end
2200
2201 # IXMLDOMNode definition
2202 # pointer to the definition of the node in the DTD or schema
2203 def definition()
2204 ret = _getproperty(23, [], [])
2205 @lastargs = WIN32OLE::ARGV
2206 ret
2207 end
2208
2209 # VARIANT nodeTypedValue
2210 # get the strongly typed value of the node
2211 def nodeTypedValue()
2212 ret = _getproperty(25, [], [])
2213 @lastargs = WIN32OLE::ARGV
2214 ret
2215 end
2216
2217 # VARIANT dataType
2218 # the data type of the node
2219 def dataType()
2220 ret = _getproperty(26, [], [])
2221 @lastargs = WIN32OLE::ARGV
2222 ret
2223 end
2224
2225 # BSTR xml
2226 # return the XML source for the node and each of its descendants
2227 def xml()
2228 ret = _getproperty(27, [], [])
2229 @lastargs = WIN32OLE::ARGV
2230 ret
2231 end
2232
2233 # BOOL parsed
2234 # has sub-tree been completely parsed
2235 def parsed()
2236 ret = _getproperty(31, [], [])
2237 @lastargs = WIN32OLE::ARGV
2238 ret
2239 end
2240
2241 # BSTR namespaceURI
2242 # the URI for the namespace applying to the node
2243 def namespaceURI()
2244 ret = _getproperty(32, [], [])
2245 @lastargs = WIN32OLE::ARGV
2246 ret
2247 end
2248
2249 # BSTR prefix
2250 # the prefix for the namespace applying to the node
2251 def prefix()
2252 ret = _getproperty(33, [], [])
2253 @lastargs = WIN32OLE::ARGV
2254 ret
2255 end
2256
2257 # BSTR baseName
2258 # the base name of the node (nodename with the prefix stripped off)
2259 def baseName()
2260 ret = _getproperty(34, [], [])
2261 @lastargs = WIN32OLE::ARGV
2262 ret
2263 end
2264
2265 # VOID nodeValue
2266 # value stored in the node
2267 def nodeValue=(arg0)
2268 ret = _setproperty(3, [arg0], [VT_VARIANT])
2269 @lastargs = WIN32OLE::ARGV
2270 ret
2271 end
2272
2273 # VOID text
2274 # text content of the node and subtree
2275 def text=(arg0)
2276 ret = _setproperty(24, [arg0], [VT_BSTR])
2277 @lastargs = WIN32OLE::ARGV
2278 ret
2279 end
2280
2281 # VOID nodeTypedValue
2282 # get the strongly typed value of the node
2283 def nodeTypedValue=(arg0)
2284 ret = _setproperty(25, [arg0], [VT_VARIANT])
2285 @lastargs = WIN32OLE::ARGV
2286 ret
2287 end
2288
2289 # VOID dataType
2290 # the data type of the node
2291 def dataType=(arg0)
2292 ret = _setproperty(26, [arg0], [VT_VARIANT])
2293 @lastargs = WIN32OLE::ARGV
2294 ret
2295 end
2296
2297 # IXMLDOMNode insertBefore
2298 # insert a child node
2299 # IXMLDOMNode arg0 --- newChild [IN]
2300 # VARIANT arg1 --- refChild [IN]
2301 def insertBefore(arg0, arg1)
2302 ret = _invoke(13, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
2303 @lastargs = WIN32OLE::ARGV
2304 ret
2305 end
2306
2307 # IXMLDOMNode replaceChild
2308 # replace a child node
2309 # IXMLDOMNode arg0 --- newChild [IN]
2310 # IXMLDOMNode arg1 --- oldChild [IN]
2311 def replaceChild(arg0, arg1)
2312 ret = _invoke(14, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_BYREF|VT_DISPATCH])
2313 @lastargs = WIN32OLE::ARGV
2314 ret
2315 end
2316
2317 # IXMLDOMNode removeChild
2318 # remove a child node
2319 # IXMLDOMNode arg0 --- childNode [IN]
2320 def removeChild(arg0)
2321 ret = _invoke(15, [arg0], [VT_BYREF|VT_DISPATCH])
2322 @lastargs = WIN32OLE::ARGV
2323 ret
2324 end
2325
2326 # IXMLDOMNode appendChild
2327 # append a child node
2328 # IXMLDOMNode arg0 --- newChild [IN]
2329 def appendChild(arg0)
2330 ret = _invoke(16, [arg0], [VT_BYREF|VT_DISPATCH])
2331 @lastargs = WIN32OLE::ARGV
2332 ret
2333 end
2334
2335 # BOOL hasChildNodes
2336 def hasChildNodes()
2337 ret = _invoke(17, [], [])
2338 @lastargs = WIN32OLE::ARGV
2339 ret
2340 end
2341
2342 # IXMLDOMNode cloneNode
2343 # BOOL arg0 --- deep [IN]
2344 def cloneNode(arg0)
2345 ret = _invoke(19, [arg0], [VT_BOOL])
2346 @lastargs = WIN32OLE::ARGV
2347 ret
2348 end
2349
2350 # BSTR transformNode
2351 # apply the stylesheet to the subtree
2352 # IXMLDOMNode arg0 --- stylesheet [IN]
2353 def transformNode(arg0)
2354 ret = _invoke(28, [arg0], [VT_BYREF|VT_DISPATCH])
2355 @lastargs = WIN32OLE::ARGV
2356 ret
2357 end
2358
2359 # IXMLDOMNodeList selectNodes
2360 # execute query on the subtree
2361 # BSTR arg0 --- queryString [IN]
2362 def selectNodes(arg0)
2363 ret = _invoke(29, [arg0], [VT_BSTR])
2364 @lastargs = WIN32OLE::ARGV
2365 ret
2366 end
2367
2368 # IXMLDOMNode selectSingleNode
2369 # execute query on the subtree
2370 # BSTR arg0 --- queryString [IN]
2371 def selectSingleNode(arg0)
2372 ret = _invoke(30, [arg0], [VT_BSTR])
2373 @lastargs = WIN32OLE::ARGV
2374 ret
2375 end
2376
2377 # VOID transformNodeToObject
2378 # apply the stylesheet to the subtree, returning the result through a document or a stream
2379 # IXMLDOMNode arg0 --- stylesheet [IN]
2380 # VARIANT arg1 --- outputObject [IN]
2381 def transformNodeToObject(arg0, arg1)
2382 ret = _invoke(35, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
2383 @lastargs = WIN32OLE::ARGV
2384 ret
2385 end
2386 end
2387
2388 #
2389 module IXMLDOMText
2390 include WIN32OLE::VARIANT
2391 attr_reader :lastargs
2392
2393 # BSTR nodeName
2394 # name of the node
2395 def nodeName()
2396 ret = _getproperty(2, [], [])
2397 @lastargs = WIN32OLE::ARGV
2398 ret
2399 end
2400
2401 # VARIANT nodeValue
2402 # value stored in the node
2403 def nodeValue()
2404 ret = _getproperty(3, [], [])
2405 @lastargs = WIN32OLE::ARGV
2406 ret
2407 end
2408
2409 # DOMNodeType nodeType
2410 # the node's type
2411 def nodeType()
2412 ret = _getproperty(4, [], [])
2413 @lastargs = WIN32OLE::ARGV
2414 ret
2415 end
2416
2417 # IXMLDOMNode parentNode
2418 # parent of the node
2419 def parentNode()
2420 ret = _getproperty(6, [], [])
2421 @lastargs = WIN32OLE::ARGV
2422 ret
2423 end
2424
2425 # IXMLDOMNodeList childNodes
2426 # the collection of the node's children
2427 def childNodes()
2428 ret = _getproperty(7, [], [])
2429 @lastargs = WIN32OLE::ARGV
2430 ret
2431 end
2432
2433 # IXMLDOMNode firstChild
2434 # first child of the node
2435 def firstChild()
2436 ret = _getproperty(8, [], [])
2437 @lastargs = WIN32OLE::ARGV
2438 ret
2439 end
2440
2441 # IXMLDOMNode lastChild
2442 # first child of the node
2443 def lastChild()
2444 ret = _getproperty(9, [], [])
2445 @lastargs = WIN32OLE::ARGV
2446 ret
2447 end
2448
2449 # IXMLDOMNode previousSibling
2450 # left sibling of the node
2451 def previousSibling()
2452 ret = _getproperty(10, [], [])
2453 @lastargs = WIN32OLE::ARGV
2454 ret
2455 end
2456
2457 # IXMLDOMNode nextSibling
2458 # right sibling of the node
2459 def nextSibling()
2460 ret = _getproperty(11, [], [])
2461 @lastargs = WIN32OLE::ARGV
2462 ret
2463 end
2464
2465 # IXMLDOMNamedNodeMap attributes
2466 # the collection of the node's attributes
2467 def attributes()
2468 ret = _getproperty(12, [], [])
2469 @lastargs = WIN32OLE::ARGV
2470 ret
2471 end
2472
2473 # IXMLDOMDocument ownerDocument
2474 # document that contains the node
2475 def ownerDocument()
2476 ret = _getproperty(18, [], [])
2477 @lastargs = WIN32OLE::ARGV
2478 ret
2479 end
2480
2481 # BSTR nodeTypeString
2482 # the type of node in string form
2483 def nodeTypeString()
2484 ret = _getproperty(21, [], [])
2485 @lastargs = WIN32OLE::ARGV
2486 ret
2487 end
2488
2489 # BSTR text
2490 # text content of the node and subtree
2491 def text()
2492 ret = _getproperty(24, [], [])
2493 @lastargs = WIN32OLE::ARGV
2494 ret
2495 end
2496
2497 # BOOL specified
2498 # indicates whether node is a default value
2499 def specified()
2500 ret = _getproperty(22, [], [])
2501 @lastargs = WIN32OLE::ARGV
2502 ret
2503 end
2504
2505 # IXMLDOMNode definition
2506 # pointer to the definition of the node in the DTD or schema
2507 def definition()
2508 ret = _getproperty(23, [], [])
2509 @lastargs = WIN32OLE::ARGV
2510 ret
2511 end
2512
2513 # VARIANT nodeTypedValue
2514 # get the strongly typed value of the node
2515 def nodeTypedValue()
2516 ret = _getproperty(25, [], [])
2517 @lastargs = WIN32OLE::ARGV
2518 ret
2519 end
2520
2521 # VARIANT dataType
2522 # the data type of the node
2523 def dataType()
2524 ret = _getproperty(26, [], [])
2525 @lastargs = WIN32OLE::ARGV
2526 ret
2527 end
2528
2529 # BSTR xml
2530 # return the XML source for the node and each of its descendants
2531 def xml()
2532 ret = _getproperty(27, [], [])
2533 @lastargs = WIN32OLE::ARGV
2534 ret
2535 end
2536
2537 # BOOL parsed
2538 # has sub-tree been completely parsed
2539 def parsed()
2540 ret = _getproperty(31, [], [])
2541 @lastargs = WIN32OLE::ARGV
2542 ret
2543 end
2544
2545 # BSTR namespaceURI
2546 # the URI for the namespace applying to the node
2547 def namespaceURI()
2548 ret = _getproperty(32, [], [])
2549 @lastargs = WIN32OLE::ARGV
2550 ret
2551 end
2552
2553 # BSTR prefix
2554 # the prefix for the namespace applying to the node
2555 def prefix()
2556 ret = _getproperty(33, [], [])
2557 @lastargs = WIN32OLE::ARGV
2558 ret
2559 end
2560
2561 # BSTR baseName
2562 # the base name of the node (nodename with the prefix stripped off)
2563 def baseName()
2564 ret = _getproperty(34, [], [])
2565 @lastargs = WIN32OLE::ARGV
2566 ret
2567 end
2568
2569 # BSTR data
2570 # value of the node
2571 def data()
2572 ret = _getproperty(109, [], [])
2573 @lastargs = WIN32OLE::ARGV
2574 ret
2575 end
2576
2577 # I4 length
2578 # number of characters in value
2579 def length()
2580 ret = _getproperty(110, [], [])
2581 @lastargs = WIN32OLE::ARGV
2582 ret
2583 end
2584
2585 # VOID nodeValue
2586 # value stored in the node
2587 def nodeValue=(arg0)
2588 ret = _setproperty(3, [arg0], [VT_VARIANT])
2589 @lastargs = WIN32OLE::ARGV
2590 ret
2591 end
2592
2593 # VOID text
2594 # text content of the node and subtree
2595 def text=(arg0)
2596 ret = _setproperty(24, [arg0], [VT_BSTR])
2597 @lastargs = WIN32OLE::ARGV
2598 ret
2599 end
2600
2601 # VOID nodeTypedValue
2602 # get the strongly typed value of the node
2603 def nodeTypedValue=(arg0)
2604 ret = _setproperty(25, [arg0], [VT_VARIANT])
2605 @lastargs = WIN32OLE::ARGV
2606 ret
2607 end
2608
2609 # VOID dataType
2610 # the data type of the node
2611 def dataType=(arg0)
2612 ret = _setproperty(26, [arg0], [VT_VARIANT])
2613 @lastargs = WIN32OLE::ARGV
2614 ret
2615 end
2616
2617 # VOID data
2618 # value of the node
2619 def data=(arg0)
2620 ret = _setproperty(109, [arg0], [VT_BSTR])
2621 @lastargs = WIN32OLE::ARGV
2622 ret
2623 end
2624
2625 # IXMLDOMNode insertBefore
2626 # insert a child node
2627 # IXMLDOMNode arg0 --- newChild [IN]
2628 # VARIANT arg1 --- refChild [IN]
2629 def insertBefore(arg0, arg1)
2630 ret = _invoke(13, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
2631 @lastargs = WIN32OLE::ARGV
2632 ret
2633 end
2634
2635 # IXMLDOMNode replaceChild
2636 # replace a child node
2637 # IXMLDOMNode arg0 --- newChild [IN]
2638 # IXMLDOMNode arg1 --- oldChild [IN]
2639 def replaceChild(arg0, arg1)
2640 ret = _invoke(14, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_BYREF|VT_DISPATCH])
2641 @lastargs = WIN32OLE::ARGV
2642 ret
2643 end
2644
2645 # IXMLDOMNode removeChild
2646 # remove a child node
2647 # IXMLDOMNode arg0 --- childNode [IN]
2648 def removeChild(arg0)
2649 ret = _invoke(15, [arg0], [VT_BYREF|VT_DISPATCH])
2650 @lastargs = WIN32OLE::ARGV
2651 ret
2652 end
2653
2654 # IXMLDOMNode appendChild
2655 # append a child node
2656 # IXMLDOMNode arg0 --- newChild [IN]
2657 def appendChild(arg0)
2658 ret = _invoke(16, [arg0], [VT_BYREF|VT_DISPATCH])
2659 @lastargs = WIN32OLE::ARGV
2660 ret
2661 end
2662
2663 # BOOL hasChildNodes
2664 def hasChildNodes()
2665 ret = _invoke(17, [], [])
2666 @lastargs = WIN32OLE::ARGV
2667 ret
2668 end
2669
2670 # IXMLDOMNode cloneNode
2671 # BOOL arg0 --- deep [IN]
2672 def cloneNode(arg0)
2673 ret = _invoke(19, [arg0], [VT_BOOL])
2674 @lastargs = WIN32OLE::ARGV
2675 ret
2676 end
2677
2678 # BSTR transformNode
2679 # apply the stylesheet to the subtree
2680 # IXMLDOMNode arg0 --- stylesheet [IN]
2681 def transformNode(arg0)
2682 ret = _invoke(28, [arg0], [VT_BYREF|VT_DISPATCH])
2683 @lastargs = WIN32OLE::ARGV
2684 ret
2685 end
2686
2687 # IXMLDOMNodeList selectNodes
2688 # execute query on the subtree
2689 # BSTR arg0 --- queryString [IN]
2690 def selectNodes(arg0)
2691 ret = _invoke(29, [arg0], [VT_BSTR])
2692 @lastargs = WIN32OLE::ARGV
2693 ret
2694 end
2695
2696 # IXMLDOMNode selectSingleNode
2697 # execute query on the subtree
2698 # BSTR arg0 --- queryString [IN]
2699 def selectSingleNode(arg0)
2700 ret = _invoke(30, [arg0], [VT_BSTR])
2701 @lastargs = WIN32OLE::ARGV
2702 ret
2703 end
2704
2705 # VOID transformNodeToObject
2706 # apply the stylesheet to the subtree, returning the result through a document or a stream
2707 # IXMLDOMNode arg0 --- stylesheet [IN]
2708 # VARIANT arg1 --- outputObject [IN]
2709 def transformNodeToObject(arg0, arg1)
2710 ret = _invoke(35, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
2711 @lastargs = WIN32OLE::ARGV
2712 ret
2713 end
2714
2715 # BSTR substringData
2716 # retrieve substring of value
2717 # I4 arg0 --- offset [IN]
2718 # I4 arg1 --- count [IN]
2719 def substringData(arg0, arg1)
2720 ret = _invoke(111, [arg0, arg1], [VT_I4, VT_I4])
2721 @lastargs = WIN32OLE::ARGV
2722 ret
2723 end
2724
2725 # VOID appendData
2726 # append string to value
2727 # BSTR arg0 --- data [IN]
2728 def appendData(arg0)
2729 ret = _invoke(112, [arg0], [VT_BSTR])
2730 @lastargs = WIN32OLE::ARGV
2731 ret
2732 end
2733
2734 # VOID insertData
2735 # insert string into value
2736 # I4 arg0 --- offset [IN]
2737 # BSTR arg1 --- data [IN]
2738 def insertData(arg0, arg1)
2739 ret = _invoke(113, [arg0, arg1], [VT_I4, VT_BSTR])
2740 @lastargs = WIN32OLE::ARGV
2741 ret
2742 end
2743
2744 # VOID deleteData
2745 # delete string within the value
2746 # I4 arg0 --- offset [IN]
2747 # I4 arg1 --- count [IN]
2748 def deleteData(arg0, arg1)
2749 ret = _invoke(114, [arg0, arg1], [VT_I4, VT_I4])
2750 @lastargs = WIN32OLE::ARGV
2751 ret
2752 end
2753
2754 # VOID replaceData
2755 # replace string within the value
2756 # I4 arg0 --- offset [IN]
2757 # I4 arg1 --- count [IN]
2758 # BSTR arg2 --- data [IN]
2759 def replaceData(arg0, arg1, arg2)
2760 ret = _invoke(115, [arg0, arg1, arg2], [VT_I4, VT_I4, VT_BSTR])
2761 @lastargs = WIN32OLE::ARGV
2762 ret
2763 end
2764
2765 # IXMLDOMText splitText
2766 # split the text node into two text nodes at the position specified
2767 # I4 arg0 --- offset [IN]
2768 def splitText(arg0)
2769 ret = _invoke(123, [arg0], [VT_I4])
2770 @lastargs = WIN32OLE::ARGV
2771 ret
2772 end
2773 end
2774
2775 #
2776 module IXMLDOMCharacterData
2777 include WIN32OLE::VARIANT
2778 attr_reader :lastargs
2779
2780 # BSTR nodeName
2781 # name of the node
2782 def nodeName()
2783 ret = _getproperty(2, [], [])
2784 @lastargs = WIN32OLE::ARGV
2785 ret
2786 end
2787
2788 # VARIANT nodeValue
2789 # value stored in the node
2790 def nodeValue()
2791 ret = _getproperty(3, [], [])
2792 @lastargs = WIN32OLE::ARGV
2793 ret
2794 end
2795
2796 # DOMNodeType nodeType
2797 # the node's type
2798 def nodeType()
2799 ret = _getproperty(4, [], [])
2800 @lastargs = WIN32OLE::ARGV
2801 ret
2802 end
2803
2804 # IXMLDOMNode parentNode
2805 # parent of the node
2806 def parentNode()
2807 ret = _getproperty(6, [], [])
2808 @lastargs = WIN32OLE::ARGV
2809 ret
2810 end
2811
2812 # IXMLDOMNodeList childNodes
2813 # the collection of the node's children
2814 def childNodes()
2815 ret = _getproperty(7, [], [])
2816 @lastargs = WIN32OLE::ARGV
2817 ret
2818 end
2819
2820 # IXMLDOMNode firstChild
2821 # first child of the node
2822 def firstChild()
2823 ret = _getproperty(8, [], [])
2824 @lastargs = WIN32OLE::ARGV
2825 ret
2826 end
2827
2828 # IXMLDOMNode lastChild
2829 # first child of the node
2830 def lastChild()
2831 ret = _getproperty(9, [], [])
2832 @lastargs = WIN32OLE::ARGV
2833 ret
2834 end
2835
2836 # IXMLDOMNode previousSibling
2837 # left sibling of the node
2838 def previousSibling()
2839 ret = _getproperty(10, [], [])
2840 @lastargs = WIN32OLE::ARGV
2841 ret
2842 end
2843
2844 # IXMLDOMNode nextSibling
2845 # right sibling of the node
2846 def nextSibling()
2847 ret = _getproperty(11, [], [])
2848 @lastargs = WIN32OLE::ARGV
2849 ret
2850 end
2851
2852 # IXMLDOMNamedNodeMap attributes
2853 # the collection of the node's attributes
2854 def attributes()
2855 ret = _getproperty(12, [], [])
2856 @lastargs = WIN32OLE::ARGV
2857 ret
2858 end
2859
2860 # IXMLDOMDocument ownerDocument
2861 # document that contains the node
2862 def ownerDocument()
2863 ret = _getproperty(18, [], [])
2864 @lastargs = WIN32OLE::ARGV
2865 ret
2866 end
2867
2868 # BSTR nodeTypeString
2869 # the type of node in string form
2870 def nodeTypeString()
2871 ret = _getproperty(21, [], [])
2872 @lastargs = WIN32OLE::ARGV
2873 ret
2874 end
2875
2876 # BSTR text
2877 # text content of the node and subtree
2878 def text()
2879 ret = _getproperty(24, [], [])
2880 @lastargs = WIN32OLE::ARGV
2881 ret
2882 end
2883
2884 # BOOL specified
2885 # indicates whether node is a default value
2886 def specified()
2887 ret = _getproperty(22, [], [])
2888 @lastargs = WIN32OLE::ARGV
2889 ret
2890 end
2891
2892 # IXMLDOMNode definition
2893 # pointer to the definition of the node in the DTD or schema
2894 def definition()
2895 ret = _getproperty(23, [], [])
2896 @lastargs = WIN32OLE::ARGV
2897 ret
2898 end
2899
2900 # VARIANT nodeTypedValue
2901 # get the strongly typed value of the node
2902 def nodeTypedValue()
2903 ret = _getproperty(25, [], [])
2904 @lastargs = WIN32OLE::ARGV
2905 ret
2906 end
2907
2908 # VARIANT dataType
2909 # the data type of the node
2910 def dataType()
2911 ret = _getproperty(26, [], [])
2912 @lastargs = WIN32OLE::ARGV
2913 ret
2914 end
2915
2916 # BSTR xml
2917 # return the XML source for the node and each of its descendants
2918 def xml()
2919 ret = _getproperty(27, [], [])
2920 @lastargs = WIN32OLE::ARGV
2921 ret
2922 end
2923
2924 # BOOL parsed
2925 # has sub-tree been completely parsed
2926 def parsed()
2927 ret = _getproperty(31, [], [])
2928 @lastargs = WIN32OLE::ARGV
2929 ret
2930 end
2931
2932 # BSTR namespaceURI
2933 # the URI for the namespace applying to the node
2934 def namespaceURI()
2935 ret = _getproperty(32, [], [])
2936 @lastargs = WIN32OLE::ARGV
2937 ret
2938 end
2939
2940 # BSTR prefix
2941 # the prefix for the namespace applying to the node
2942 def prefix()
2943 ret = _getproperty(33, [], [])
2944 @lastargs = WIN32OLE::ARGV
2945 ret
2946 end
2947
2948 # BSTR baseName
2949 # the base name of the node (nodename with the prefix stripped off)
2950 def baseName()
2951 ret = _getproperty(34, [], [])
2952 @lastargs = WIN32OLE::ARGV
2953 ret
2954 end
2955
2956 # BSTR data
2957 # value of the node
2958 def data()
2959 ret = _getproperty(109, [], [])
2960 @lastargs = WIN32OLE::ARGV
2961 ret
2962 end
2963
2964 # I4 length
2965 # number of characters in value
2966 def length()
2967 ret = _getproperty(110, [], [])
2968 @lastargs = WIN32OLE::ARGV
2969 ret
2970 end
2971
2972 # VOID nodeValue
2973 # value stored in the node
2974 def nodeValue=(arg0)
2975 ret = _setproperty(3, [arg0], [VT_VARIANT])
2976 @lastargs = WIN32OLE::ARGV
2977 ret
2978 end
2979
2980 # VOID text
2981 # text content of the node and subtree
2982 def text=(arg0)
2983 ret = _setproperty(24, [arg0], [VT_BSTR])
2984 @lastargs = WIN32OLE::ARGV
2985 ret
2986 end
2987
2988 # VOID nodeTypedValue
2989 # get the strongly typed value of the node
2990 def nodeTypedValue=(arg0)
2991 ret = _setproperty(25, [arg0], [VT_VARIANT])
2992 @lastargs = WIN32OLE::ARGV
2993 ret
2994 end
2995
2996 # VOID dataType
2997 # the data type of the node
2998 def dataType=(arg0)
2999 ret = _setproperty(26, [arg0], [VT_VARIANT])
3000 @lastargs = WIN32OLE::ARGV
3001 ret
3002 end
3003
3004 # VOID data
3005 # value of the node
3006 def data=(arg0)
3007 ret = _setproperty(109, [arg0], [VT_BSTR])
3008 @lastargs = WIN32OLE::ARGV
3009 ret
3010 end
3011
3012 # IXMLDOMNode insertBefore
3013 # insert a child node
3014 # IXMLDOMNode arg0 --- newChild [IN]
3015 # VARIANT arg1 --- refChild [IN]
3016 def insertBefore(arg0, arg1)
3017 ret = _invoke(13, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
3018 @lastargs = WIN32OLE::ARGV
3019 ret
3020 end
3021
3022 # IXMLDOMNode replaceChild
3023 # replace a child node
3024 # IXMLDOMNode arg0 --- newChild [IN]
3025 # IXMLDOMNode arg1 --- oldChild [IN]
3026 def replaceChild(arg0, arg1)
3027 ret = _invoke(14, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_BYREF|VT_DISPATCH])
3028 @lastargs = WIN32OLE::ARGV
3029 ret
3030 end
3031
3032 # IXMLDOMNode removeChild
3033 # remove a child node
3034 # IXMLDOMNode arg0 --- childNode [IN]
3035 def removeChild(arg0)
3036 ret = _invoke(15, [arg0], [VT_BYREF|VT_DISPATCH])
3037 @lastargs = WIN32OLE::ARGV
3038 ret
3039 end
3040
3041 # IXMLDOMNode appendChild
3042 # append a child node
3043 # IXMLDOMNode arg0 --- newChild [IN]
3044 def appendChild(arg0)
3045 ret = _invoke(16, [arg0], [VT_BYREF|VT_DISPATCH])
3046 @lastargs = WIN32OLE::ARGV
3047 ret
3048 end
3049
3050 # BOOL hasChildNodes
3051 def hasChildNodes()
3052 ret = _invoke(17, [], [])
3053 @lastargs = WIN32OLE::ARGV
3054 ret
3055 end
3056
3057 # IXMLDOMNode cloneNode
3058 # BOOL arg0 --- deep [IN]
3059 def cloneNode(arg0)
3060 ret = _invoke(19, [arg0], [VT_BOOL])
3061 @lastargs = WIN32OLE::ARGV
3062 ret
3063 end
3064
3065 # BSTR transformNode
3066 # apply the stylesheet to the subtree
3067 # IXMLDOMNode arg0 --- stylesheet [IN]
3068 def transformNode(arg0)
3069 ret = _invoke(28, [arg0], [VT_BYREF|VT_DISPATCH])
3070 @lastargs = WIN32OLE::ARGV
3071 ret
3072 end
3073
3074 # IXMLDOMNodeList selectNodes
3075 # execute query on the subtree
3076 # BSTR arg0 --- queryString [IN]
3077 def selectNodes(arg0)
3078 ret = _invoke(29, [arg0], [VT_BSTR])
3079 @lastargs = WIN32OLE::ARGV
3080 ret
3081 end
3082
3083 # IXMLDOMNode selectSingleNode
3084 # execute query on the subtree
3085 # BSTR arg0 --- queryString [IN]
3086 def selectSingleNode(arg0)
3087 ret = _invoke(30, [arg0], [VT_BSTR])
3088 @lastargs = WIN32OLE::ARGV
3089 ret
3090 end
3091
3092 # VOID transformNodeToObject
3093 # apply the stylesheet to the subtree, returning the result through a document or a stream
3094 # IXMLDOMNode arg0 --- stylesheet [IN]
3095 # VARIANT arg1 --- outputObject [IN]
3096 def transformNodeToObject(arg0, arg1)
3097 ret = _invoke(35, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
3098 @lastargs = WIN32OLE::ARGV
3099 ret
3100 end
3101
3102 # BSTR substringData
3103 # retrieve substring of value
3104 # I4 arg0 --- offset [IN]
3105 # I4 arg1 --- count [IN]
3106 def substringData(arg0, arg1)
3107 ret = _invoke(111, [arg0, arg1], [VT_I4, VT_I4])
3108 @lastargs = WIN32OLE::ARGV
3109 ret
3110 end
3111
3112 # VOID appendData
3113 # append string to value
3114 # BSTR arg0 --- data [IN]
3115 def appendData(arg0)
3116 ret = _invoke(112, [arg0], [VT_BSTR])
3117 @lastargs = WIN32OLE::ARGV
3118 ret
3119 end
3120
3121 # VOID insertData
3122 # insert string into value
3123 # I4 arg0 --- offset [IN]
3124 # BSTR arg1 --- data [IN]
3125 def insertData(arg0, arg1)
3126 ret = _invoke(113, [arg0, arg1], [VT_I4, VT_BSTR])
3127 @lastargs = WIN32OLE::ARGV
3128 ret
3129 end
3130
3131 # VOID deleteData
3132 # delete string within the value
3133 # I4 arg0 --- offset [IN]
3134 # I4 arg1 --- count [IN]
3135 def deleteData(arg0, arg1)
3136 ret = _invoke(114, [arg0, arg1], [VT_I4, VT_I4])
3137 @lastargs = WIN32OLE::ARGV
3138 ret
3139 end
3140
3141 # VOID replaceData
3142 # replace string within the value
3143 # I4 arg0 --- offset [IN]
3144 # I4 arg1 --- count [IN]
3145 # BSTR arg2 --- data [IN]
3146 def replaceData(arg0, arg1, arg2)
3147 ret = _invoke(115, [arg0, arg1, arg2], [VT_I4, VT_I4, VT_BSTR])
3148 @lastargs = WIN32OLE::ARGV
3149 ret
3150 end
3151 end
3152
3153 #
3154 module IXMLDOMComment
3155 include WIN32OLE::VARIANT
3156 attr_reader :lastargs
3157
3158 # BSTR nodeName
3159 # name of the node
3160 def nodeName()
3161 ret = _getproperty(2, [], [])
3162 @lastargs = WIN32OLE::ARGV
3163 ret
3164 end
3165
3166 # VARIANT nodeValue
3167 # value stored in the node
3168 def nodeValue()
3169 ret = _getproperty(3, [], [])
3170 @lastargs = WIN32OLE::ARGV
3171 ret
3172 end
3173
3174 # DOMNodeType nodeType
3175 # the node's type
3176 def nodeType()
3177 ret = _getproperty(4, [], [])
3178 @lastargs = WIN32OLE::ARGV
3179 ret
3180 end
3181
3182 # IXMLDOMNode parentNode
3183 # parent of the node
3184 def parentNode()
3185 ret = _getproperty(6, [], [])
3186 @lastargs = WIN32OLE::ARGV
3187 ret
3188 end
3189
3190 # IXMLDOMNodeList childNodes
3191 # the collection of the node's children
3192 def childNodes()
3193 ret = _getproperty(7, [], [])
3194 @lastargs = WIN32OLE::ARGV
3195 ret
3196 end
3197
3198 # IXMLDOMNode firstChild
3199 # first child of the node
3200 def firstChild()
3201 ret = _getproperty(8, [], [])
3202 @lastargs = WIN32OLE::ARGV
3203 ret
3204 end
3205
3206 # IXMLDOMNode lastChild
3207 # first child of the node
3208 def lastChild()
3209 ret = _getproperty(9, [], [])
3210 @lastargs = WIN32OLE::ARGV
3211 ret
3212 end
3213
3214 # IXMLDOMNode previousSibling
3215 # left sibling of the node
3216 def previousSibling()
3217 ret = _getproperty(10, [], [])
3218 @lastargs = WIN32OLE::ARGV
3219 ret
3220 end
3221
3222 # IXMLDOMNode nextSibling
3223 # right sibling of the node
3224 def nextSibling()
3225 ret = _getproperty(11, [], [])
3226 @lastargs = WIN32OLE::ARGV
3227 ret
3228 end
3229
3230 # IXMLDOMNamedNodeMap attributes
3231 # the collection of the node's attributes
3232 def attributes()
3233 ret = _getproperty(12, [], [])
3234 @lastargs = WIN32OLE::ARGV
3235 ret
3236 end
3237
3238 # IXMLDOMDocument ownerDocument
3239 # document that contains the node
3240 def ownerDocument()
3241 ret = _getproperty(18, [], [])
3242 @lastargs = WIN32OLE::ARGV
3243 ret
3244 end
3245
3246 # BSTR nodeTypeString
3247 # the type of node in string form
3248 def nodeTypeString()
3249 ret = _getproperty(21, [], [])
3250 @lastargs = WIN32OLE::ARGV
3251 ret
3252 end
3253
3254 # BSTR text
3255 # text content of the node and subtree
3256 def text()
3257 ret = _getproperty(24, [], [])
3258 @lastargs = WIN32OLE::ARGV
3259 ret
3260 end
3261
3262 # BOOL specified
3263 # indicates whether node is a default value
3264 def specified()
3265 ret = _getproperty(22, [], [])
3266 @lastargs = WIN32OLE::ARGV
3267 ret
3268 end
3269
3270 # IXMLDOMNode definition
3271 # pointer to the definition of the node in the DTD or schema
3272 def definition()
3273 ret = _getproperty(23, [], [])
3274 @lastargs = WIN32OLE::ARGV
3275 ret
3276 end
3277
3278 # VARIANT nodeTypedValue
3279 # get the strongly typed value of the node
3280 def nodeTypedValue()
3281 ret = _getproperty(25, [], [])
3282 @lastargs = WIN32OLE::ARGV
3283 ret
3284 end
3285
3286 # VARIANT dataType
3287 # the data type of the node
3288 def dataType()
3289 ret = _getproperty(26, [], [])
3290 @lastargs = WIN32OLE::ARGV
3291 ret
3292 end
3293
3294 # BSTR xml
3295 # return the XML source for the node and each of its descendants
3296 def xml()
3297 ret = _getproperty(27, [], [])
3298 @lastargs = WIN32OLE::ARGV
3299 ret
3300 end
3301
3302 # BOOL parsed
3303 # has sub-tree been completely parsed
3304 def parsed()
3305 ret = _getproperty(31, [], [])
3306 @lastargs = WIN32OLE::ARGV
3307 ret
3308 end
3309
3310 # BSTR namespaceURI
3311 # the URI for the namespace applying to the node
3312 def namespaceURI()
3313 ret = _getproperty(32, [], [])
3314 @lastargs = WIN32OLE::ARGV
3315 ret
3316 end
3317
3318 # BSTR prefix
3319 # the prefix for the namespace applying to the node
3320 def prefix()
3321 ret = _getproperty(33, [], [])
3322 @lastargs = WIN32OLE::ARGV
3323 ret
3324 end
3325
3326 # BSTR baseName
3327 # the base name of the node (nodename with the prefix stripped off)
3328 def baseName()
3329 ret = _getproperty(34, [], [])
3330 @lastargs = WIN32OLE::ARGV
3331 ret
3332 end
3333
3334 # BSTR data
3335 # value of the node
3336 def data()
3337 ret = _getproperty(109, [], [])
3338 @lastargs = WIN32OLE::ARGV
3339 ret
3340 end
3341
3342 # I4 length
3343 # number of characters in value
3344 def length()
3345 ret = _getproperty(110, [], [])
3346 @lastargs = WIN32OLE::ARGV
3347 ret
3348 end
3349
3350 # VOID nodeValue
3351 # value stored in the node
3352 def nodeValue=(arg0)
3353 ret = _setproperty(3, [arg0], [VT_VARIANT])
3354 @lastargs = WIN32OLE::ARGV
3355 ret
3356 end
3357
3358 # VOID text
3359 # text content of the node and subtree
3360 def text=(arg0)
3361 ret = _setproperty(24, [arg0], [VT_BSTR])
3362 @lastargs = WIN32OLE::ARGV
3363 ret
3364 end
3365
3366 # VOID nodeTypedValue
3367 # get the strongly typed value of the node
3368 def nodeTypedValue=(arg0)
3369 ret = _setproperty(25, [arg0], [VT_VARIANT])
3370 @lastargs = WIN32OLE::ARGV
3371 ret
3372 end
3373
3374 # VOID dataType
3375 # the data type of the node
3376 def dataType=(arg0)
3377 ret = _setproperty(26, [arg0], [VT_VARIANT])
3378 @lastargs = WIN32OLE::ARGV
3379 ret
3380 end
3381
3382 # VOID data
3383 # value of the node
3384 def data=(arg0)
3385 ret = _setproperty(109, [arg0], [VT_BSTR])
3386 @lastargs = WIN32OLE::ARGV
3387 ret
3388 end
3389
3390 # IXMLDOMNode insertBefore
3391 # insert a child node
3392 # IXMLDOMNode arg0 --- newChild [IN]
3393 # VARIANT arg1 --- refChild [IN]
3394 def insertBefore(arg0, arg1)
3395 ret = _invoke(13, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
3396 @lastargs = WIN32OLE::ARGV
3397 ret
3398 end
3399
3400 # IXMLDOMNode replaceChild
3401 # replace a child node
3402 # IXMLDOMNode arg0 --- newChild [IN]
3403 # IXMLDOMNode arg1 --- oldChild [IN]
3404 def replaceChild(arg0, arg1)
3405 ret = _invoke(14, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_BYREF|VT_DISPATCH])
3406 @lastargs = WIN32OLE::ARGV
3407 ret
3408 end
3409
3410 # IXMLDOMNode removeChild
3411 # remove a child node
3412 # IXMLDOMNode arg0 --- childNode [IN]
3413 def removeChild(arg0)
3414 ret = _invoke(15, [arg0], [VT_BYREF|VT_DISPATCH])
3415 @lastargs = WIN32OLE::ARGV
3416 ret
3417 end
3418
3419 # IXMLDOMNode appendChild
3420 # append a child node
3421 # IXMLDOMNode arg0 --- newChild [IN]
3422 def appendChild(arg0)
3423 ret = _invoke(16, [arg0], [VT_BYREF|VT_DISPATCH])
3424 @lastargs = WIN32OLE::ARGV
3425 ret
3426 end
3427
3428 # BOOL hasChildNodes
3429 def hasChildNodes()
3430 ret = _invoke(17, [], [])
3431 @lastargs = WIN32OLE::ARGV
3432 ret
3433 end
3434
3435 # IXMLDOMNode cloneNode
3436 # BOOL arg0 --- deep [IN]
3437 def cloneNode(arg0)
3438 ret = _invoke(19, [arg0], [VT_BOOL])
3439 @lastargs = WIN32OLE::ARGV
3440 ret
3441 end
3442
3443 # BSTR transformNode
3444 # apply the stylesheet to the subtree
3445 # IXMLDOMNode arg0 --- stylesheet [IN]
3446 def transformNode(arg0)
3447 ret = _invoke(28, [arg0], [VT_BYREF|VT_DISPATCH])
3448 @lastargs = WIN32OLE::ARGV
3449 ret
3450 end
3451
3452 # IXMLDOMNodeList selectNodes
3453 # execute query on the subtree
3454 # BSTR arg0 --- queryString [IN]
3455 def selectNodes(arg0)
3456 ret = _invoke(29, [arg0], [VT_BSTR])
3457 @lastargs = WIN32OLE::ARGV
3458 ret
3459 end
3460
3461 # IXMLDOMNode selectSingleNode
3462 # execute query on the subtree
3463 # BSTR arg0 --- queryString [IN]
3464 def selectSingleNode(arg0)
3465 ret = _invoke(30, [arg0], [VT_BSTR])
3466 @lastargs = WIN32OLE::ARGV
3467 ret
3468 end
3469
3470 # VOID transformNodeToObject
3471 # apply the stylesheet to the subtree, returning the result through a document or a stream
3472 # IXMLDOMNode arg0 --- stylesheet [IN]
3473 # VARIANT arg1 --- outputObject [IN]
3474 def transformNodeToObject(arg0, arg1)
3475 ret = _invoke(35, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
3476 @lastargs = WIN32OLE::ARGV
3477 ret
3478 end
3479
3480 # BSTR substringData
3481 # retrieve substring of value
3482 # I4 arg0 --- offset [IN]
3483 # I4 arg1 --- count [IN]
3484 def substringData(arg0, arg1)
3485 ret = _invoke(111, [arg0, arg1], [VT_I4, VT_I4])
3486 @lastargs = WIN32OLE::ARGV
3487 ret
3488 end
3489
3490 # VOID appendData
3491 # append string to value
3492 # BSTR arg0 --- data [IN]
3493 def appendData(arg0)
3494 ret = _invoke(112, [arg0], [VT_BSTR])
3495 @lastargs = WIN32OLE::ARGV
3496 ret
3497 end
3498
3499 # VOID insertData
3500 # insert string into value
3501 # I4 arg0 --- offset [IN]
3502 # BSTR arg1 --- data [IN]
3503 def insertData(arg0, arg1)
3504 ret = _invoke(113, [arg0, arg1], [VT_I4, VT_BSTR])
3505 @lastargs = WIN32OLE::ARGV
3506 ret
3507 end
3508
3509 # VOID deleteData
3510 # delete string within the value
3511 # I4 arg0 --- offset [IN]
3512 # I4 arg1 --- count [IN]
3513 def deleteData(arg0, arg1)
3514 ret = _invoke(114, [arg0, arg1], [VT_I4, VT_I4])
3515 @lastargs = WIN32OLE::ARGV
3516 ret
3517 end
3518
3519 # VOID replaceData
3520 # replace string within the value
3521 # I4 arg0 --- offset [IN]
3522 # I4 arg1 --- count [IN]
3523 # BSTR arg2 --- data [IN]
3524 def replaceData(arg0, arg1, arg2)
3525 ret = _invoke(115, [arg0, arg1, arg2], [VT_I4, VT_I4, VT_BSTR])
3526 @lastargs = WIN32OLE::ARGV
3527 ret
3528 end
3529 end
3530
3531 #
3532 module IXMLDOMCDATASection
3533 include WIN32OLE::VARIANT
3534 attr_reader :lastargs
3535
3536 # BSTR nodeName
3537 # name of the node
3538 def nodeName()
3539 ret = _getproperty(2, [], [])
3540 @lastargs = WIN32OLE::ARGV
3541 ret
3542 end
3543
3544 # VARIANT nodeValue
3545 # value stored in the node
3546 def nodeValue()
3547 ret = _getproperty(3, [], [])
3548 @lastargs = WIN32OLE::ARGV
3549 ret
3550 end
3551
3552 # DOMNodeType nodeType
3553 # the node's type
3554 def nodeType()
3555 ret = _getproperty(4, [], [])
3556 @lastargs = WIN32OLE::ARGV
3557 ret
3558 end
3559
3560 # IXMLDOMNode parentNode
3561 # parent of the node
3562 def parentNode()
3563 ret = _getproperty(6, [], [])
3564 @lastargs = WIN32OLE::ARGV
3565 ret
3566 end
3567
3568 # IXMLDOMNodeList childNodes
3569 # the collection of the node's children
3570 def childNodes()
3571 ret = _getproperty(7, [], [])
3572 @lastargs = WIN32OLE::ARGV
3573 ret
3574 end
3575
3576 # IXMLDOMNode firstChild
3577 # first child of the node
3578 def firstChild()
3579 ret = _getproperty(8, [], [])
3580 @lastargs = WIN32OLE::ARGV
3581 ret
3582 end
3583
3584 # IXMLDOMNode lastChild
3585 # first child of the node
3586 def lastChild()
3587 ret = _getproperty(9, [], [])
3588 @lastargs = WIN32OLE::ARGV
3589 ret
3590 end
3591
3592 # IXMLDOMNode previousSibling
3593 # left sibling of the node
3594 def previousSibling()
3595 ret = _getproperty(10, [], [])
3596 @lastargs = WIN32OLE::ARGV
3597 ret
3598 end
3599
3600 # IXMLDOMNode nextSibling
3601 # right sibling of the node
3602 def nextSibling()
3603 ret = _getproperty(11, [], [])
3604 @lastargs = WIN32OLE::ARGV
3605 ret
3606 end
3607
3608 # IXMLDOMNamedNodeMap attributes
3609 # the collection of the node's attributes
3610 def attributes()
3611 ret = _getproperty(12, [], [])
3612 @lastargs = WIN32OLE::ARGV
3613 ret
3614 end
3615
3616 # IXMLDOMDocument ownerDocument
3617 # document that contains the node
3618 def ownerDocument()
3619 ret = _getproperty(18, [], [])
3620 @lastargs = WIN32OLE::ARGV
3621 ret
3622 end
3623
3624 # BSTR nodeTypeString
3625 # the type of node in string form
3626 def nodeTypeString()
3627 ret = _getproperty(21, [], [])
3628 @lastargs = WIN32OLE::ARGV
3629 ret
3630 end
3631
3632 # BSTR text
3633 # text content of the node and subtree
3634 def text()
3635 ret = _getproperty(24, [], [])
3636 @lastargs = WIN32OLE::ARGV
3637 ret
3638 end
3639
3640 # BOOL specified
3641 # indicates whether node is a default value
3642 def specified()
3643 ret = _getproperty(22, [], [])
3644 @lastargs = WIN32OLE::ARGV
3645 ret
3646 end
3647
3648 # IXMLDOMNode definition
3649 # pointer to the definition of the node in the DTD or schema
3650 def definition()
3651 ret = _getproperty(23, [], [])
3652 @lastargs = WIN32OLE::ARGV
3653 ret
3654 end
3655
3656 # VARIANT nodeTypedValue
3657 # get the strongly typed value of the node
3658 def nodeTypedValue()
3659 ret = _getproperty(25, [], [])
3660 @lastargs = WIN32OLE::ARGV
3661 ret
3662 end
3663
3664 # VARIANT dataType
3665 # the data type of the node
3666 def dataType()
3667 ret = _getproperty(26, [], [])
3668 @lastargs = WIN32OLE::ARGV
3669 ret
3670 end
3671
3672 # BSTR xml
3673 # return the XML source for the node and each of its descendants
3674 def xml()
3675 ret = _getproperty(27, [], [])
3676 @lastargs = WIN32OLE::ARGV
3677 ret
3678 end
3679
3680 # BOOL parsed
3681 # has sub-tree been completely parsed
3682 def parsed()
3683 ret = _getproperty(31, [], [])
3684 @lastargs = WIN32OLE::ARGV
3685 ret
3686 end
3687
3688 # BSTR namespaceURI
3689 # the URI for the namespace applying to the node
3690 def namespaceURI()
3691 ret = _getproperty(32, [], [])
3692 @lastargs = WIN32OLE::ARGV
3693 ret
3694 end
3695
3696 # BSTR prefix
3697 # the prefix for the namespace applying to the node
3698 def prefix()
3699 ret = _getproperty(33, [], [])
3700 @lastargs = WIN32OLE::ARGV
3701 ret
3702 end
3703
3704 # BSTR baseName
3705 # the base name of the node (nodename with the prefix stripped off)
3706 def baseName()
3707 ret = _getproperty(34, [], [])
3708 @lastargs = WIN32OLE::ARGV
3709 ret
3710 end
3711
3712 # BSTR data
3713 # value of the node
3714 def data()
3715 ret = _getproperty(109, [], [])
3716 @lastargs = WIN32OLE::ARGV
3717 ret
3718 end
3719
3720 # I4 length
3721 # number of characters in value
3722 def length()
3723 ret = _getproperty(110, [], [])
3724 @lastargs = WIN32OLE::ARGV
3725 ret
3726 end
3727
3728 # VOID nodeValue
3729 # value stored in the node
3730 def nodeValue=(arg0)
3731 ret = _setproperty(3, [arg0], [VT_VARIANT])
3732 @lastargs = WIN32OLE::ARGV
3733 ret
3734 end
3735
3736 # VOID text
3737 # text content of the node and subtree
3738 def text=(arg0)
3739 ret = _setproperty(24, [arg0], [VT_BSTR])
3740 @lastargs = WIN32OLE::ARGV
3741 ret
3742 end
3743
3744 # VOID nodeTypedValue
3745 # get the strongly typed value of the node
3746 def nodeTypedValue=(arg0)
3747 ret = _setproperty(25, [arg0], [VT_VARIANT])
3748 @lastargs = WIN32OLE::ARGV
3749 ret
3750 end
3751
3752 # VOID dataType
3753 # the data type of the node
3754 def dataType=(arg0)
3755 ret = _setproperty(26, [arg0], [VT_VARIANT])
3756 @lastargs = WIN32OLE::ARGV
3757 ret
3758 end
3759
3760 # VOID data
3761 # value of the node
3762 def data=(arg0)
3763 ret = _setproperty(109, [arg0], [VT_BSTR])
3764 @lastargs = WIN32OLE::ARGV
3765 ret
3766 end
3767
3768 # IXMLDOMNode insertBefore
3769 # insert a child node
3770 # IXMLDOMNode arg0 --- newChild [IN]
3771 # VARIANT arg1 --- refChild [IN]
3772 def insertBefore(arg0, arg1)
3773 ret = _invoke(13, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
3774 @lastargs = WIN32OLE::ARGV
3775 ret
3776 end
3777
3778 # IXMLDOMNode replaceChild
3779 # replace a child node
3780 # IXMLDOMNode arg0 --- newChild [IN]
3781 # IXMLDOMNode arg1 --- oldChild [IN]
3782 def replaceChild(arg0, arg1)
3783 ret = _invoke(14, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_BYREF|VT_DISPATCH])
3784 @lastargs = WIN32OLE::ARGV
3785 ret
3786 end
3787
3788 # IXMLDOMNode removeChild
3789 # remove a child node
3790 # IXMLDOMNode arg0 --- childNode [IN]
3791 def removeChild(arg0)
3792 ret = _invoke(15, [arg0], [VT_BYREF|VT_DISPATCH])
3793 @lastargs = WIN32OLE::ARGV
3794 ret
3795 end
3796
3797 # IXMLDOMNode appendChild
3798 # append a child node
3799 # IXMLDOMNode arg0 --- newChild [IN]
3800 def appendChild(arg0)
3801 ret = _invoke(16, [arg0], [VT_BYREF|VT_DISPATCH])
3802 @lastargs = WIN32OLE::ARGV
3803 ret
3804 end
3805
3806 # BOOL hasChildNodes
3807 def hasChildNodes()
3808 ret = _invoke(17, [], [])
3809 @lastargs = WIN32OLE::ARGV
3810 ret
3811 end
3812
3813 # IXMLDOMNode cloneNode
3814 # BOOL arg0 --- deep [IN]
3815 def cloneNode(arg0)
3816 ret = _invoke(19, [arg0], [VT_BOOL])
3817 @lastargs = WIN32OLE::ARGV
3818 ret
3819 end
3820
3821 # BSTR transformNode
3822 # apply the stylesheet to the subtree
3823 # IXMLDOMNode arg0 --- stylesheet [IN]
3824 def transformNode(arg0)
3825 ret = _invoke(28, [arg0], [VT_BYREF|VT_DISPATCH])
3826 @lastargs = WIN32OLE::ARGV
3827 ret
3828 end
3829
3830 # IXMLDOMNodeList selectNodes
3831 # execute query on the subtree
3832 # BSTR arg0 --- queryString [IN]
3833 def selectNodes(arg0)
3834 ret = _invoke(29, [arg0], [VT_BSTR])
3835 @lastargs = WIN32OLE::ARGV
3836 ret
3837 end
3838
3839 # IXMLDOMNode selectSingleNode
3840 # execute query on the subtree
3841 # BSTR arg0 --- queryString [IN]
3842 def selectSingleNode(arg0)
3843 ret = _invoke(30, [arg0], [VT_BSTR])
3844 @lastargs = WIN32OLE::ARGV
3845 ret
3846 end
3847
3848 # VOID transformNodeToObject
3849 # apply the stylesheet to the subtree, returning the result through a document or a stream
3850 # IXMLDOMNode arg0 --- stylesheet [IN]
3851 # VARIANT arg1 --- outputObject [IN]
3852 def transformNodeToObject(arg0, arg1)
3853 ret = _invoke(35, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
3854 @lastargs = WIN32OLE::ARGV
3855 ret
3856 end
3857
3858 # BSTR substringData
3859 # retrieve substring of value
3860 # I4 arg0 --- offset [IN]
3861 # I4 arg1 --- count [IN]
3862 def substringData(arg0, arg1)
3863 ret = _invoke(111, [arg0, arg1], [VT_I4, VT_I4])
3864 @lastargs = WIN32OLE::ARGV
3865 ret
3866 end
3867
3868 # VOID appendData
3869 # append string to value
3870 # BSTR arg0 --- data [IN]
3871 def appendData(arg0)
3872 ret = _invoke(112, [arg0], [VT_BSTR])
3873 @lastargs = WIN32OLE::ARGV
3874 ret
3875 end
3876
3877 # VOID insertData
3878 # insert string into value
3879 # I4 arg0 --- offset [IN]
3880 # BSTR arg1 --- data [IN]
3881 def insertData(arg0, arg1)
3882 ret = _invoke(113, [arg0, arg1], [VT_I4, VT_BSTR])
3883 @lastargs = WIN32OLE::ARGV
3884 ret
3885 end
3886
3887 # VOID deleteData
3888 # delete string within the value
3889 # I4 arg0 --- offset [IN]
3890 # I4 arg1 --- count [IN]
3891 def deleteData(arg0, arg1)
3892 ret = _invoke(114, [arg0, arg1], [VT_I4, VT_I4])
3893 @lastargs = WIN32OLE::ARGV
3894 ret
3895 end
3896
3897 # VOID replaceData
3898 # replace string within the value
3899 # I4 arg0 --- offset [IN]
3900 # I4 arg1 --- count [IN]
3901 # BSTR arg2 --- data [IN]
3902 def replaceData(arg0, arg1, arg2)
3903 ret = _invoke(115, [arg0, arg1, arg2], [VT_I4, VT_I4, VT_BSTR])
3904 @lastargs = WIN32OLE::ARGV
3905 ret
3906 end
3907
3908 # IXMLDOMText splitText
3909 # split the text node into two text nodes at the position specified
3910 # I4 arg0 --- offset [IN]
3911 def splitText(arg0)
3912 ret = _invoke(123, [arg0], [VT_I4])
3913 @lastargs = WIN32OLE::ARGV
3914 ret
3915 end
3916 end
3917
3918 #
3919 module IXMLDOMProcessingInstruction
3920 include WIN32OLE::VARIANT
3921 attr_reader :lastargs
3922
3923 # BSTR nodeName
3924 # name of the node
3925 def nodeName()
3926 ret = _getproperty(2, [], [])
3927 @lastargs = WIN32OLE::ARGV
3928 ret
3929 end
3930
3931 # VARIANT nodeValue
3932 # value stored in the node
3933 def nodeValue()
3934 ret = _getproperty(3, [], [])
3935 @lastargs = WIN32OLE::ARGV
3936 ret
3937 end
3938
3939 # DOMNodeType nodeType
3940 # the node's type
3941 def nodeType()
3942 ret = _getproperty(4, [], [])
3943 @lastargs = WIN32OLE::ARGV
3944 ret
3945 end
3946
3947 # IXMLDOMNode parentNode
3948 # parent of the node
3949 def parentNode()
3950 ret = _getproperty(6, [], [])
3951 @lastargs = WIN32OLE::ARGV
3952 ret
3953 end
3954
3955 # IXMLDOMNodeList childNodes
3956 # the collection of the node's children
3957 def childNodes()
3958 ret = _getproperty(7, [], [])
3959 @lastargs = WIN32OLE::ARGV
3960 ret
3961 end
3962
3963 # IXMLDOMNode firstChild
3964 # first child of the node
3965 def firstChild()
3966 ret = _getproperty(8, [], [])
3967 @lastargs = WIN32OLE::ARGV
3968 ret
3969 end
3970
3971 # IXMLDOMNode lastChild
3972 # first child of the node
3973 def lastChild()
3974 ret = _getproperty(9, [], [])
3975 @lastargs = WIN32OLE::ARGV
3976 ret
3977 end
3978
3979 # IXMLDOMNode previousSibling
3980 # left sibling of the node
3981 def previousSibling()
3982 ret = _getproperty(10, [], [])
3983 @lastargs = WIN32OLE::ARGV
3984 ret
3985 end
3986
3987 # IXMLDOMNode nextSibling
3988 # right sibling of the node
3989 def nextSibling()
3990 ret = _getproperty(11, [], [])
3991 @lastargs = WIN32OLE::ARGV
3992 ret
3993 end
3994
3995 # IXMLDOMNamedNodeMap attributes
3996 # the collection of the node's attributes
3997 def attributes()
3998 ret = _getproperty(12, [], [])
3999 @lastargs = WIN32OLE::ARGV
4000 ret
4001 end
4002
4003 # IXMLDOMDocument ownerDocument
4004 # document that contains the node
4005 def ownerDocument()
4006 ret = _getproperty(18, [], [])
4007 @lastargs = WIN32OLE::ARGV
4008 ret
4009 end
4010
4011 # BSTR nodeTypeString
4012 # the type of node in string form
4013 def nodeTypeString()
4014 ret = _getproperty(21, [], [])
4015 @lastargs = WIN32OLE::ARGV
4016 ret
4017 end
4018
4019 # BSTR text
4020 # text content of the node and subtree
4021 def text()
4022 ret = _getproperty(24, [], [])
4023 @lastargs = WIN32OLE::ARGV
4024 ret
4025 end
4026
4027 # BOOL specified
4028 # indicates whether node is a default value
4029 def specified()
4030 ret = _getproperty(22, [], [])
4031 @lastargs = WIN32OLE::ARGV
4032 ret
4033 end
4034
4035 # IXMLDOMNode definition
4036 # pointer to the definition of the node in the DTD or schema
4037 def definition()
4038 ret = _getproperty(23, [], [])
4039 @lastargs = WIN32OLE::ARGV
4040 ret
4041 end
4042
4043 # VARIANT nodeTypedValue
4044 # get the strongly typed value of the node
4045 def nodeTypedValue()
4046 ret = _getproperty(25, [], [])
4047 @lastargs = WIN32OLE::ARGV
4048 ret
4049 end
4050
4051 # VARIANT dataType
4052 # the data type of the node
4053 def dataType()
4054 ret = _getproperty(26, [], [])
4055 @lastargs = WIN32OLE::ARGV
4056 ret
4057 end
4058
4059 # BSTR xml
4060 # return the XML source for the node and each of its descendants
4061 def xml()
4062 ret = _getproperty(27, [], [])
4063 @lastargs = WIN32OLE::ARGV
4064 ret
4065 end
4066
4067 # BOOL parsed
4068 # has sub-tree been completely parsed
4069 def parsed()
4070 ret = _getproperty(31, [], [])
4071 @lastargs = WIN32OLE::ARGV
4072 ret
4073 end
4074
4075 # BSTR namespaceURI
4076 # the URI for the namespace applying to the node
4077 def namespaceURI()
4078 ret = _getproperty(32, [], [])
4079 @lastargs = WIN32OLE::ARGV
4080 ret
4081 end
4082
4083 # BSTR prefix
4084 # the prefix for the namespace applying to the node
4085 def prefix()
4086 ret = _getproperty(33, [], [])
4087 @lastargs = WIN32OLE::ARGV
4088 ret
4089 end
4090
4091 # BSTR baseName
4092 # the base name of the node (nodename with the prefix stripped off)
4093 def baseName()
4094 ret = _getproperty(34, [], [])
4095 @lastargs = WIN32OLE::ARGV
4096 ret
4097 end
4098
4099 # BSTR target
4100 # the target
4101 def target()
4102 ret = _getproperty(127, [], [])
4103 @lastargs = WIN32OLE::ARGV
4104 ret
4105 end
4106
4107 # BSTR data
4108 # the data
4109 def data()
4110 ret = _getproperty(128, [], [])
4111 @lastargs = WIN32OLE::ARGV
4112 ret
4113 end
4114
4115 # VOID nodeValue
4116 # value stored in the node
4117 def nodeValue=(arg0)
4118 ret = _setproperty(3, [arg0], [VT_VARIANT])
4119 @lastargs = WIN32OLE::ARGV
4120 ret
4121 end
4122
4123 # VOID text
4124 # text content of the node and subtree
4125 def text=(arg0)
4126 ret = _setproperty(24, [arg0], [VT_BSTR])
4127 @lastargs = WIN32OLE::ARGV
4128 ret
4129 end
4130
4131 # VOID nodeTypedValue
4132 # get the strongly typed value of the node
4133 def nodeTypedValue=(arg0)
4134 ret = _setproperty(25, [arg0], [VT_VARIANT])
4135 @lastargs = WIN32OLE::ARGV
4136 ret
4137 end
4138
4139 # VOID dataType
4140 # the data type of the node
4141 def dataType=(arg0)
4142 ret = _setproperty(26, [arg0], [VT_VARIANT])
4143 @lastargs = WIN32OLE::ARGV
4144 ret
4145 end
4146
4147 # VOID data
4148 # the data
4149 def data=(arg0)
4150 ret = _setproperty(128, [arg0], [VT_BSTR])
4151 @lastargs = WIN32OLE::ARGV
4152 ret
4153 end
4154
4155 # IXMLDOMNode insertBefore
4156 # insert a child node
4157 # IXMLDOMNode arg0 --- newChild [IN]
4158 # VARIANT arg1 --- refChild [IN]
4159 def insertBefore(arg0, arg1)
4160 ret = _invoke(13, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
4161 @lastargs = WIN32OLE::ARGV
4162 ret
4163 end
4164
4165 # IXMLDOMNode replaceChild
4166 # replace a child node
4167 # IXMLDOMNode arg0 --- newChild [IN]
4168 # IXMLDOMNode arg1 --- oldChild [IN]
4169 def replaceChild(arg0, arg1)
4170 ret = _invoke(14, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_BYREF|VT_DISPATCH])
4171 @lastargs = WIN32OLE::ARGV
4172 ret
4173 end
4174
4175 # IXMLDOMNode removeChild
4176 # remove a child node
4177 # IXMLDOMNode arg0 --- childNode [IN]
4178 def removeChild(arg0)
4179 ret = _invoke(15, [arg0], [VT_BYREF|VT_DISPATCH])
4180 @lastargs = WIN32OLE::ARGV
4181 ret
4182 end
4183
4184 # IXMLDOMNode appendChild
4185 # append a child node
4186 # IXMLDOMNode arg0 --- newChild [IN]
4187 def appendChild(arg0)
4188 ret = _invoke(16, [arg0], [VT_BYREF|VT_DISPATCH])
4189 @lastargs = WIN32OLE::ARGV
4190 ret
4191 end
4192
4193 # BOOL hasChildNodes
4194 def hasChildNodes()
4195 ret = _invoke(17, [], [])
4196 @lastargs = WIN32OLE::ARGV
4197 ret
4198 end
4199
4200 # IXMLDOMNode cloneNode
4201 # BOOL arg0 --- deep [IN]
4202 def cloneNode(arg0)
4203 ret = _invoke(19, [arg0], [VT_BOOL])
4204 @lastargs = WIN32OLE::ARGV
4205 ret
4206 end
4207
4208 # BSTR transformNode
4209 # apply the stylesheet to the subtree
4210 # IXMLDOMNode arg0 --- stylesheet [IN]
4211 def transformNode(arg0)
4212 ret = _invoke(28, [arg0], [VT_BYREF|VT_DISPATCH])
4213 @lastargs = WIN32OLE::ARGV
4214 ret
4215 end
4216
4217 # IXMLDOMNodeList selectNodes
4218 # execute query on the subtree
4219 # BSTR arg0 --- queryString [IN]
4220 def selectNodes(arg0)
4221 ret = _invoke(29, [arg0], [VT_BSTR])
4222 @lastargs = WIN32OLE::ARGV
4223 ret
4224 end
4225
4226 # IXMLDOMNode selectSingleNode
4227 # execute query on the subtree
4228 # BSTR arg0 --- queryString [IN]
4229 def selectSingleNode(arg0)
4230 ret = _invoke(30, [arg0], [VT_BSTR])
4231 @lastargs = WIN32OLE::ARGV
4232 ret
4233 end
4234
4235 # VOID transformNodeToObject
4236 # apply the stylesheet to the subtree, returning the result through a document or a stream
4237 # IXMLDOMNode arg0 --- stylesheet [IN]
4238 # VARIANT arg1 --- outputObject [IN]
4239 def transformNodeToObject(arg0, arg1)
4240 ret = _invoke(35, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
4241 @lastargs = WIN32OLE::ARGV
4242 ret
4243 end
4244 end
4245
4246 #
4247 module IXMLDOMEntityReference
4248 include WIN32OLE::VARIANT
4249 attr_reader :lastargs
4250
4251 # BSTR nodeName
4252 # name of the node
4253 def nodeName()
4254 ret = _getproperty(2, [], [])
4255 @lastargs = WIN32OLE::ARGV
4256 ret
4257 end
4258
4259 # VARIANT nodeValue
4260 # value stored in the node
4261 def nodeValue()
4262 ret = _getproperty(3, [], [])
4263 @lastargs = WIN32OLE::ARGV
4264 ret
4265 end
4266
4267 # DOMNodeType nodeType
4268 # the node's type
4269 def nodeType()
4270 ret = _getproperty(4, [], [])
4271 @lastargs = WIN32OLE::ARGV
4272 ret
4273 end
4274
4275 # IXMLDOMNode parentNode
4276 # parent of the node
4277 def parentNode()
4278 ret = _getproperty(6, [], [])
4279 @lastargs = WIN32OLE::ARGV
4280 ret
4281 end
4282
4283 # IXMLDOMNodeList childNodes
4284 # the collection of the node's children
4285 def childNodes()
4286 ret = _getproperty(7, [], [])
4287 @lastargs = WIN32OLE::ARGV
4288 ret
4289 end
4290
4291 # IXMLDOMNode firstChild
4292 # first child of the node
4293 def firstChild()
4294 ret = _getproperty(8, [], [])
4295 @lastargs = WIN32OLE::ARGV
4296 ret
4297 end
4298
4299 # IXMLDOMNode lastChild
4300 # first child of the node
4301 def lastChild()
4302 ret = _getproperty(9, [], [])
4303 @lastargs = WIN32OLE::ARGV
4304 ret
4305 end
4306
4307 # IXMLDOMNode previousSibling
4308 # left sibling of the node
4309 def previousSibling()
4310 ret = _getproperty(10, [], [])
4311 @lastargs = WIN32OLE::ARGV
4312 ret
4313 end
4314
4315 # IXMLDOMNode nextSibling
4316 # right sibling of the node
4317 def nextSibling()
4318 ret = _getproperty(11, [], [])
4319 @lastargs = WIN32OLE::ARGV
4320 ret
4321 end
4322
4323 # IXMLDOMNamedNodeMap attributes
4324 # the collection of the node's attributes
4325 def attributes()
4326 ret = _getproperty(12, [], [])
4327 @lastargs = WIN32OLE::ARGV
4328 ret
4329 end
4330
4331 # IXMLDOMDocument ownerDocument
4332 # document that contains the node
4333 def ownerDocument()
4334 ret = _getproperty(18, [], [])
4335 @lastargs = WIN32OLE::ARGV
4336 ret
4337 end
4338
4339 # BSTR nodeTypeString
4340 # the type of node in string form
4341 def nodeTypeString()
4342 ret = _getproperty(21, [], [])
4343 @lastargs = WIN32OLE::ARGV
4344 ret
4345 end
4346
4347 # BSTR text
4348 # text content of the node and subtree
4349 def text()
4350 ret = _getproperty(24, [], [])
4351 @lastargs = WIN32OLE::ARGV
4352 ret
4353 end
4354
4355 # BOOL specified
4356 # indicates whether node is a default value
4357 def specified()
4358 ret = _getproperty(22, [], [])
4359 @lastargs = WIN32OLE::ARGV
4360 ret
4361 end
4362
4363 # IXMLDOMNode definition
4364 # pointer to the definition of the node in the DTD or schema
4365 def definition()
4366 ret = _getproperty(23, [], [])
4367 @lastargs = WIN32OLE::ARGV
4368 ret
4369 end
4370
4371 # VARIANT nodeTypedValue
4372 # get the strongly typed value of the node
4373 def nodeTypedValue()
4374 ret = _getproperty(25, [], [])
4375 @lastargs = WIN32OLE::ARGV
4376 ret
4377 end
4378
4379 # VARIANT dataType
4380 # the data type of the node
4381 def dataType()
4382 ret = _getproperty(26, [], [])
4383 @lastargs = WIN32OLE::ARGV
4384 ret
4385 end
4386
4387 # BSTR xml
4388 # return the XML source for the node and each of its descendants
4389 def xml()
4390 ret = _getproperty(27, [], [])
4391 @lastargs = WIN32OLE::ARGV
4392 ret
4393 end
4394
4395 # BOOL parsed
4396 # has sub-tree been completely parsed
4397 def parsed()
4398 ret = _getproperty(31, [], [])
4399 @lastargs = WIN32OLE::ARGV
4400 ret
4401 end
4402
4403 # BSTR namespaceURI
4404 # the URI for the namespace applying to the node
4405 def namespaceURI()
4406 ret = _getproperty(32, [], [])
4407 @lastargs = WIN32OLE::ARGV
4408 ret
4409 end
4410
4411 # BSTR prefix
4412 # the prefix for the namespace applying to the node
4413 def prefix()
4414 ret = _getproperty(33, [], [])
4415 @lastargs = WIN32OLE::ARGV
4416 ret
4417 end
4418
4419 # BSTR baseName
4420 # the base name of the node (nodename with the prefix stripped off)
4421 def baseName()
4422 ret = _getproperty(34, [], [])
4423 @lastargs = WIN32OLE::ARGV
4424 ret
4425 end
4426
4427 # VOID nodeValue
4428 # value stored in the node
4429 def nodeValue=(arg0)
4430 ret = _setproperty(3, [arg0], [VT_VARIANT])
4431 @lastargs = WIN32OLE::ARGV
4432 ret
4433 end
4434
4435 # VOID text
4436 # text content of the node and subtree
4437 def text=(arg0)
4438 ret = _setproperty(24, [arg0], [VT_BSTR])
4439 @lastargs = WIN32OLE::ARGV
4440 ret
4441 end
4442
4443 # VOID nodeTypedValue
4444 # get the strongly typed value of the node
4445 def nodeTypedValue=(arg0)
4446 ret = _setproperty(25, [arg0], [VT_VARIANT])
4447 @lastargs = WIN32OLE::ARGV
4448 ret
4449 end
4450
4451 # VOID dataType
4452 # the data type of the node
4453 def dataType=(arg0)
4454 ret = _setproperty(26, [arg0], [VT_VARIANT])
4455 @lastargs = WIN32OLE::ARGV
4456 ret
4457 end
4458
4459 # IXMLDOMNode insertBefore
4460 # insert a child node
4461 # IXMLDOMNode arg0 --- newChild [IN]
4462 # VARIANT arg1 --- refChild [IN]
4463 def insertBefore(arg0, arg1)
4464 ret = _invoke(13, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
4465 @lastargs = WIN32OLE::ARGV
4466 ret
4467 end
4468
4469 # IXMLDOMNode replaceChild
4470 # replace a child node
4471 # IXMLDOMNode arg0 --- newChild [IN]
4472 # IXMLDOMNode arg1 --- oldChild [IN]
4473 def replaceChild(arg0, arg1)
4474 ret = _invoke(14, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_BYREF|VT_DISPATCH])
4475 @lastargs = WIN32OLE::ARGV
4476 ret
4477 end
4478
4479 # IXMLDOMNode removeChild
4480 # remove a child node
4481 # IXMLDOMNode arg0 --- childNode [IN]
4482 def removeChild(arg0)
4483 ret = _invoke(15, [arg0], [VT_BYREF|VT_DISPATCH])
4484 @lastargs = WIN32OLE::ARGV
4485 ret
4486 end
4487
4488 # IXMLDOMNode appendChild
4489 # append a child node
4490 # IXMLDOMNode arg0 --- newChild [IN]
4491 def appendChild(arg0)
4492 ret = _invoke(16, [arg0], [VT_BYREF|VT_DISPATCH])
4493 @lastargs = WIN32OLE::ARGV
4494 ret
4495 end
4496
4497 # BOOL hasChildNodes
4498 def hasChildNodes()
4499 ret = _invoke(17, [], [])
4500 @lastargs = WIN32OLE::ARGV
4501 ret
4502 end
4503
4504 # IXMLDOMNode cloneNode
4505 # BOOL arg0 --- deep [IN]
4506 def cloneNode(arg0)
4507 ret = _invoke(19, [arg0], [VT_BOOL])
4508 @lastargs = WIN32OLE::ARGV
4509 ret
4510 end
4511
4512 # BSTR transformNode
4513 # apply the stylesheet to the subtree
4514 # IXMLDOMNode arg0 --- stylesheet [IN]
4515 def transformNode(arg0)
4516 ret = _invoke(28, [arg0], [VT_BYREF|VT_DISPATCH])
4517 @lastargs = WIN32OLE::ARGV
4518 ret
4519 end
4520
4521 # IXMLDOMNodeList selectNodes
4522 # execute query on the subtree
4523 # BSTR arg0 --- queryString [IN]
4524 def selectNodes(arg0)
4525 ret = _invoke(29, [arg0], [VT_BSTR])
4526 @lastargs = WIN32OLE::ARGV
4527 ret
4528 end
4529
4530 # IXMLDOMNode selectSingleNode
4531 # execute query on the subtree
4532 # BSTR arg0 --- queryString [IN]
4533 def selectSingleNode(arg0)
4534 ret = _invoke(30, [arg0], [VT_BSTR])
4535 @lastargs = WIN32OLE::ARGV
4536 ret
4537 end
4538
4539 # VOID transformNodeToObject
4540 # apply the stylesheet to the subtree, returning the result through a document or a stream
4541 # IXMLDOMNode arg0 --- stylesheet [IN]
4542 # VARIANT arg1 --- outputObject [IN]
4543 def transformNodeToObject(arg0, arg1)
4544 ret = _invoke(35, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
4545 @lastargs = WIN32OLE::ARGV
4546 ret
4547 end
4548 end
4549
4550 # structure for reporting parser errors
4551 module IXMLDOMParseError
4552 include WIN32OLE::VARIANT
4553 attr_reader :lastargs
4554
4555 # I4 errorCode
4556 # the error code
4557 def errorCode()
4558 ret = _getproperty(0, [], [])
4559 @lastargs = WIN32OLE::ARGV
4560 ret
4561 end
4562
4563 # BSTR url
4564 # the URL of the XML document containing the error
4565 def url()
4566 ret = _getproperty(179, [], [])
4567 @lastargs = WIN32OLE::ARGV
4568 ret
4569 end
4570
4571 # BSTR reason
4572 # the cause of the error
4573 def reason()
4574 ret = _getproperty(180, [], [])
4575 @lastargs = WIN32OLE::ARGV
4576 ret
4577 end
4578
4579 # BSTR srcText
4580 # the data where the error occurred
4581 def srcText()
4582 ret = _getproperty(181, [], [])
4583 @lastargs = WIN32OLE::ARGV
4584 ret
4585 end
4586
4587 # I4 line
4588 # the line number in the XML document where the error occurred
4589 def line()
4590 ret = _getproperty(182, [], [])
4591 @lastargs = WIN32OLE::ARGV
4592 ret
4593 end
4594
4595 # I4 linepos
4596 # the character position in the line containing the error
4597 def linepos()
4598 ret = _getproperty(183, [], [])
4599 @lastargs = WIN32OLE::ARGV
4600 ret
4601 end
4602
4603 # I4 filepos
4604 # the absolute file position in the XML document containing the error
4605 def filepos()
4606 ret = _getproperty(184, [], [])
4607 @lastargs = WIN32OLE::ARGV
4608 ret
4609 end
4610 end
4611
4612 #
4613 module IXMLDOMNotation
4614 include WIN32OLE::VARIANT
4615 attr_reader :lastargs
4616
4617 # BSTR nodeName
4618 # name of the node
4619 def nodeName()
4620 ret = _getproperty(2, [], [])
4621 @lastargs = WIN32OLE::ARGV
4622 ret
4623 end
4624
4625 # VARIANT nodeValue
4626 # value stored in the node
4627 def nodeValue()
4628 ret = _getproperty(3, [], [])
4629 @lastargs = WIN32OLE::ARGV
4630 ret
4631 end
4632
4633 # DOMNodeType nodeType
4634 # the node's type
4635 def nodeType()
4636 ret = _getproperty(4, [], [])
4637 @lastargs = WIN32OLE::ARGV
4638 ret
4639 end
4640
4641 # IXMLDOMNode parentNode
4642 # parent of the node
4643 def parentNode()
4644 ret = _getproperty(6, [], [])
4645 @lastargs = WIN32OLE::ARGV
4646 ret
4647 end
4648
4649 # IXMLDOMNodeList childNodes
4650 # the collection of the node's children
4651 def childNodes()
4652 ret = _getproperty(7, [], [])
4653 @lastargs = WIN32OLE::ARGV
4654 ret
4655 end
4656
4657 # IXMLDOMNode firstChild
4658 # first child of the node
4659 def firstChild()
4660 ret = _getproperty(8, [], [])
4661 @lastargs = WIN32OLE::ARGV
4662 ret
4663 end
4664
4665 # IXMLDOMNode lastChild
4666 # first child of the node
4667 def lastChild()
4668 ret = _getproperty(9, [], [])
4669 @lastargs = WIN32OLE::ARGV
4670 ret
4671 end
4672
4673 # IXMLDOMNode previousSibling
4674 # left sibling of the node
4675 def previousSibling()
4676 ret = _getproperty(10, [], [])
4677 @lastargs = WIN32OLE::ARGV
4678 ret
4679 end
4680
4681 # IXMLDOMNode nextSibling
4682 # right sibling of the node
4683 def nextSibling()
4684 ret = _getproperty(11, [], [])
4685 @lastargs = WIN32OLE::ARGV
4686 ret
4687 end
4688
4689 # IXMLDOMNamedNodeMap attributes
4690 # the collection of the node's attributes
4691 def attributes()
4692 ret = _getproperty(12, [], [])
4693 @lastargs = WIN32OLE::ARGV
4694 ret
4695 end
4696
4697 # IXMLDOMDocument ownerDocument
4698 # document that contains the node
4699 def ownerDocument()
4700 ret = _getproperty(18, [], [])
4701 @lastargs = WIN32OLE::ARGV
4702 ret
4703 end
4704
4705 # BSTR nodeTypeString
4706 # the type of node in string form
4707 def nodeTypeString()
4708 ret = _getproperty(21, [], [])
4709 @lastargs = WIN32OLE::ARGV
4710 ret
4711 end
4712
4713 # BSTR text
4714 # text content of the node and subtree
4715 def text()
4716 ret = _getproperty(24, [], [])
4717 @lastargs = WIN32OLE::ARGV
4718 ret
4719 end
4720
4721 # BOOL specified
4722 # indicates whether node is a default value
4723 def specified()
4724 ret = _getproperty(22, [], [])
4725 @lastargs = WIN32OLE::ARGV
4726 ret
4727 end
4728
4729 # IXMLDOMNode definition
4730 # pointer to the definition of the node in the DTD or schema
4731 def definition()
4732 ret = _getproperty(23, [], [])
4733 @lastargs = WIN32OLE::ARGV
4734 ret
4735 end
4736
4737 # VARIANT nodeTypedValue
4738 # get the strongly typed value of the node
4739 def nodeTypedValue()
4740 ret = _getproperty(25, [], [])
4741 @lastargs = WIN32OLE::ARGV
4742 ret
4743 end
4744
4745 # VARIANT dataType
4746 # the data type of the node
4747 def dataType()
4748 ret = _getproperty(26, [], [])
4749 @lastargs = WIN32OLE::ARGV
4750 ret
4751 end
4752
4753 # BSTR xml
4754 # return the XML source for the node and each of its descendants
4755 def xml()
4756 ret = _getproperty(27, [], [])
4757 @lastargs = WIN32OLE::ARGV
4758 ret
4759 end
4760
4761 # BOOL parsed
4762 # has sub-tree been completely parsed
4763 def parsed()
4764 ret = _getproperty(31, [], [])
4765 @lastargs = WIN32OLE::ARGV
4766 ret
4767 end
4768
4769 # BSTR namespaceURI
4770 # the URI for the namespace applying to the node
4771 def namespaceURI()
4772 ret = _getproperty(32, [], [])
4773 @lastargs = WIN32OLE::ARGV
4774 ret
4775 end
4776
4777 # BSTR prefix
4778 # the prefix for the namespace applying to the node
4779 def prefix()
4780 ret = _getproperty(33, [], [])
4781 @lastargs = WIN32OLE::ARGV
4782 ret
4783 end
4784
4785 # BSTR baseName
4786 # the base name of the node (nodename with the prefix stripped off)
4787 def baseName()
4788 ret = _getproperty(34, [], [])
4789 @lastargs = WIN32OLE::ARGV
4790 ret
4791 end
4792
4793 # VARIANT publicId
4794 # the public ID
4795 def publicId()
4796 ret = _getproperty(136, [], [])
4797 @lastargs = WIN32OLE::ARGV
4798 ret
4799 end
4800
4801 # VARIANT systemId
4802 # the system ID
4803 def systemId()
4804 ret = _getproperty(137, [], [])
4805 @lastargs = WIN32OLE::ARGV
4806 ret
4807 end
4808
4809 # VOID nodeValue
4810 # value stored in the node
4811 def nodeValue=(arg0)
4812 ret = _setproperty(3, [arg0], [VT_VARIANT])
4813 @lastargs = WIN32OLE::ARGV
4814 ret
4815 end
4816
4817 # VOID text
4818 # text content of the node and subtree
4819 def text=(arg0)
4820 ret = _setproperty(24, [arg0], [VT_BSTR])
4821 @lastargs = WIN32OLE::ARGV
4822 ret
4823 end
4824
4825 # VOID nodeTypedValue
4826 # get the strongly typed value of the node
4827 def nodeTypedValue=(arg0)
4828 ret = _setproperty(25, [arg0], [VT_VARIANT])
4829 @lastargs = WIN32OLE::ARGV
4830 ret
4831 end
4832
4833 # VOID dataType
4834 # the data type of the node
4835 def dataType=(arg0)
4836 ret = _setproperty(26, [arg0], [VT_VARIANT])
4837 @lastargs = WIN32OLE::ARGV
4838 ret
4839 end
4840
4841 # IXMLDOMNode insertBefore
4842 # insert a child node
4843 # IXMLDOMNode arg0 --- newChild [IN]
4844 # VARIANT arg1 --- refChild [IN]
4845 def insertBefore(arg0, arg1)
4846 ret = _invoke(13, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
4847 @lastargs = WIN32OLE::ARGV
4848 ret
4849 end
4850
4851 # IXMLDOMNode replaceChild
4852 # replace a child node
4853 # IXMLDOMNode arg0 --- newChild [IN]
4854 # IXMLDOMNode arg1 --- oldChild [IN]
4855 def replaceChild(arg0, arg1)
4856 ret = _invoke(14, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_BYREF|VT_DISPATCH])
4857 @lastargs = WIN32OLE::ARGV
4858 ret
4859 end
4860
4861 # IXMLDOMNode removeChild
4862 # remove a child node
4863 # IXMLDOMNode arg0 --- childNode [IN]
4864 def removeChild(arg0)
4865 ret = _invoke(15, [arg0], [VT_BYREF|VT_DISPATCH])
4866 @lastargs = WIN32OLE::ARGV
4867 ret
4868 end
4869
4870 # IXMLDOMNode appendChild
4871 # append a child node
4872 # IXMLDOMNode arg0 --- newChild [IN]
4873 def appendChild(arg0)
4874 ret = _invoke(16, [arg0], [VT_BYREF|VT_DISPATCH])
4875 @lastargs = WIN32OLE::ARGV
4876 ret
4877 end
4878
4879 # BOOL hasChildNodes
4880 def hasChildNodes()
4881 ret = _invoke(17, [], [])
4882 @lastargs = WIN32OLE::ARGV
4883 ret
4884 end
4885
4886 # IXMLDOMNode cloneNode
4887 # BOOL arg0 --- deep [IN]
4888 def cloneNode(arg0)
4889 ret = _invoke(19, [arg0], [VT_BOOL])
4890 @lastargs = WIN32OLE::ARGV
4891 ret
4892 end
4893
4894 # BSTR transformNode
4895 # apply the stylesheet to the subtree
4896 # IXMLDOMNode arg0 --- stylesheet [IN]
4897 def transformNode(arg0)
4898 ret = _invoke(28, [arg0], [VT_BYREF|VT_DISPATCH])
4899 @lastargs = WIN32OLE::ARGV
4900 ret
4901 end
4902
4903 # IXMLDOMNodeList selectNodes
4904 # execute query on the subtree
4905 # BSTR arg0 --- queryString [IN]
4906 def selectNodes(arg0)
4907 ret = _invoke(29, [arg0], [VT_BSTR])
4908 @lastargs = WIN32OLE::ARGV
4909 ret
4910 end
4911
4912 # IXMLDOMNode selectSingleNode
4913 # execute query on the subtree
4914 # BSTR arg0 --- queryString [IN]
4915 def selectSingleNode(arg0)
4916 ret = _invoke(30, [arg0], [VT_BSTR])
4917 @lastargs = WIN32OLE::ARGV
4918 ret
4919 end
4920
4921 # VOID transformNodeToObject
4922 # apply the stylesheet to the subtree, returning the result through a document or a stream
4923 # IXMLDOMNode arg0 --- stylesheet [IN]
4924 # VARIANT arg1 --- outputObject [IN]
4925 def transformNodeToObject(arg0, arg1)
4926 ret = _invoke(35, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
4927 @lastargs = WIN32OLE::ARGV
4928 ret
4929 end
4930 end
4931
4932 #
4933 module IXMLDOMEntity
4934 include WIN32OLE::VARIANT
4935 attr_reader :lastargs
4936
4937 # BSTR nodeName
4938 # name of the node
4939 def nodeName()
4940 ret = _getproperty(2, [], [])
4941 @lastargs = WIN32OLE::ARGV
4942 ret
4943 end
4944
4945 # VARIANT nodeValue
4946 # value stored in the node
4947 def nodeValue()
4948 ret = _getproperty(3, [], [])
4949 @lastargs = WIN32OLE::ARGV
4950 ret
4951 end
4952
4953 # DOMNodeType nodeType
4954 # the node's type
4955 def nodeType()
4956 ret = _getproperty(4, [], [])
4957 @lastargs = WIN32OLE::ARGV
4958 ret
4959 end
4960
4961 # IXMLDOMNode parentNode
4962 # parent of the node
4963 def parentNode()
4964 ret = _getproperty(6, [], [])
4965 @lastargs = WIN32OLE::ARGV
4966 ret
4967 end
4968
4969 # IXMLDOMNodeList childNodes
4970 # the collection of the node's children
4971 def childNodes()
4972 ret = _getproperty(7, [], [])
4973 @lastargs = WIN32OLE::ARGV
4974 ret
4975 end
4976
4977 # IXMLDOMNode firstChild
4978 # first child of the node
4979 def firstChild()
4980 ret = _getproperty(8, [], [])
4981 @lastargs = WIN32OLE::ARGV
4982 ret
4983 end
4984
4985 # IXMLDOMNode lastChild
4986 # first child of the node
4987 def lastChild()
4988 ret = _getproperty(9, [], [])
4989 @lastargs = WIN32OLE::ARGV
4990 ret
4991 end
4992
4993 # IXMLDOMNode previousSibling
4994 # left sibling of the node
4995 def previousSibling()
4996 ret = _getproperty(10, [], [])
4997 @lastargs = WIN32OLE::ARGV
4998 ret
4999 end
5000
5001 # IXMLDOMNode nextSibling
5002 # right sibling of the node
5003 def nextSibling()
5004 ret = _getproperty(11, [], [])
5005 @lastargs = WIN32OLE::ARGV
5006 ret
5007 end
5008
5009 # IXMLDOMNamedNodeMap attributes
5010 # the collection of the node's attributes
5011 def attributes()
5012 ret = _getproperty(12, [], [])
5013 @lastargs = WIN32OLE::ARGV
5014 ret
5015 end
5016
5017 # IXMLDOMDocument ownerDocument
5018 # document that contains the node
5019 def ownerDocument()
5020 ret = _getproperty(18, [], [])
5021 @lastargs = WIN32OLE::ARGV
5022 ret
5023 end
5024
5025 # BSTR nodeTypeString
5026 # the type of node in string form
5027 def nodeTypeString()
5028 ret = _getproperty(21, [], [])
5029 @lastargs = WIN32OLE::ARGV
5030 ret
5031 end
5032
5033 # BSTR text
5034 # text content of the node and subtree
5035 def text()
5036 ret = _getproperty(24, [], [])
5037 @lastargs = WIN32OLE::ARGV
5038 ret
5039 end
5040
5041 # BOOL specified
5042 # indicates whether node is a default value
5043 def specified()
5044 ret = _getproperty(22, [], [])
5045 @lastargs = WIN32OLE::ARGV
5046 ret
5047 end
5048
5049 # IXMLDOMNode definition
5050 # pointer to the definition of the node in the DTD or schema
5051 def definition()
5052 ret = _getproperty(23, [], [])
5053 @lastargs = WIN32OLE::ARGV
5054 ret
5055 end
5056
5057 # VARIANT nodeTypedValue
5058 # get the strongly typed value of the node
5059 def nodeTypedValue()
5060 ret = _getproperty(25, [], [])
5061 @lastargs = WIN32OLE::ARGV
5062 ret
5063 end
5064
5065 # VARIANT dataType
5066 # the data type of the node
5067 def dataType()
5068 ret = _getproperty(26, [], [])
5069 @lastargs = WIN32OLE::ARGV
5070 ret
5071 end
5072
5073 # BSTR xml
5074 # return the XML source for the node and each of its descendants
5075 def xml()
5076 ret = _getproperty(27, [], [])
5077 @lastargs = WIN32OLE::ARGV
5078 ret
5079 end
5080
5081 # BOOL parsed
5082 # has sub-tree been completely parsed
5083 def parsed()
5084 ret = _getproperty(31, [], [])
5085 @lastargs = WIN32OLE::ARGV
5086 ret
5087 end
5088
5089 # BSTR namespaceURI
5090 # the URI for the namespace applying to the node
5091 def namespaceURI()
5092 ret = _getproperty(32, [], [])
5093 @lastargs = WIN32OLE::ARGV
5094 ret
5095 end
5096
5097 # BSTR prefix
5098 # the prefix for the namespace applying to the node
5099 def prefix()
5100 ret = _getproperty(33, [], [])
5101 @lastargs = WIN32OLE::ARGV
5102 ret
5103 end
5104
5105 # BSTR baseName
5106 # the base name of the node (nodename with the prefix stripped off)
5107 def baseName()
5108 ret = _getproperty(34, [], [])
5109 @lastargs = WIN32OLE::ARGV
5110 ret
5111 end
5112
5113 # VARIANT publicId
5114 # the public ID
5115 def publicId()
5116 ret = _getproperty(140, [], [])
5117 @lastargs = WIN32OLE::ARGV
5118 ret
5119 end
5120
5121 # VARIANT systemId
5122 # the system ID
5123 def systemId()
5124 ret = _getproperty(141, [], [])
5125 @lastargs = WIN32OLE::ARGV
5126 ret
5127 end
5128
5129 # BSTR notationName
5130 # the name of the notation
5131 def notationName()
5132 ret = _getproperty(142, [], [])
5133 @lastargs = WIN32OLE::ARGV
5134 ret
5135 end
5136
5137 # VOID nodeValue
5138 # value stored in the node
5139 def nodeValue=(arg0)
5140 ret = _setproperty(3, [arg0], [VT_VARIANT])
5141 @lastargs = WIN32OLE::ARGV
5142 ret
5143 end
5144
5145 # VOID text
5146 # text content of the node and subtree
5147 def text=(arg0)
5148 ret = _setproperty(24, [arg0], [VT_BSTR])
5149 @lastargs = WIN32OLE::ARGV
5150 ret
5151 end
5152
5153 # VOID nodeTypedValue
5154 # get the strongly typed value of the node
5155 def nodeTypedValue=(arg0)
5156 ret = _setproperty(25, [arg0], [VT_VARIANT])
5157 @lastargs = WIN32OLE::ARGV
5158 ret
5159 end
5160
5161 # VOID dataType
5162 # the data type of the node
5163 def dataType=(arg0)
5164 ret = _setproperty(26, [arg0], [VT_VARIANT])
5165 @lastargs = WIN32OLE::ARGV
5166 ret
5167 end
5168
5169 # IXMLDOMNode insertBefore
5170 # insert a child node
5171 # IXMLDOMNode arg0 --- newChild [IN]
5172 # VARIANT arg1 --- refChild [IN]
5173 def insertBefore(arg0, arg1)
5174 ret = _invoke(13, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
5175 @lastargs = WIN32OLE::ARGV
5176 ret
5177 end
5178
5179 # IXMLDOMNode replaceChild
5180 # replace a child node
5181 # IXMLDOMNode arg0 --- newChild [IN]
5182 # IXMLDOMNode arg1 --- oldChild [IN]
5183 def replaceChild(arg0, arg1)
5184 ret = _invoke(14, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_BYREF|VT_DISPATCH])
5185 @lastargs = WIN32OLE::ARGV
5186 ret
5187 end
5188
5189 # IXMLDOMNode removeChild
5190 # remove a child node
5191 # IXMLDOMNode arg0 --- childNode [IN]
5192 def removeChild(arg0)
5193 ret = _invoke(15, [arg0], [VT_BYREF|VT_DISPATCH])
5194 @lastargs = WIN32OLE::ARGV
5195 ret
5196 end
5197
5198 # IXMLDOMNode appendChild
5199 # append a child node
5200 # IXMLDOMNode arg0 --- newChild [IN]
5201 def appendChild(arg0)
5202 ret = _invoke(16, [arg0], [VT_BYREF|VT_DISPATCH])
5203 @lastargs = WIN32OLE::ARGV
5204 ret
5205 end
5206
5207 # BOOL hasChildNodes
5208 def hasChildNodes()
5209 ret = _invoke(17, [], [])
5210 @lastargs = WIN32OLE::ARGV
5211 ret
5212 end
5213
5214 # IXMLDOMNode cloneNode
5215 # BOOL arg0 --- deep [IN]
5216 def cloneNode(arg0)
5217 ret = _invoke(19, [arg0], [VT_BOOL])
5218 @lastargs = WIN32OLE::ARGV
5219 ret
5220 end
5221
5222 # BSTR transformNode
5223 # apply the stylesheet to the subtree
5224 # IXMLDOMNode arg0 --- stylesheet [IN]
5225 def transformNode(arg0)
5226 ret = _invoke(28, [arg0], [VT_BYREF|VT_DISPATCH])
5227 @lastargs = WIN32OLE::ARGV
5228 ret
5229 end
5230
5231 # IXMLDOMNodeList selectNodes
5232 # execute query on the subtree
5233 # BSTR arg0 --- queryString [IN]
5234 def selectNodes(arg0)
5235 ret = _invoke(29, [arg0], [VT_BSTR])
5236 @lastargs = WIN32OLE::ARGV
5237 ret
5238 end
5239
5240 # IXMLDOMNode selectSingleNode
5241 # execute query on the subtree
5242 # BSTR arg0 --- queryString [IN]
5243 def selectSingleNode(arg0)
5244 ret = _invoke(30, [arg0], [VT_BSTR])
5245 @lastargs = WIN32OLE::ARGV
5246 ret
5247 end
5248
5249 # VOID transformNodeToObject
5250 # apply the stylesheet to the subtree, returning the result through a document or a stream
5251 # IXMLDOMNode arg0 --- stylesheet [IN]
5252 # VARIANT arg1 --- outputObject [IN]
5253 def transformNodeToObject(arg0, arg1)
5254 ret = _invoke(35, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
5255 @lastargs = WIN32OLE::ARGV
5256 ret
5257 end
5258 end
5259
5260 # XTL runtime object
5261 module IXTLRuntime
5262 include WIN32OLE::VARIANT
5263 attr_reader :lastargs
5264
5265 # BSTR nodeName
5266 # name of the node
5267 def nodeName()
5268 ret = _getproperty(2, [], [])
5269 @lastargs = WIN32OLE::ARGV
5270 ret
5271 end
5272
5273 # VARIANT nodeValue
5274 # value stored in the node
5275 def nodeValue()
5276 ret = _getproperty(3, [], [])
5277 @lastargs = WIN32OLE::ARGV
5278 ret
5279 end
5280
5281 # DOMNodeType nodeType
5282 # the node's type
5283 def nodeType()
5284 ret = _getproperty(4, [], [])
5285 @lastargs = WIN32OLE::ARGV
5286 ret
5287 end
5288
5289 # IXMLDOMNode parentNode
5290 # parent of the node
5291 def parentNode()
5292 ret = _getproperty(6, [], [])
5293 @lastargs = WIN32OLE::ARGV
5294 ret
5295 end
5296
5297 # IXMLDOMNodeList childNodes
5298 # the collection of the node's children
5299 def childNodes()
5300 ret = _getproperty(7, [], [])
5301 @lastargs = WIN32OLE::ARGV
5302 ret
5303 end
5304
5305 # IXMLDOMNode firstChild
5306 # first child of the node
5307 def firstChild()
5308 ret = _getproperty(8, [], [])
5309 @lastargs = WIN32OLE::ARGV
5310 ret
5311 end
5312
5313 # IXMLDOMNode lastChild
5314 # first child of the node
5315 def lastChild()
5316 ret = _getproperty(9, [], [])
5317 @lastargs = WIN32OLE::ARGV
5318 ret
5319 end
5320
5321 # IXMLDOMNode previousSibling
5322 # left sibling of the node
5323 def previousSibling()
5324 ret = _getproperty(10, [], [])
5325 @lastargs = WIN32OLE::ARGV
5326 ret
5327 end
5328
5329 # IXMLDOMNode nextSibling
5330 # right sibling of the node
5331 def nextSibling()
5332 ret = _getproperty(11, [], [])
5333 @lastargs = WIN32OLE::ARGV
5334 ret
5335 end
5336
5337 # IXMLDOMNamedNodeMap attributes
5338 # the collection of the node's attributes
5339 def attributes()
5340 ret = _getproperty(12, [], [])
5341 @lastargs = WIN32OLE::ARGV
5342 ret
5343 end
5344
5345 # IXMLDOMDocument ownerDocument
5346 # document that contains the node
5347 def ownerDocument()
5348 ret = _getproperty(18, [], [])
5349 @lastargs = WIN32OLE::ARGV
5350 ret
5351 end
5352
5353 # BSTR nodeTypeString
5354 # the type of node in string form
5355 def nodeTypeString()
5356 ret = _getproperty(21, [], [])
5357 @lastargs = WIN32OLE::ARGV
5358 ret
5359 end
5360
5361 # BSTR text
5362 # text content of the node and subtree
5363 def text()
5364 ret = _getproperty(24, [], [])
5365 @lastargs = WIN32OLE::ARGV
5366 ret
5367 end
5368
5369 # BOOL specified
5370 # indicates whether node is a default value
5371 def specified()
5372 ret = _getproperty(22, [], [])
5373 @lastargs = WIN32OLE::ARGV
5374 ret
5375 end
5376
5377 # IXMLDOMNode definition
5378 # pointer to the definition of the node in the DTD or schema
5379 def definition()
5380 ret = _getproperty(23, [], [])
5381 @lastargs = WIN32OLE::ARGV
5382 ret
5383 end
5384
5385 # VARIANT nodeTypedValue
5386 # get the strongly typed value of the node
5387 def nodeTypedValue()
5388 ret = _getproperty(25, [], [])
5389 @lastargs = WIN32OLE::ARGV
5390 ret
5391 end
5392
5393 # VARIANT dataType
5394 # the data type of the node
5395 def dataType()
5396 ret = _getproperty(26, [], [])
5397 @lastargs = WIN32OLE::ARGV
5398 ret
5399 end
5400
5401 # BSTR xml
5402 # return the XML source for the node and each of its descendants
5403 def xml()
5404 ret = _getproperty(27, [], [])
5405 @lastargs = WIN32OLE::ARGV
5406 ret
5407 end
5408
5409 # BOOL parsed
5410 # has sub-tree been completely parsed
5411 def parsed()
5412 ret = _getproperty(31, [], [])
5413 @lastargs = WIN32OLE::ARGV
5414 ret
5415 end
5416
5417 # BSTR namespaceURI
5418 # the URI for the namespace applying to the node
5419 def namespaceURI()
5420 ret = _getproperty(32, [], [])
5421 @lastargs = WIN32OLE::ARGV
5422 ret
5423 end
5424
5425 # BSTR prefix
5426 # the prefix for the namespace applying to the node
5427 def prefix()
5428 ret = _getproperty(33, [], [])
5429 @lastargs = WIN32OLE::ARGV
5430 ret
5431 end
5432
5433 # BSTR baseName
5434 # the base name of the node (nodename with the prefix stripped off)
5435 def baseName()
5436 ret = _getproperty(34, [], [])
5437 @lastargs = WIN32OLE::ARGV
5438 ret
5439 end
5440
5441 # VOID nodeValue
5442 # value stored in the node
5443 def nodeValue=(arg0)
5444 ret = _setproperty(3, [arg0], [VT_VARIANT])
5445 @lastargs = WIN32OLE::ARGV
5446 ret
5447 end
5448
5449 # VOID text
5450 # text content of the node and subtree
5451 def text=(arg0)
5452 ret = _setproperty(24, [arg0], [VT_BSTR])
5453 @lastargs = WIN32OLE::ARGV
5454 ret
5455 end
5456
5457 # VOID nodeTypedValue
5458 # get the strongly typed value of the node
5459 def nodeTypedValue=(arg0)
5460 ret = _setproperty(25, [arg0], [VT_VARIANT])
5461 @lastargs = WIN32OLE::ARGV
5462 ret
5463 end
5464
5465 # VOID dataType
5466 # the data type of the node
5467 def dataType=(arg0)
5468 ret = _setproperty(26, [arg0], [VT_VARIANT])
5469 @lastargs = WIN32OLE::ARGV
5470 ret
5471 end
5472
5473 # IXMLDOMNode insertBefore
5474 # insert a child node
5475 # IXMLDOMNode arg0 --- newChild [IN]
5476 # VARIANT arg1 --- refChild [IN]
5477 def insertBefore(arg0, arg1)
5478 ret = _invoke(13, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
5479 @lastargs = WIN32OLE::ARGV
5480 ret
5481 end
5482
5483 # IXMLDOMNode replaceChild
5484 # replace a child node
5485 # IXMLDOMNode arg0 --- newChild [IN]
5486 # IXMLDOMNode arg1 --- oldChild [IN]
5487 def replaceChild(arg0, arg1)
5488 ret = _invoke(14, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_BYREF|VT_DISPATCH])
5489 @lastargs = WIN32OLE::ARGV
5490 ret
5491 end
5492
5493 # IXMLDOMNode removeChild
5494 # remove a child node
5495 # IXMLDOMNode arg0 --- childNode [IN]
5496 def removeChild(arg0)
5497 ret = _invoke(15, [arg0], [VT_BYREF|VT_DISPATCH])
5498 @lastargs = WIN32OLE::ARGV
5499 ret
5500 end
5501
5502 # IXMLDOMNode appendChild
5503 # append a child node
5504 # IXMLDOMNode arg0 --- newChild [IN]
5505 def appendChild(arg0)
5506 ret = _invoke(16, [arg0], [VT_BYREF|VT_DISPATCH])
5507 @lastargs = WIN32OLE::ARGV
5508 ret
5509 end
5510
5511 # BOOL hasChildNodes
5512 def hasChildNodes()
5513 ret = _invoke(17, [], [])
5514 @lastargs = WIN32OLE::ARGV
5515 ret
5516 end
5517
5518 # IXMLDOMNode cloneNode
5519 # BOOL arg0 --- deep [IN]
5520 def cloneNode(arg0)
5521 ret = _invoke(19, [arg0], [VT_BOOL])
5522 @lastargs = WIN32OLE::ARGV
5523 ret
5524 end
5525
5526 # BSTR transformNode
5527 # apply the stylesheet to the subtree
5528 # IXMLDOMNode arg0 --- stylesheet [IN]
5529 def transformNode(arg0)
5530 ret = _invoke(28, [arg0], [VT_BYREF|VT_DISPATCH])
5531 @lastargs = WIN32OLE::ARGV
5532 ret
5533 end
5534
5535 # IXMLDOMNodeList selectNodes
5536 # execute query on the subtree
5537 # BSTR arg0 --- queryString [IN]
5538 def selectNodes(arg0)
5539 ret = _invoke(29, [arg0], [VT_BSTR])
5540 @lastargs = WIN32OLE::ARGV
5541 ret
5542 end
5543
5544 # IXMLDOMNode selectSingleNode
5545 # execute query on the subtree
5546 # BSTR arg0 --- queryString [IN]
5547 def selectSingleNode(arg0)
5548 ret = _invoke(30, [arg0], [VT_BSTR])
5549 @lastargs = WIN32OLE::ARGV
5550 ret
5551 end
5552
5553 # VOID transformNodeToObject
5554 # apply the stylesheet to the subtree, returning the result through a document or a stream
5555 # IXMLDOMNode arg0 --- stylesheet [IN]
5556 # VARIANT arg1 --- outputObject [IN]
5557 def transformNodeToObject(arg0, arg1)
5558 ret = _invoke(35, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
5559 @lastargs = WIN32OLE::ARGV
5560 ret
5561 end
5562
5563 # I4 uniqueID
5564 # IXMLDOMNode arg0 --- pNode [IN]
5565 def uniqueID(arg0)
5566 ret = _invoke(187, [arg0], [VT_BYREF|VT_DISPATCH])
5567 @lastargs = WIN32OLE::ARGV
5568 ret
5569 end
5570
5571 # I4 depth
5572 # IXMLDOMNode arg0 --- pNode [IN]
5573 def depth(arg0)
5574 ret = _invoke(188, [arg0], [VT_BYREF|VT_DISPATCH])
5575 @lastargs = WIN32OLE::ARGV
5576 ret
5577 end
5578
5579 # I4 childNumber
5580 # IXMLDOMNode arg0 --- pNode [IN]
5581 def childNumber(arg0)
5582 ret = _invoke(189, [arg0], [VT_BYREF|VT_DISPATCH])
5583 @lastargs = WIN32OLE::ARGV
5584 ret
5585 end
5586
5587 # I4 ancestorChildNumber
5588 # BSTR arg0 --- bstrNodeName [IN]
5589 # IXMLDOMNode arg1 --- pNode [IN]
5590 def ancestorChildNumber(arg0, arg1)
5591 ret = _invoke(190, [arg0, arg1], [VT_BSTR, VT_BYREF|VT_DISPATCH])
5592 @lastargs = WIN32OLE::ARGV
5593 ret
5594 end
5595
5596 # I4 absoluteChildNumber
5597 # IXMLDOMNode arg0 --- pNode [IN]
5598 def absoluteChildNumber(arg0)
5599 ret = _invoke(191, [arg0], [VT_BYREF|VT_DISPATCH])
5600 @lastargs = WIN32OLE::ARGV
5601 ret
5602 end
5603
5604 # BSTR formatIndex
5605 # I4 arg0 --- lIndex [IN]
5606 # BSTR arg1 --- bstrFormat [IN]
5607 def formatIndex(arg0, arg1)
5608 ret = _invoke(192, [arg0, arg1], [VT_I4, VT_BSTR])
5609 @lastargs = WIN32OLE::ARGV
5610 ret
5611 end
5612
5613 # BSTR formatNumber
5614 # R8 arg0 --- dblNumber [IN]
5615 # BSTR arg1 --- bstrFormat [IN]
5616 def formatNumber(arg0, arg1)
5617 ret = _invoke(193, [arg0, arg1], [VT_R8, VT_BSTR])
5618 @lastargs = WIN32OLE::ARGV
5619 ret
5620 end
5621
5622 # BSTR formatDate
5623 # VARIANT arg0 --- varDate [IN]
5624 # BSTR arg1 --- bstrFormat [IN]
5625 # VARIANT arg2 --- varDestLocale [IN]
5626 def formatDate(arg0, arg1, arg2=nil)
5627 ret = _invoke(194, [arg0, arg1, arg2], [VT_VARIANT, VT_BSTR, VT_VARIANT])
5628 @lastargs = WIN32OLE::ARGV
5629 ret
5630 end
5631
5632 # BSTR formatTime
5633 # VARIANT arg0 --- varTime [IN]
5634 # BSTR arg1 --- bstrFormat [IN]
5635 # VARIANT arg2 --- varDestLocale [IN]
5636 def formatTime(arg0, arg1, arg2=nil)
5637 ret = _invoke(195, [arg0, arg1, arg2], [VT_VARIANT, VT_BSTR, VT_VARIANT])
5638 @lastargs = WIN32OLE::ARGV
5639 ret
5640 end
5641 end
5642
5643 # W3C-DOM XML Document
5644 class Microsoft_XMLDOM_1_0 # DOMDocument
5645 include WIN32OLE::VARIANT
5646 attr_reader :lastargs
5647 attr_reader :dispatch
5648 attr_reader :clsid
5649 attr_reader :progid
5650
5651 def initialize(obj = nil)
5652 @clsid = "{2933BF90-7B36-11D2-B20E-00C04F983E60}"
5653 @progid = "Microsoft.XMLDOM.1.0"
5654 if obj.nil?
5655 @dispatch = WIN32OLE.new(@progid)
5656 else
5657 @dispatch = obj
5658 end
5659 end
5660
5661 def method_missing(cmd, *arg)
5662 @dispatch.method_missing(cmd, *arg)
5663 end
5664
5665 # BSTR nodeName
5666 # name of the node
5667 def nodeName()
5668 ret = @dispatch._getproperty(2, [], [])
5669 @lastargs = WIN32OLE::ARGV
5670 ret
5671 end
5672
5673 # VARIANT nodeValue
5674 # value stored in the node
5675 def nodeValue()
5676 ret = @dispatch._getproperty(3, [], [])
5677 @lastargs = WIN32OLE::ARGV
5678 ret
5679 end
5680
5681 # DOMNodeType nodeType
5682 # the node's type
5683 def nodeType()
5684 ret = @dispatch._getproperty(4, [], [])
5685 @lastargs = WIN32OLE::ARGV
5686 ret
5687 end
5688
5689 # IXMLDOMNode parentNode
5690 # parent of the node
5691 def parentNode()
5692 ret = @dispatch._getproperty(6, [], [])
5693 @lastargs = WIN32OLE::ARGV
5694 ret
5695 end
5696
5697 # IXMLDOMNodeList childNodes
5698 # the collection of the node's children
5699 def childNodes()
5700 ret = @dispatch._getproperty(7, [], [])
5701 @lastargs = WIN32OLE::ARGV
5702 ret
5703 end
5704
5705 # IXMLDOMNode firstChild
5706 # first child of the node
5707 def firstChild()
5708 ret = @dispatch._getproperty(8, [], [])
5709 @lastargs = WIN32OLE::ARGV
5710 ret
5711 end
5712
5713 # IXMLDOMNode lastChild
5714 # first child of the node
5715 def lastChild()
5716 ret = @dispatch._getproperty(9, [], [])
5717 @lastargs = WIN32OLE::ARGV
5718 ret
5719 end
5720
5721 # IXMLDOMNode previousSibling
5722 # left sibling of the node
5723 def previousSibling()
5724 ret = @dispatch._getproperty(10, [], [])
5725 @lastargs = WIN32OLE::ARGV
5726 ret
5727 end
5728
5729 # IXMLDOMNode nextSibling
5730 # right sibling of the node
5731 def nextSibling()
5732 ret = @dispatch._getproperty(11, [], [])
5733 @lastargs = WIN32OLE::ARGV
5734 ret
5735 end
5736
5737 # IXMLDOMNamedNodeMap attributes
5738 # the collection of the node's attributes
5739 def attributes()
5740 ret = @dispatch._getproperty(12, [], [])
5741 @lastargs = WIN32OLE::ARGV
5742 ret
5743 end
5744
5745 # IXMLDOMDocument ownerDocument
5746 # document that contains the node
5747 def ownerDocument()
5748 ret = @dispatch._getproperty(18, [], [])
5749 @lastargs = WIN32OLE::ARGV
5750 ret
5751 end
5752
5753 # BSTR nodeTypeString
5754 # the type of node in string form
5755 def nodeTypeString()
5756 ret = @dispatch._getproperty(21, [], [])
5757 @lastargs = WIN32OLE::ARGV
5758 ret
5759 end
5760
5761 # BSTR text
5762 # text content of the node and subtree
5763 def text()
5764 ret = @dispatch._getproperty(24, [], [])
5765 @lastargs = WIN32OLE::ARGV
5766 ret
5767 end
5768
5769 # BOOL specified
5770 # indicates whether node is a default value
5771 def specified()
5772 ret = @dispatch._getproperty(22, [], [])
5773 @lastargs = WIN32OLE::ARGV
5774 ret
5775 end
5776
5777 # IXMLDOMNode definition
5778 # pointer to the definition of the node in the DTD or schema
5779 def definition()
5780 ret = @dispatch._getproperty(23, [], [])
5781 @lastargs = WIN32OLE::ARGV
5782 ret
5783 end
5784
5785 # VARIANT nodeTypedValue
5786 # get the strongly typed value of the node
5787 def nodeTypedValue()
5788 ret = @dispatch._getproperty(25, [], [])
5789 @lastargs = WIN32OLE::ARGV
5790 ret
5791 end
5792
5793 # VARIANT dataType
5794 # the data type of the node
5795 def dataType()
5796 ret = @dispatch._getproperty(26, [], [])
5797 @lastargs = WIN32OLE::ARGV
5798 ret
5799 end
5800
5801 # BSTR xml
5802 # return the XML source for the node and each of its descendants
5803 def xml()
5804 ret = @dispatch._getproperty(27, [], [])
5805 @lastargs = WIN32OLE::ARGV
5806 ret
5807 end
5808
5809 # BOOL parsed
5810 # has sub-tree been completely parsed
5811 def parsed()
5812 ret = @dispatch._getproperty(31, [], [])
5813 @lastargs = WIN32OLE::ARGV
5814 ret
5815 end
5816
5817 # BSTR namespaceURI
5818 # the URI for the namespace applying to the node
5819 def namespaceURI()
5820 ret = @dispatch._getproperty(32, [], [])
5821 @lastargs = WIN32OLE::ARGV
5822 ret
5823 end
5824
5825 # BSTR prefix
5826 # the prefix for the namespace applying to the node
5827 def prefix()
5828 ret = @dispatch._getproperty(33, [], [])
5829 @lastargs = WIN32OLE::ARGV
5830 ret
5831 end
5832
5833 # BSTR baseName
5834 # the base name of the node (nodename with the prefix stripped off)
5835 def baseName()
5836 ret = @dispatch._getproperty(34, [], [])
5837 @lastargs = WIN32OLE::ARGV
5838 ret
5839 end
5840
5841 # IXMLDOMDocumentType doctype
5842 # node corresponding to the DOCTYPE
5843 def doctype()
5844 ret = @dispatch._getproperty(38, [], [])
5845 @lastargs = WIN32OLE::ARGV
5846 ret
5847 end
5848
5849 # IXMLDOMImplementation implementation
5850 # info on this DOM implementation
5851 def implementation()
5852 ret = @dispatch._getproperty(39, [], [])
5853 @lastargs = WIN32OLE::ARGV
5854 ret
5855 end
5856
5857 # IXMLDOMElement documentElement
5858 # the root of the tree
5859 def documentElement()
5860 ret = @dispatch._getproperty(40, [], [])
5861 @lastargs = WIN32OLE::ARGV
5862 ret
5863 end
5864
5865 # I4 readyState
5866 # get the state of the XML document
5867 def readyState()
5868 ret = @dispatch._getproperty(-525, [], [])
5869 @lastargs = WIN32OLE::ARGV
5870 ret
5871 end
5872
5873 # IXMLDOMParseError parseError
5874 # get the last parser error
5875 def parseError()
5876 ret = @dispatch._getproperty(59, [], [])
5877 @lastargs = WIN32OLE::ARGV
5878 ret
5879 end
5880
5881 # BSTR url
5882 # get the URL for the loaded XML document
5883 def url()
5884 ret = @dispatch._getproperty(60, [], [])
5885 @lastargs = WIN32OLE::ARGV
5886 ret
5887 end
5888
5889 # BOOL async
5890 # flag for asynchronous download
5891 def async()
5892 ret = @dispatch._getproperty(61, [], [])
5893 @lastargs = WIN32OLE::ARGV
5894 ret
5895 end
5896
5897 # BOOL validateOnParse
5898 # indicates whether the parser performs validation
5899 def validateOnParse()
5900 ret = @dispatch._getproperty(65, [], [])
5901 @lastargs = WIN32OLE::ARGV
5902 ret
5903 end
5904
5905 # BOOL resolveExternals
5906 # indicates whether the parser resolves references to external DTD/Entities/Schema
5907 def resolveExternals()
5908 ret = @dispatch._getproperty(66, [], [])
5909 @lastargs = WIN32OLE::ARGV
5910 ret
5911 end
5912
5913 # BOOL preserveWhiteSpace
5914 # indicates whether the parser preserves whitespace
5915 def preserveWhiteSpace()
5916 ret = @dispatch._getproperty(67, [], [])
5917 @lastargs = WIN32OLE::ARGV
5918 ret
5919 end
5920
5921 # VOID nodeValue
5922 # value stored in the node
5923 def nodeValue=(arg0)
5924 ret = @dispatch._setproperty(3, [arg0], [VT_VARIANT])
5925 @lastargs = WIN32OLE::ARGV
5926 ret
5927 end
5928
5929 # VOID text
5930 # text content of the node and subtree
5931 def text=(arg0)
5932 ret = @dispatch._setproperty(24, [arg0], [VT_BSTR])
5933 @lastargs = WIN32OLE::ARGV
5934 ret
5935 end
5936
5937 # VOID nodeTypedValue
5938 # get the strongly typed value of the node
5939 def nodeTypedValue=(arg0)
5940 ret = @dispatch._setproperty(25, [arg0], [VT_VARIANT])
5941 @lastargs = WIN32OLE::ARGV
5942 ret
5943 end
5944
5945 # VOID dataType
5946 # the data type of the node
5947 def dataType=(arg0)
5948 ret = @dispatch._setproperty(26, [arg0], [VT_VARIANT])
5949 @lastargs = WIN32OLE::ARGV
5950 ret
5951 end
5952
5953 # VOID async
5954 # flag for asynchronous download
5955 def async=(arg0)
5956 ret = @dispatch._setproperty(61, [arg0], [VT_BOOL])
5957 @lastargs = WIN32OLE::ARGV
5958 ret
5959 end
5960
5961 # VOID validateOnParse
5962 # indicates whether the parser performs validation
5963 def validateOnParse=(arg0)
5964 ret = @dispatch._setproperty(65, [arg0], [VT_BOOL])
5965 @lastargs = WIN32OLE::ARGV
5966 ret
5967 end
5968
5969 # VOID resolveExternals
5970 # indicates whether the parser resolves references to external DTD/Entities/Schema
5971 def resolveExternals=(arg0)
5972 ret = @dispatch._setproperty(66, [arg0], [VT_BOOL])
5973 @lastargs = WIN32OLE::ARGV
5974 ret
5975 end
5976
5977 # VOID preserveWhiteSpace
5978 # indicates whether the parser preserves whitespace
5979 def preserveWhiteSpace=(arg0)
5980 ret = @dispatch._setproperty(67, [arg0], [VT_BOOL])
5981 @lastargs = WIN32OLE::ARGV
5982 ret
5983 end
5984
5985 # VOID onreadystatechange
5986 # register a readystatechange event handler
5987 def onreadystatechange=(arg0)
5988 ret = @dispatch._setproperty(68, [arg0], [VT_VARIANT])
5989 @lastargs = WIN32OLE::ARGV
5990 ret
5991 end
5992
5993 # VOID ondataavailable
5994 # register an ondataavailable event handler
5995 def ondataavailable=(arg0)
5996 ret = @dispatch._setproperty(69, [arg0], [VT_VARIANT])
5997 @lastargs = WIN32OLE::ARGV
5998 ret
5999 end
6000
6001 # VOID ontransformnode
6002 # register an ontransformnode event handler
6003 def ontransformnode=(arg0)
6004 ret = @dispatch._setproperty(70, [arg0], [VT_VARIANT])
6005 @lastargs = WIN32OLE::ARGV
6006 ret
6007 end
6008
6009 # IXMLDOMNode insertBefore
6010 # insert a child node
6011 # IXMLDOMNode arg0 --- newChild [IN]
6012 # VARIANT arg1 --- refChild [IN]
6013 def insertBefore(arg0, arg1)
6014 ret = @dispatch._invoke(13, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
6015 @lastargs = WIN32OLE::ARGV
6016 ret
6017 end
6018
6019 # IXMLDOMNode replaceChild
6020 # replace a child node
6021 # IXMLDOMNode arg0 --- newChild [IN]
6022 # IXMLDOMNode arg1 --- oldChild [IN]
6023 def replaceChild(arg0, arg1)
6024 ret = @dispatch._invoke(14, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_BYREF|VT_DISPATCH])
6025 @lastargs = WIN32OLE::ARGV
6026 ret
6027 end
6028
6029 # IXMLDOMNode removeChild
6030 # remove a child node
6031 # IXMLDOMNode arg0 --- childNode [IN]
6032 def removeChild(arg0)
6033 ret = @dispatch._invoke(15, [arg0], [VT_BYREF|VT_DISPATCH])
6034 @lastargs = WIN32OLE::ARGV
6035 ret
6036 end
6037
6038 # IXMLDOMNode appendChild
6039 # append a child node
6040 # IXMLDOMNode arg0 --- newChild [IN]
6041 def appendChild(arg0)
6042 ret = @dispatch._invoke(16, [arg0], [VT_BYREF|VT_DISPATCH])
6043 @lastargs = WIN32OLE::ARGV
6044 ret
6045 end
6046
6047 # BOOL hasChildNodes
6048 def hasChildNodes()
6049 ret = @dispatch._invoke(17, [], [])
6050 @lastargs = WIN32OLE::ARGV
6051 ret
6052 end
6053
6054 # IXMLDOMNode cloneNode
6055 # BOOL arg0 --- deep [IN]
6056 def cloneNode(arg0)
6057 ret = @dispatch._invoke(19, [arg0], [VT_BOOL])
6058 @lastargs = WIN32OLE::ARGV
6059 ret
6060 end
6061
6062 # BSTR transformNode
6063 # apply the stylesheet to the subtree
6064 # IXMLDOMNode arg0 --- stylesheet [IN]
6065 def transformNode(arg0)
6066 ret = @dispatch._invoke(28, [arg0], [VT_BYREF|VT_DISPATCH])
6067 @lastargs = WIN32OLE::ARGV
6068 ret
6069 end
6070
6071 # IXMLDOMNodeList selectNodes
6072 # execute query on the subtree
6073 # BSTR arg0 --- queryString [IN]
6074 def selectNodes(arg0)
6075 ret = @dispatch._invoke(29, [arg0], [VT_BSTR])
6076 @lastargs = WIN32OLE::ARGV
6077 ret
6078 end
6079
6080 # IXMLDOMNode selectSingleNode
6081 # execute query on the subtree
6082 # BSTR arg0 --- queryString [IN]
6083 def selectSingleNode(arg0)
6084 ret = @dispatch._invoke(30, [arg0], [VT_BSTR])
6085 @lastargs = WIN32OLE::ARGV
6086 ret
6087 end
6088
6089 # VOID transformNodeToObject
6090 # apply the stylesheet to the subtree, returning the result through a document or a stream
6091 # IXMLDOMNode arg0 --- stylesheet [IN]
6092 # VARIANT arg1 --- outputObject [IN]
6093 def transformNodeToObject(arg0, arg1)
6094 ret = @dispatch._invoke(35, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
6095 @lastargs = WIN32OLE::ARGV
6096 ret
6097 end
6098
6099 # IXMLDOMElement createElement
6100 # create an Element node
6101 # BSTR arg0 --- tagName [IN]
6102 def createElement(arg0)
6103 ret = @dispatch._invoke(41, [arg0], [VT_BSTR])
6104 @lastargs = WIN32OLE::ARGV
6105 ret
6106 end
6107
6108 # IXMLDOMDocumentFragment createDocumentFragment
6109 # create a DocumentFragment node
6110 def createDocumentFragment()
6111 ret = @dispatch._invoke(42, [], [])
6112 @lastargs = WIN32OLE::ARGV
6113 ret
6114 end
6115
6116 # IXMLDOMText createTextNode
6117 # create a text node
6118 # BSTR arg0 --- data [IN]
6119 def createTextNode(arg0)
6120 ret = @dispatch._invoke(43, [arg0], [VT_BSTR])
6121 @lastargs = WIN32OLE::ARGV
6122 ret
6123 end
6124
6125 # IXMLDOMComment createComment
6126 # create a comment node
6127 # BSTR arg0 --- data [IN]
6128 def createComment(arg0)
6129 ret = @dispatch._invoke(44, [arg0], [VT_BSTR])
6130 @lastargs = WIN32OLE::ARGV
6131 ret
6132 end
6133
6134 # IXMLDOMCDATASection createCDATASection
6135 # create a CDATA section node
6136 # BSTR arg0 --- data [IN]
6137 def createCDATASection(arg0)
6138 ret = @dispatch._invoke(45, [arg0], [VT_BSTR])
6139 @lastargs = WIN32OLE::ARGV
6140 ret
6141 end
6142
6143 # IXMLDOMProcessingInstruction createProcessingInstruction
6144 # create a processing instruction node
6145 # BSTR arg0 --- target [IN]
6146 # BSTR arg1 --- data [IN]
6147 def createProcessingInstruction(arg0, arg1)
6148 ret = @dispatch._invoke(46, [arg0, arg1], [VT_BSTR, VT_BSTR])
6149 @lastargs = WIN32OLE::ARGV
6150 ret
6151 end
6152
6153 # IXMLDOMAttribute createAttribute
6154 # create an attribute node
6155 # BSTR arg0 --- name [IN]
6156 def createAttribute(arg0)
6157 ret = @dispatch._invoke(47, [arg0], [VT_BSTR])
6158 @lastargs = WIN32OLE::ARGV
6159 ret
6160 end
6161
6162 # IXMLDOMEntityReference createEntityReference
6163 # create an entity reference node
6164 # BSTR arg0 --- name [IN]
6165 def createEntityReference(arg0)
6166 ret = @dispatch._invoke(49, [arg0], [VT_BSTR])
6167 @lastargs = WIN32OLE::ARGV
6168 ret
6169 end
6170
6171 # IXMLDOMNodeList getElementsByTagName
6172 # build a list of elements by name
6173 # BSTR arg0 --- tagName [IN]
6174 def getElementsByTagName(arg0)
6175 ret = @dispatch._invoke(50, [arg0], [VT_BSTR])
6176 @lastargs = WIN32OLE::ARGV
6177 ret
6178 end
6179
6180 # IXMLDOMNode createNode
6181 # create a node of the specified node type and name
6182 # VARIANT arg0 --- type [IN]
6183 # BSTR arg1 --- name [IN]
6184 # BSTR arg2 --- namespaceURI [IN]
6185 def createNode(arg0, arg1, arg2)
6186 ret = @dispatch._invoke(54, [arg0, arg1, arg2], [VT_VARIANT, VT_BSTR, VT_BSTR])
6187 @lastargs = WIN32OLE::ARGV
6188 ret
6189 end
6190
6191 # IXMLDOMNode nodeFromID
6192 # retrieve node from it's ID
6193 # BSTR arg0 --- idString [IN]
6194 def nodeFromID(arg0)
6195 ret = @dispatch._invoke(56, [arg0], [VT_BSTR])
6196 @lastargs = WIN32OLE::ARGV
6197 ret
6198 end
6199
6200 # BOOL load
6201 # load document from the specified XML source
6202 # VARIANT arg0 --- xmlSource [IN]
6203 def load(arg0)
6204 ret = @dispatch._invoke(58, [arg0], [VT_VARIANT])
6205 @lastargs = WIN32OLE::ARGV
6206 ret
6207 end
6208
6209 # VOID abort
6210 # abort an asynchronous download
6211 def abort()
6212 ret = @dispatch._invoke(62, [], [])
6213 @lastargs = WIN32OLE::ARGV
6214 ret
6215 end
6216
6217 # BOOL loadXML
6218 # load the document from a string
6219 # BSTR arg0 --- bstrXML [IN]
6220 def loadXML(arg0)
6221 ret = @dispatch._invoke(63, [arg0], [VT_BSTR])
6222 @lastargs = WIN32OLE::ARGV
6223 ret
6224 end
6225
6226 # VOID save
6227 # save the document to a specified destination
6228 # VARIANT arg0 --- destination [IN]
6229 def save(arg0)
6230 ret = @dispatch._invoke(64, [arg0], [VT_VARIANT])
6231 @lastargs = WIN32OLE::ARGV
6232 ret
6233 end
6234
6235 # HRESULT ondataavailable EVENT in XMLDOMDocumentEvents
6236 def ondataavailable()
6237 ret = @dispatch._invoke(198, [], [])
6238 @lastargs = WIN32OLE::ARGV
6239 ret
6240 end
6241
6242 # HRESULT onreadystatechange EVENT in XMLDOMDocumentEvents
6243 def onreadystatechange()
6244 ret = @dispatch._invoke(-609, [], [])
6245 @lastargs = WIN32OLE::ARGV
6246 ret
6247 end
6248 end
6249
6250 # W3C-DOM XML Document (Apartment)
6251 class Microsoft_FreeThreadedXMLDOM_1_0 # DOMFreeThreadedDocument
6252 include WIN32OLE::VARIANT
6253 attr_reader :lastargs
6254 attr_reader :dispatch
6255 attr_reader :clsid
6256 attr_reader :progid
6257
6258 def initialize(obj = nil)
6259 @clsid = "{2933BF91-7B36-11D2-B20E-00C04F983E60}"
6260 @progid = "Microsoft.FreeThreadedXMLDOM.1.0"
6261 if obj.nil?
6262 @dispatch = WIN32OLE.new(@progid)
6263 else
6264 @dispatch = obj
6265 end
6266 end
6267
6268 def method_missing(cmd, *arg)
6269 @dispatch.method_missing(cmd, *arg)
6270 end
6271
6272 # BSTR nodeName
6273 # name of the node
6274 def nodeName()
6275 ret = @dispatch._getproperty(2, [], [])
6276 @lastargs = WIN32OLE::ARGV
6277 ret
6278 end
6279
6280 # VARIANT nodeValue
6281 # value stored in the node
6282 def nodeValue()
6283 ret = @dispatch._getproperty(3, [], [])
6284 @lastargs = WIN32OLE::ARGV
6285 ret
6286 end
6287
6288 # DOMNodeType nodeType
6289 # the node's type
6290 def nodeType()
6291 ret = @dispatch._getproperty(4, [], [])
6292 @lastargs = WIN32OLE::ARGV
6293 ret
6294 end
6295
6296 # IXMLDOMNode parentNode
6297 # parent of the node
6298 def parentNode()
6299 ret = @dispatch._getproperty(6, [], [])
6300 @lastargs = WIN32OLE::ARGV
6301 ret
6302 end
6303
6304 # IXMLDOMNodeList childNodes
6305 # the collection of the node's children
6306 def childNodes()
6307 ret = @dispatch._getproperty(7, [], [])
6308 @lastargs = WIN32OLE::ARGV
6309 ret
6310 end
6311
6312 # IXMLDOMNode firstChild
6313 # first child of the node
6314 def firstChild()
6315 ret = @dispatch._getproperty(8, [], [])
6316 @lastargs = WIN32OLE::ARGV
6317 ret
6318 end
6319
6320 # IXMLDOMNode lastChild
6321 # first child of the node
6322 def lastChild()
6323 ret = @dispatch._getproperty(9, [], [])
6324 @lastargs = WIN32OLE::ARGV
6325 ret
6326 end
6327
6328 # IXMLDOMNode previousSibling
6329 # left sibling of the node
6330 def previousSibling()
6331 ret = @dispatch._getproperty(10, [], [])
6332 @lastargs = WIN32OLE::ARGV
6333 ret
6334 end
6335
6336 # IXMLDOMNode nextSibling
6337 # right sibling of the node
6338 def nextSibling()
6339 ret = @dispatch._getproperty(11, [], [])
6340 @lastargs = WIN32OLE::ARGV
6341 ret
6342 end
6343
6344 # IXMLDOMNamedNodeMap attributes
6345 # the collection of the node's attributes
6346 def attributes()
6347 ret = @dispatch._getproperty(12, [], [])
6348 @lastargs = WIN32OLE::ARGV
6349 ret
6350 end
6351
6352 # IXMLDOMDocument ownerDocument
6353 # document that contains the node
6354 def ownerDocument()
6355 ret = @dispatch._getproperty(18, [], [])
6356 @lastargs = WIN32OLE::ARGV
6357 ret
6358 end
6359
6360 # BSTR nodeTypeString
6361 # the type of node in string form
6362 def nodeTypeString()
6363 ret = @dispatch._getproperty(21, [], [])
6364 @lastargs = WIN32OLE::ARGV
6365 ret
6366 end
6367
6368 # BSTR text
6369 # text content of the node and subtree
6370 def text()
6371 ret = @dispatch._getproperty(24, [], [])
6372 @lastargs = WIN32OLE::ARGV
6373 ret
6374 end
6375
6376 # BOOL specified
6377 # indicates whether node is a default value
6378 def specified()
6379 ret = @dispatch._getproperty(22, [], [])
6380 @lastargs = WIN32OLE::ARGV
6381 ret
6382 end
6383
6384 # IXMLDOMNode definition
6385 # pointer to the definition of the node in the DTD or schema
6386 def definition()
6387 ret = @dispatch._getproperty(23, [], [])
6388 @lastargs = WIN32OLE::ARGV
6389 ret
6390 end
6391
6392 # VARIANT nodeTypedValue
6393 # get the strongly typed value of the node
6394 def nodeTypedValue()
6395 ret = @dispatch._getproperty(25, [], [])
6396 @lastargs = WIN32OLE::ARGV
6397 ret
6398 end
6399
6400 # VARIANT dataType
6401 # the data type of the node
6402 def dataType()
6403 ret = @dispatch._getproperty(26, [], [])
6404 @lastargs = WIN32OLE::ARGV
6405 ret
6406 end
6407
6408 # BSTR xml
6409 # return the XML source for the node and each of its descendants
6410 def xml()
6411 ret = @dispatch._getproperty(27, [], [])
6412 @lastargs = WIN32OLE::ARGV
6413 ret
6414 end
6415
6416 # BOOL parsed
6417 # has sub-tree been completely parsed
6418 def parsed()
6419 ret = @dispatch._getproperty(31, [], [])
6420 @lastargs = WIN32OLE::ARGV
6421 ret
6422 end
6423
6424 # BSTR namespaceURI
6425 # the URI for the namespace applying to the node
6426 def namespaceURI()
6427 ret = @dispatch._getproperty(32, [], [])
6428 @lastargs = WIN32OLE::ARGV
6429 ret
6430 end
6431
6432 # BSTR prefix
6433 # the prefix for the namespace applying to the node
6434 def prefix()
6435 ret = @dispatch._getproperty(33, [], [])
6436 @lastargs = WIN32OLE::ARGV
6437 ret
6438 end
6439
6440 # BSTR baseName
6441 # the base name of the node (nodename with the prefix stripped off)
6442 def baseName()
6443 ret = @dispatch._getproperty(34, [], [])
6444 @lastargs = WIN32OLE::ARGV
6445 ret
6446 end
6447
6448 # IXMLDOMDocumentType doctype
6449 # node corresponding to the DOCTYPE
6450 def doctype()
6451 ret = @dispatch._getproperty(38, [], [])
6452 @lastargs = WIN32OLE::ARGV
6453 ret
6454 end
6455
6456 # IXMLDOMImplementation implementation
6457 # info on this DOM implementation
6458 def implementation()
6459 ret = @dispatch._getproperty(39, [], [])
6460 @lastargs = WIN32OLE::ARGV
6461 ret
6462 end
6463
6464 # IXMLDOMElement documentElement
6465 # the root of the tree
6466 def documentElement()
6467 ret = @dispatch._getproperty(40, [], [])
6468 @lastargs = WIN32OLE::ARGV
6469 ret
6470 end
6471
6472 # I4 readyState
6473 # get the state of the XML document
6474 def readyState()
6475 ret = @dispatch._getproperty(-525, [], [])
6476 @lastargs = WIN32OLE::ARGV
6477 ret
6478 end
6479
6480 # IXMLDOMParseError parseError
6481 # get the last parser error
6482 def parseError()
6483 ret = @dispatch._getproperty(59, [], [])
6484 @lastargs = WIN32OLE::ARGV
6485 ret
6486 end
6487
6488 # BSTR url
6489 # get the URL for the loaded XML document
6490 def url()
6491 ret = @dispatch._getproperty(60, [], [])
6492 @lastargs = WIN32OLE::ARGV
6493 ret
6494 end
6495
6496 # BOOL async
6497 # flag for asynchronous download
6498 def async()
6499 ret = @dispatch._getproperty(61, [], [])
6500 @lastargs = WIN32OLE::ARGV
6501 ret
6502 end
6503
6504 # BOOL validateOnParse
6505 # indicates whether the parser performs validation
6506 def validateOnParse()
6507 ret = @dispatch._getproperty(65, [], [])
6508 @lastargs = WIN32OLE::ARGV
6509 ret
6510 end
6511
6512 # BOOL resolveExternals
6513 # indicates whether the parser resolves references to external DTD/Entities/Schema
6514 def resolveExternals()
6515 ret = @dispatch._getproperty(66, [], [])
6516 @lastargs = WIN32OLE::ARGV
6517 ret
6518 end
6519
6520 # BOOL preserveWhiteSpace
6521 # indicates whether the parser preserves whitespace
6522 def preserveWhiteSpace()
6523 ret = @dispatch._getproperty(67, [], [])
6524 @lastargs = WIN32OLE::ARGV
6525 ret
6526 end
6527
6528 # VOID nodeValue
6529 # value stored in the node
6530 def nodeValue=(arg0)
6531 ret = @dispatch._setproperty(3, [arg0], [VT_VARIANT])
6532 @lastargs = WIN32OLE::ARGV
6533 ret
6534 end
6535
6536 # VOID text
6537 # text content of the node and subtree
6538 def text=(arg0)
6539 ret = @dispatch._setproperty(24, [arg0], [VT_BSTR])
6540 @lastargs = WIN32OLE::ARGV
6541 ret
6542 end
6543
6544 # VOID nodeTypedValue
6545 # get the strongly typed value of the node
6546 def nodeTypedValue=(arg0)
6547 ret = @dispatch._setproperty(25, [arg0], [VT_VARIANT])
6548 @lastargs = WIN32OLE::ARGV
6549 ret
6550 end
6551
6552 # VOID dataType
6553 # the data type of the node
6554 def dataType=(arg0)
6555 ret = @dispatch._setproperty(26, [arg0], [VT_VARIANT])
6556 @lastargs = WIN32OLE::ARGV
6557 ret
6558 end
6559
6560 # VOID async
6561 # flag for asynchronous download
6562 def async=(arg0)
6563 ret = @dispatch._setproperty(61, [arg0], [VT_BOOL])
6564 @lastargs = WIN32OLE::ARGV
6565 ret
6566 end
6567
6568 # VOID validateOnParse
6569 # indicates whether the parser performs validation
6570 def validateOnParse=(arg0)
6571 ret = @dispatch._setproperty(65, [arg0], [VT_BOOL])
6572 @lastargs = WIN32OLE::ARGV
6573 ret
6574 end
6575
6576 # VOID resolveExternals
6577 # indicates whether the parser resolves references to external DTD/Entities/Schema
6578 def resolveExternals=(arg0)
6579 ret = @dispatch._setproperty(66, [arg0], [VT_BOOL])
6580 @lastargs = WIN32OLE::ARGV
6581 ret
6582 end
6583
6584 # VOID preserveWhiteSpace
6585 # indicates whether the parser preserves whitespace
6586 def preserveWhiteSpace=(arg0)
6587 ret = @dispatch._setproperty(67, [arg0], [VT_BOOL])
6588 @lastargs = WIN32OLE::ARGV
6589 ret
6590 end
6591
6592 # VOID onreadystatechange
6593 # register a readystatechange event handler
6594 def onreadystatechange=(arg0)
6595 ret = @dispatch._setproperty(68, [arg0], [VT_VARIANT])
6596 @lastargs = WIN32OLE::ARGV
6597 ret
6598 end
6599
6600 # VOID ondataavailable
6601 # register an ondataavailable event handler
6602 def ondataavailable=(arg0)
6603 ret = @dispatch._setproperty(69, [arg0], [VT_VARIANT])
6604 @lastargs = WIN32OLE::ARGV
6605 ret
6606 end
6607
6608 # VOID ontransformnode
6609 # register an ontransformnode event handler
6610 def ontransformnode=(arg0)
6611 ret = @dispatch._setproperty(70, [arg0], [VT_VARIANT])
6612 @lastargs = WIN32OLE::ARGV
6613 ret
6614 end
6615
6616 # IXMLDOMNode insertBefore
6617 # insert a child node
6618 # IXMLDOMNode arg0 --- newChild [IN]
6619 # VARIANT arg1 --- refChild [IN]
6620 def insertBefore(arg0, arg1)
6621 ret = @dispatch._invoke(13, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
6622 @lastargs = WIN32OLE::ARGV
6623 ret
6624 end
6625
6626 # IXMLDOMNode replaceChild
6627 # replace a child node
6628 # IXMLDOMNode arg0 --- newChild [IN]
6629 # IXMLDOMNode arg1 --- oldChild [IN]
6630 def replaceChild(arg0, arg1)
6631 ret = @dispatch._invoke(14, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_BYREF|VT_DISPATCH])
6632 @lastargs = WIN32OLE::ARGV
6633 ret
6634 end
6635
6636 # IXMLDOMNode removeChild
6637 # remove a child node
6638 # IXMLDOMNode arg0 --- childNode [IN]
6639 def removeChild(arg0)
6640 ret = @dispatch._invoke(15, [arg0], [VT_BYREF|VT_DISPATCH])
6641 @lastargs = WIN32OLE::ARGV
6642 ret
6643 end
6644
6645 # IXMLDOMNode appendChild
6646 # append a child node
6647 # IXMLDOMNode arg0 --- newChild [IN]
6648 def appendChild(arg0)
6649 ret = @dispatch._invoke(16, [arg0], [VT_BYREF|VT_DISPATCH])
6650 @lastargs = WIN32OLE::ARGV
6651 ret
6652 end
6653
6654 # BOOL hasChildNodes
6655 def hasChildNodes()
6656 ret = @dispatch._invoke(17, [], [])
6657 @lastargs = WIN32OLE::ARGV
6658 ret
6659 end
6660
6661 # IXMLDOMNode cloneNode
6662 # BOOL arg0 --- deep [IN]
6663 def cloneNode(arg0)
6664 ret = @dispatch._invoke(19, [arg0], [VT_BOOL])
6665 @lastargs = WIN32OLE::ARGV
6666 ret
6667 end
6668
6669 # BSTR transformNode
6670 # apply the stylesheet to the subtree
6671 # IXMLDOMNode arg0 --- stylesheet [IN]
6672 def transformNode(arg0)
6673 ret = @dispatch._invoke(28, [arg0], [VT_BYREF|VT_DISPATCH])
6674 @lastargs = WIN32OLE::ARGV
6675 ret
6676 end
6677
6678 # IXMLDOMNodeList selectNodes
6679 # execute query on the subtree
6680 # BSTR arg0 --- queryString [IN]
6681 def selectNodes(arg0)
6682 ret = @dispatch._invoke(29, [arg0], [VT_BSTR])
6683 @lastargs = WIN32OLE::ARGV
6684 ret
6685 end
6686
6687 # IXMLDOMNode selectSingleNode
6688 # execute query on the subtree
6689 # BSTR arg0 --- queryString [IN]
6690 def selectSingleNode(arg0)
6691 ret = @dispatch._invoke(30, [arg0], [VT_BSTR])
6692 @lastargs = WIN32OLE::ARGV
6693 ret
6694 end
6695
6696 # VOID transformNodeToObject
6697 # apply the stylesheet to the subtree, returning the result through a document or a stream
6698 # IXMLDOMNode arg0 --- stylesheet [IN]
6699 # VARIANT arg1 --- outputObject [IN]
6700 def transformNodeToObject(arg0, arg1)
6701 ret = @dispatch._invoke(35, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT])
6702 @lastargs = WIN32OLE::ARGV
6703 ret
6704 end
6705
6706 # IXMLDOMElement createElement
6707 # create an Element node
6708 # BSTR arg0 --- tagName [IN]
6709 def createElement(arg0)
6710 ret = @dispatch._invoke(41, [arg0], [VT_BSTR])
6711 @lastargs = WIN32OLE::ARGV
6712 ret
6713 end
6714
6715 # IXMLDOMDocumentFragment createDocumentFragment
6716 # create a DocumentFragment node
6717 def createDocumentFragment()
6718 ret = @dispatch._invoke(42, [], [])
6719 @lastargs = WIN32OLE::ARGV
6720 ret
6721 end
6722
6723 # IXMLDOMText createTextNode
6724 # create a text node
6725 # BSTR arg0 --- data [IN]
6726 def createTextNode(arg0)
6727 ret = @dispatch._invoke(43, [arg0], [VT_BSTR])
6728 @lastargs = WIN32OLE::ARGV
6729 ret
6730 end
6731
6732 # IXMLDOMComment createComment
6733 # create a comment node
6734 # BSTR arg0 --- data [IN]
6735 def createComment(arg0)
6736 ret = @dispatch._invoke(44, [arg0], [VT_BSTR])
6737 @lastargs = WIN32OLE::ARGV
6738 ret
6739 end
6740
6741 # IXMLDOMCDATASection createCDATASection
6742 # create a CDATA section node
6743 # BSTR arg0 --- data [IN]
6744 def createCDATASection(arg0)
6745 ret = @dispatch._invoke(45, [arg0], [VT_BSTR])
6746 @lastargs = WIN32OLE::ARGV
6747 ret
6748 end
6749
6750 # IXMLDOMProcessingInstruction createProcessingInstruction
6751 # create a processing instruction node
6752 # BSTR arg0 --- target [IN]
6753 # BSTR arg1 --- data [IN]
6754 def createProcessingInstruction(arg0, arg1)
6755 ret = @dispatch._invoke(46, [arg0, arg1], [VT_BSTR, VT_BSTR])
6756 @lastargs = WIN32OLE::ARGV
6757 ret
6758 end
6759
6760 # IXMLDOMAttribute createAttribute
6761 # create an attribute node
6762 # BSTR arg0 --- name [IN]
6763 def createAttribute(arg0)
6764 ret = @dispatch._invoke(47, [arg0], [VT_BSTR])
6765 @lastargs = WIN32OLE::ARGV
6766 ret
6767 end
6768
6769 # IXMLDOMEntityReference createEntityReference
6770 # create an entity reference node
6771 # BSTR arg0 --- name [IN]
6772 def createEntityReference(arg0)
6773 ret = @dispatch._invoke(49, [arg0], [VT_BSTR])
6774 @lastargs = WIN32OLE::ARGV
6775 ret
6776 end
6777
6778 # IXMLDOMNodeList getElementsByTagName
6779 # build a list of elements by name
6780 # BSTR arg0 --- tagName [IN]
6781 def getElementsByTagName(arg0)
6782 ret = @dispatch._invoke(50, [arg0], [VT_BSTR])
6783 @lastargs = WIN32OLE::ARGV
6784 ret
6785 end
6786
6787 # IXMLDOMNode createNode
6788 # create a node of the specified node type and name
6789 # VARIANT arg0 --- type [IN]
6790 # BSTR arg1 --- name [IN]
6791 # BSTR arg2 --- namespaceURI [IN]
6792 def createNode(arg0, arg1, arg2)
6793 ret = @dispatch._invoke(54, [arg0, arg1, arg2], [VT_VARIANT, VT_BSTR, VT_BSTR])
6794 @lastargs = WIN32OLE::ARGV
6795 ret
6796 end
6797
6798 # IXMLDOMNode nodeFromID
6799 # retrieve node from it's ID
6800 # BSTR arg0 --- idString [IN]
6801 def nodeFromID(arg0)
6802 ret = @dispatch._invoke(56, [arg0], [VT_BSTR])
6803 @lastargs = WIN32OLE::ARGV
6804 ret
6805 end
6806
6807 # BOOL load
6808 # load document from the specified XML source
6809 # VARIANT arg0 --- xmlSource [IN]
6810 def load(arg0)
6811 ret = @dispatch._invoke(58, [arg0], [VT_VARIANT])
6812 @lastargs = WIN32OLE::ARGV
6813 ret
6814 end
6815
6816 # VOID abort
6817 # abort an asynchronous download
6818 def abort()
6819 ret = @dispatch._invoke(62, [], [])
6820 @lastargs = WIN32OLE::ARGV
6821 ret
6822 end
6823
6824 # BOOL loadXML
6825 # load the document from a string
6826 # BSTR arg0 --- bstrXML [IN]
6827 def loadXML(arg0)
6828 ret = @dispatch._invoke(63, [arg0], [VT_BSTR])
6829 @lastargs = WIN32OLE::ARGV
6830 ret
6831 end
6832
6833 # VOID save
6834 # save the document to a specified destination
6835 # VARIANT arg0 --- destination [IN]
6836 def save(arg0)
6837 ret = @dispatch._invoke(64, [arg0], [VT_VARIANT])
6838 @lastargs = WIN32OLE::ARGV
6839 ret
6840 end
6841
6842 # HRESULT ondataavailable EVENT in XMLDOMDocumentEvents
6843 def ondataavailable()
6844 ret = @dispatch._invoke(198, [], [])
6845 @lastargs = WIN32OLE::ARGV
6846 ret
6847 end
6848
6849 # HRESULT onreadystatechange EVENT in XMLDOMDocumentEvents
6850 def onreadystatechange()
6851 ret = @dispatch._invoke(-609, [], [])
6852 @lastargs = WIN32OLE::ARGV
6853 ret
6854 end
6855 end
6856
6857 # IXMLHttpRequest Interface
6858 module IXMLHttpRequest
6859 include WIN32OLE::VARIANT
6860 attr_reader :lastargs
6861
6862 # I4 status
6863 # Get HTTP status code
6864 def status()
6865 ret = _getproperty(7, [], [])
6866 @lastargs = WIN32OLE::ARGV
6867 ret
6868 end
6869
6870 # BSTR statusText
6871 # Get HTTP status text
6872 def statusText()
6873 ret = _getproperty(8, [], [])
6874 @lastargs = WIN32OLE::ARGV
6875 ret
6876 end
6877
6878 # DISPATCH responseXML
6879 # Get response body
6880 def responseXML()
6881 ret = _getproperty(9, [], [])
6882 @lastargs = WIN32OLE::ARGV
6883 ret
6884 end
6885
6886 # BSTR responseText
6887 # Get response body
6888 def responseText()
6889 ret = _getproperty(10, [], [])
6890 @lastargs = WIN32OLE::ARGV
6891 ret
6892 end
6893
6894 # VARIANT responseBody
6895 # Get response body
6896 def responseBody()
6897 ret = _getproperty(11, [], [])
6898 @lastargs = WIN32OLE::ARGV
6899 ret
6900 end
6901
6902 # VARIANT responseStream
6903 # Get response body
6904 def responseStream()
6905 ret = _getproperty(12, [], [])
6906 @lastargs = WIN32OLE::ARGV
6907 ret
6908 end
6909
6910 # I4 readyState
6911 # Get ready state
6912 def readyState()
6913 ret = _getproperty(13, [], [])
6914 @lastargs = WIN32OLE::ARGV
6915 ret
6916 end
6917
6918 # VOID onreadystatechange
6919 # Register a complete event handler
6920 def onreadystatechange=(arg0)
6921 ret = _setproperty(14, [arg0], [VT_VARIANT])
6922 @lastargs = WIN32OLE::ARGV
6923 ret
6924 end
6925
6926 # VOID open
6927 # Open HTTP connection
6928 # BSTR arg0 --- bstrMethod [IN]
6929 # BSTR arg1 --- bstrUrl [IN]
6930 # VARIANT arg2 --- varAsync [IN]
6931 # VARIANT arg3 --- bstrUser [IN]
6932 # VARIANT arg4 --- bstrPassword [IN]
6933 def open(arg0, arg1, arg2=nil, arg3=nil, arg4=nil)
6934 ret = _invoke(1, [arg0, arg1, arg2, arg3, arg4], [VT_BSTR, VT_BSTR, VT_VARIANT, VT_VARIANT, VT_VARIANT])
6935 @lastargs = WIN32OLE::ARGV
6936 ret
6937 end
6938
6939 # VOID setRequestHeader
6940 # Add HTTP request header
6941 # BSTR arg0 --- bstrHeader [IN]
6942 # BSTR arg1 --- bstrValue [IN]
6943 def setRequestHeader(arg0, arg1)
6944 ret = _invoke(2, [arg0, arg1], [VT_BSTR, VT_BSTR])
6945 @lastargs = WIN32OLE::ARGV
6946 ret
6947 end
6948
6949 # BSTR getResponseHeader
6950 # Get HTTP response header
6951 # BSTR arg0 --- bstrHeader [IN]
6952 def getResponseHeader(arg0)
6953 ret = _invoke(3, [arg0], [VT_BSTR])
6954 @lastargs = WIN32OLE::ARGV
6955 ret
6956 end
6957
6958 # BSTR getAllResponseHeaders
6959 # Get all HTTP response headers
6960 def getAllResponseHeaders()
6961 ret = _invoke(4, [], [])
6962 @lastargs = WIN32OLE::ARGV
6963 ret
6964 end
6965
6966 # VOID send
6967 # Send HTTP request
6968 # VARIANT arg0 --- varBody [IN]
6969 def send(arg0=nil)
6970 ret = _invoke(5, [arg0], [VT_VARIANT])
6971 @lastargs = WIN32OLE::ARGV
6972 ret
6973 end
6974
6975 # VOID abort
6976 # Abort HTTP request
6977 def abort()
6978 ret = _invoke(6, [], [])
6979 @lastargs = WIN32OLE::ARGV
6980 ret
6981 end
6982 end
6983
6984 # XML HTTP Request class.
6985 class Microsoft_XMLHTTP_1 # XMLHTTPRequest
6986 include WIN32OLE::VARIANT
6987 attr_reader :lastargs
6988 attr_reader :dispatch
6989 attr_reader :clsid
6990 attr_reader :progid
6991
6992 def initialize(obj = nil)
6993 @clsid = "{ED8C108E-4349-11D2-91A4-00C04F7969E8}"
6994 @progid = "Microsoft.XMLHTTP.1"
6995 if obj.nil?
6996 @dispatch = WIN32OLE.new(@progid)
6997 else
6998 @dispatch = obj
6999 end
7000 end
7001
7002 def method_missing(cmd, *arg)
7003 @dispatch.method_missing(cmd, *arg)
7004 end
7005
7006 # I4 status
7007 # Get HTTP status code
7008 def status()
7009 ret = @dispatch._getproperty(7, [], [])
7010 @lastargs = WIN32OLE::ARGV
7011 ret
7012 end
7013
7014 # BSTR statusText
7015 # Get HTTP status text
7016 def statusText()
7017 ret = @dispatch._getproperty(8, [], [])
7018 @lastargs = WIN32OLE::ARGV
7019 ret
7020 end
7021
7022 # DISPATCH responseXML
7023 # Get response body
7024 def responseXML()
7025 ret = @dispatch._getproperty(9, [], [])
7026 @lastargs = WIN32OLE::ARGV
7027 ret
7028 end
7029
7030 # BSTR responseText
7031 # Get response body
7032 def responseText()
7033 ret = @dispatch._getproperty(10, [], [])
7034 @lastargs = WIN32OLE::ARGV
7035 ret
7036 end
7037
7038 # VARIANT responseBody
7039 # Get response body
7040 def responseBody()
7041 ret = @dispatch._getproperty(11, [], [])
7042 @lastargs = WIN32OLE::ARGV
7043 ret
7044 end
7045
7046 # VARIANT responseStream
7047 # Get response body
7048 def responseStream()
7049 ret = @dispatch._getproperty(12, [], [])
7050 @lastargs = WIN32OLE::ARGV
7051 ret
7052 end
7053
7054 # I4 readyState
7055 # Get ready state
7056 def readyState()
7057 ret = @dispatch._getproperty(13, [], [])
7058 @lastargs = WIN32OLE::ARGV
7059 ret
7060 end
7061
7062 # VOID onreadystatechange
7063 # Register a complete event handler
7064 def onreadystatechange=(arg0)
7065 ret = @dispatch._setproperty(14, [arg0], [VT_VARIANT])
7066 @lastargs = WIN32OLE::ARGV
7067 ret
7068 end
7069
7070 # VOID open
7071 # Open HTTP connection
7072 # BSTR arg0 --- bstrMethod [IN]
7073 # BSTR arg1 --- bstrUrl [IN]
7074 # VARIANT arg2 --- varAsync [IN]
7075 # VARIANT arg3 --- bstrUser [IN]
7076 # VARIANT arg4 --- bstrPassword [IN]
7077 def open(arg0, arg1, arg2=nil, arg3=nil, arg4=nil)
7078 ret = @dispatch._invoke(1, [arg0, arg1, arg2, arg3, arg4], [VT_BSTR, VT_BSTR, VT_VARIANT, VT_VARIANT, VT_VARIANT])
7079 @lastargs = WIN32OLE::ARGV
7080 ret
7081 end
7082
7083 # VOID setRequestHeader
7084 # Add HTTP request header
7085 # BSTR arg0 --- bstrHeader [IN]
7086 # BSTR arg1 --- bstrValue [IN]
7087 def setRequestHeader(arg0, arg1)
7088 ret = @dispatch._invoke(2, [arg0, arg1], [VT_BSTR, VT_BSTR])
7089 @lastargs = WIN32OLE::ARGV
7090 ret
7091 end
7092
7093 # BSTR getResponseHeader
7094 # Get HTTP response header
7095 # BSTR arg0 --- bstrHeader [IN]
7096 def getResponseHeader(arg0)
7097 ret = @dispatch._invoke(3, [arg0], [VT_BSTR])
7098 @lastargs = WIN32OLE::ARGV
7099 ret
7100 end
7101
7102 # BSTR getAllResponseHeaders
7103 # Get all HTTP response headers
7104 def getAllResponseHeaders()
7105 ret = @dispatch._invoke(4, [], [])
7106 @lastargs = WIN32OLE::ARGV
7107 ret
7108 end
7109
7110 # VOID send
7111 # Send HTTP request
7112 # VARIANT arg0 --- varBody [IN]
7113 def send(arg0=nil)
7114 ret = @dispatch._invoke(5, [arg0], [VT_VARIANT])
7115 @lastargs = WIN32OLE::ARGV
7116 ret
7117 end
7118
7119 # VOID abort
7120 # Abort HTTP request
7121 def abort()
7122 ret = @dispatch._invoke(6, [], [])
7123 @lastargs = WIN32OLE::ARGV
7124 ret
7125 end
7126 end
7127
7128 # XML Data Source Object
7129 class Microsoft_XMLDSO_1_0 # XMLDSOControl
7130 include WIN32OLE::VARIANT
7131 attr_reader :lastargs
7132 attr_reader :dispatch
7133 attr_reader :clsid
7134 attr_reader :progid
7135
7136 def initialize(obj = nil)
7137 @clsid = "{550DDA30-0541-11D2-9CA9-0060B0EC3D39}"
7138 @progid = "Microsoft.XMLDSO.1.0"
7139 if obj.nil?
7140 @dispatch = WIN32OLE.new(@progid)
7141 else
7142 @dispatch = obj
7143 end
7144 end
7145
7146 def method_missing(cmd, *arg)
7147 @dispatch.method_missing(cmd, *arg)
7148 end
7149
7150 # IXMLDOMDocument XMLDocument
7151 def XMLDocument()
7152 ret = @dispatch._getproperty(65537, [], [])
7153 @lastargs = WIN32OLE::ARGV
7154 ret
7155 end
7156
7157 # I4 JavaDSOCompatible
7158 def JavaDSOCompatible()
7159 ret = @dispatch._getproperty(65538, [], [])
7160 @lastargs = WIN32OLE::ARGV
7161 ret
7162 end
7163
7164 # I4 readyState
7165 def readyState()
7166 ret = @dispatch._getproperty(-525, [], [])
7167 @lastargs = WIN32OLE::ARGV
7168 ret
7169 end
7170
7171 # VOID XMLDocument
7172 def XMLDocument=(arg0)
7173 ret = @dispatch._setproperty(65537, [arg0], [VT_BYREF|VT_DISPATCH])
7174 @lastargs = WIN32OLE::ARGV
7175 ret
7176 end
7177
7178 # VOID JavaDSOCompatible
7179 def JavaDSOCompatible=(arg0)
7180 ret = @dispatch._setproperty(65538, [arg0], [VT_I4])
7181 @lastargs = WIN32OLE::ARGV
7182 ret
7183 end
7184 end
7185
7186 # Constants that define types for IXMLElement.
7187 module OLEtagXMLEMEM_TYPE
7188 include WIN32OLE::VARIANT
7189 attr_reader :lastargs
7190 XMLELEMTYPE_ELEMENT = 0
7191 XMLELEMTYPE_TEXT = 1
7192 XMLELEMTYPE_COMMENT = 2
7193 XMLELEMTYPE_DOCUMENT = 3
7194 XMLELEMTYPE_DTD = 4
7195 XMLELEMTYPE_PI = 5
7196 XMLELEMTYPE_OTHER = 6
7197 end
7198
7199 # XMLDocument extends IXML Document. It is obsolete. You should use DOMDocument. This object should not be confused with the XMLDocument property on the XML data island.
7200 class Msxml # XMLDocument
7201 include WIN32OLE::VARIANT
7202 attr_reader :lastargs
7203 attr_reader :dispatch
7204 attr_reader :clsid
7205 attr_reader :progid
7206
7207 def initialize(obj = nil)
7208 @clsid = "{CFC399AF-D876-11D0-9C10-00C04FC99C8E}"
7209 @progid = "Msxml"
7210 if obj.nil?
7211 @dispatch = WIN32OLE.new(@progid)
7212 else
7213 @dispatch = obj
7214 end
7215 end
7216
7217 def method_missing(cmd, *arg)
7218 @dispatch.method_missing(cmd, *arg)
7219 end
7220
7221 # HRESULT url
7222 # set URL to load an XML document from the URL.
7223 # BSTR arg0 --- p [IN]
7224 def url=(arg0)
7225 ret = @dispatch._setproperty(65641, [arg0], [VT_BSTR, VT_HRESULT])
7226 @lastargs = WIN32OLE::ARGV
7227 ret
7228 end
7229
7230 # HRESULT charset
7231 # get encoding.
7232 # BSTR arg0 --- p [IN]
7233 def charset=(arg0)
7234 ret = @dispatch._setproperty(65645, [arg0], [VT_BSTR, VT_HRESULT])
7235 @lastargs = WIN32OLE::ARGV
7236 ret
7237 end
7238
7239 # HRESULT async
7240 # get asynchronous loading flag.
7241 # BOOL arg0 --- pf [IN]
7242 def async=(arg0)
7243 ret = @dispatch._setproperty(65649, [arg0], [VT_BOOL, VT_HRESULT])
7244 @lastargs = WIN32OLE::ARGV
7245 ret
7246 end
7247
7248 # HRESULT root
7249 # get root IXMLElement of the XML document.
7250 # IXMLElement2,IXMLElement2 arg0 --- p [OUT]
7251 def root
7252 OLEProperty.new(@dispatch, 65637, [VT_BYREF|VT_BYREF|VT_DISPATCH], [VT_BYREF|VT_BYREF|VT_DISPATCH, VT_HRESULT])
7253 end
7254
7255 # HRESULT url
7256 # set URL to load an XML document from the URL.
7257 # BSTR arg0 --- p [OUT]
7258 def url
7259 OLEProperty.new(@dispatch, 65641, [VT_BYREF|VT_BSTR], [VT_BYREF|VT_BSTR, VT_HRESULT])
7260 end
7261
7262 # HRESULT readyState
7263 # get ready state.
7264 # I4 arg0 --- pl [OUT]
7265 def readyState
7266 OLEProperty.new(@dispatch, 65643, [VT_BYREF|VT_I4], [VT_BYREF|VT_I4, VT_HRESULT])
7267 end
7268
7269 # HRESULT charset
7270 # get encoding.
7271 # BSTR arg0 --- p [OUT]
7272 def charset
7273 OLEProperty.new(@dispatch, 65645, [VT_BYREF|VT_BSTR], [VT_BYREF|VT_BSTR, VT_HRESULT])
7274 end
7275
7276 # HRESULT version
7277 # get XML version number.
7278 # BSTR arg0 --- p [OUT]
7279 def version
7280 OLEProperty.new(@dispatch, 65646, [VT_BYREF|VT_BSTR], [VT_BYREF|VT_BSTR, VT_HRESULT])
7281 end
7282
7283 # HRESULT doctype
7284 # get document type.
7285 # BSTR arg0 --- p [OUT]
7286 def doctype
7287 OLEProperty.new(@dispatch, 65647, [VT_BYREF|VT_BSTR], [VT_BYREF|VT_BSTR, VT_HRESULT])
7288 end
7289
7290 # HRESULT async
7291 # get asynchronous loading flag.
7292 # BOOL arg0 --- pf [OUT]
7293 def async
7294 OLEProperty.new(@dispatch, 65649, [VT_BYREF|VT_BOOL], [VT_BYREF|VT_BOOL, VT_HRESULT])
7295 end
7296
7297 # HRESULT createElement
7298 # create different types of IXMLElements.
7299 # VARIANT arg0 --- vType [IN]
7300 # VARIANT arg1 --- var1 [IN]
7301 # IXMLElement2,IXMLElement2 arg2 --- ppElem [OUT]
7302 def createElement(arg0, arg1=nil, arg2=nil)
7303 ret = @dispatch._invoke(65644, [arg0, arg1, arg2], [VT_VARIANT, VT_VARIANT, VT_BYREF|VT_BYREF|VT_DISPATCH])
7304 @lastargs = WIN32OLE::ARGV
7305 ret
7306 end
7307 end