Module: IXMLDOMText

Includes:
WIN32OLE::VARIANT
Defined in:
sample/xml.rb

Constant Summary

Constants included from WIN32OLE::VARIANT

WIN32OLE::VARIANT::VT_ARRAY, WIN32OLE::VARIANT::VT_BOOL, WIN32OLE::VARIANT::VT_BSTR, WIN32OLE::VARIANT::VT_BYREF, WIN32OLE::VARIANT::VT_CY, WIN32OLE::VARIANT::VT_DATE, WIN32OLE::VARIANT::VT_DISPATCH, WIN32OLE::VARIANT::VT_EMPTY, WIN32OLE::VARIANT::VT_ERROR, WIN32OLE::VARIANT::VT_I1, WIN32OLE::VARIANT::VT_I2, WIN32OLE::VARIANT::VT_I4, WIN32OLE::VARIANT::VT_I8, WIN32OLE::VARIANT::VT_INT, WIN32OLE::VARIANT::VT_NULL, WIN32OLE::VARIANT::VT_PTR, WIN32OLE::VARIANT::VT_R4, WIN32OLE::VARIANT::VT_R8, WIN32OLE::VARIANT::VT_UI1, WIN32OLE::VARIANT::VT_UI2, WIN32OLE::VARIANT::VT_UI4, WIN32OLE::VARIANT::VT_UI8, WIN32OLE::VARIANT::VT_UINT, WIN32OLE::VARIANT::VT_UNKNOWN, WIN32OLE::VARIANT::VT_USERDEFINED, WIN32OLE::VARIANT::VT_VARIANT

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#lastargsObject (readonly)

Returns the value of attribute lastargs.



2391
2392
2393
# File 'sample/xml.rb', line 2391

def lastargs
  @lastargs
end

Instance Method Details

#appendChild(arg0) ⇒ Object

IXMLDOMNode appendChild append a child node

IXMLDOMNode arg0 --- newChild [IN]


2657
2658
2659
2660
2661
# File 'sample/xml.rb', line 2657

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

#appendData(arg0) ⇒ Object

VOID appendData append string to value

BSTR arg0 --- data [IN]


2728
2729
2730
2731
2732
# File 'sample/xml.rb', line 2728

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

#attributesObject

IXMLDOMNamedNodeMap attributes the collection of the node’s attributes



2467
2468
2469
2470
2471
# File 'sample/xml.rb', line 2467

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

#baseNameObject

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



2563
2564
2565
2566
2567
# File 'sample/xml.rb', line 2563

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

#childNodesObject

IXMLDOMNodeList childNodes the collection of the node’s children



2427
2428
2429
2430
2431
# File 'sample/xml.rb', line 2427

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

#cloneNode(arg0) ⇒ Object

IXMLDOMNode cloneNode

BOOL arg0 --- deep [IN]


2672
2673
2674
2675
2676
# File 'sample/xml.rb', line 2672

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

#dataObject

BSTR data value of the node



2571
2572
2573
2574
2575
# File 'sample/xml.rb', line 2571

def data()
  ret = _getproperty(109, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#data=(arg0) ⇒ Object

VOID data value of the node



2619
2620
2621
2622
2623
# File 'sample/xml.rb', line 2619

def data=(arg0)
  ret = _setproperty(109, [arg0], [VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#dataTypeObject

VARIANT dataType the data type of the node



2523
2524
2525
2526
2527
# File 'sample/xml.rb', line 2523

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

#dataType=(arg0) ⇒ Object

VOID dataType the data type of the node



2611
2612
2613
2614
2615
# File 'sample/xml.rb', line 2611

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

#definitionObject

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



2507
2508
2509
2510
2511
# File 'sample/xml.rb', line 2507

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

#deleteData(arg0, arg1) ⇒ Object

VOID deleteData delete string within the value

I4 arg0 --- offset [IN]
I4 arg1 --- count [IN]


2748
2749
2750
2751
2752
# File 'sample/xml.rb', line 2748

def deleteData(arg0, arg1)
  ret = _invoke(114, [arg0, arg1], [VT_I4, VT_I4])
  @lastargs = WIN32OLE::ARGV
  ret
end

#firstChildObject

IXMLDOMNode firstChild first child of the node



2435
2436
2437
2438
2439
# File 'sample/xml.rb', line 2435

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

#hasChildNodesObject

BOOL hasChildNodes



2664
2665
2666
2667
2668
# File 'sample/xml.rb', line 2664

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

#insertBefore(arg0, arg1) ⇒ Object

IXMLDOMNode insertBefore insert a child node

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


2629
2630
2631
2632
2633
# File 'sample/xml.rb', line 2629

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

#insertData(arg0, arg1) ⇒ Object

VOID insertData insert string into value

I4 arg0 --- offset [IN]
BSTR arg1 --- data [IN]


2738
2739
2740
2741
2742
# File 'sample/xml.rb', line 2738

def insertData(arg0, arg1)
  ret = _invoke(113, [arg0, arg1], [VT_I4, VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#lastChildObject

IXMLDOMNode lastChild first child of the node



2443
2444
2445
2446
2447
# File 'sample/xml.rb', line 2443

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

#lengthObject

I4 length number of characters in value



2579
2580
2581
2582
2583
# File 'sample/xml.rb', line 2579

def length()
  ret = _getproperty(110, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#namespaceURIObject

BSTR namespaceURI the URI for the namespace applying to the node



2547
2548
2549
2550
2551
# File 'sample/xml.rb', line 2547

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

#nextSiblingObject

IXMLDOMNode nextSibling right sibling of the node



2459
2460
2461
2462
2463
# File 'sample/xml.rb', line 2459

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

#nodeNameObject

BSTR nodeName name of the node



2395
2396
2397
2398
2399
# File 'sample/xml.rb', line 2395

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

#nodeTypeObject

DOMNodeType nodeType the node’s type



2411
2412
2413
2414
2415
# File 'sample/xml.rb', line 2411

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

#nodeTypedValueObject

VARIANT nodeTypedValue get the strongly typed value of the node



2515
2516
2517
2518
2519
# File 'sample/xml.rb', line 2515

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

#nodeTypedValue=(arg0) ⇒ Object

VOID nodeTypedValue get the strongly typed value of the node



2603
2604
2605
2606
2607
# File 'sample/xml.rb', line 2603

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

#nodeTypeStringObject

BSTR nodeTypeString the type of node in string form



2483
2484
2485
2486
2487
# File 'sample/xml.rb', line 2483

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

#nodeValueObject

VARIANT nodeValue value stored in the node



2403
2404
2405
2406
2407
# File 'sample/xml.rb', line 2403

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

#nodeValue=(arg0) ⇒ Object

VOID nodeValue value stored in the node



2587
2588
2589
2590
2591
# File 'sample/xml.rb', line 2587

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

#ownerDocumentObject

IXMLDOMDocument ownerDocument document that contains the node



2475
2476
2477
2478
2479
# File 'sample/xml.rb', line 2475

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

#parentNodeObject

IXMLDOMNode parentNode parent of the node



2419
2420
2421
2422
2423
# File 'sample/xml.rb', line 2419

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

#parsedObject

BOOL parsed has sub-tree been completely parsed



2539
2540
2541
2542
2543
# File 'sample/xml.rb', line 2539

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

#prefixObject

BSTR prefix the prefix for the namespace applying to the node



2555
2556
2557
2558
2559
# File 'sample/xml.rb', line 2555

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

#previousSiblingObject

IXMLDOMNode previousSibling left sibling of the node



2451
2452
2453
2454
2455
# File 'sample/xml.rb', line 2451

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

#removeChild(arg0) ⇒ Object

IXMLDOMNode removeChild remove a child node

IXMLDOMNode arg0 --- childNode [IN]


2648
2649
2650
2651
2652
# File 'sample/xml.rb', line 2648

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

#replaceChild(arg0, arg1) ⇒ Object

IXMLDOMNode replaceChild replace a child node

IXMLDOMNode arg0 --- newChild [IN]
IXMLDOMNode arg1 --- oldChild [IN]


2639
2640
2641
2642
2643
# File 'sample/xml.rb', line 2639

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

#replaceData(arg0, arg1, arg2) ⇒ Object

VOID replaceData replace string within the value

I4 arg0 --- offset [IN]
I4 arg1 --- count [IN]
BSTR arg2 --- data [IN]


2759
2760
2761
2762
2763
# File 'sample/xml.rb', line 2759

def replaceData(arg0, arg1, arg2)
  ret = _invoke(115, [arg0, arg1, arg2], [VT_I4, VT_I4, VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#selectNodes(arg0) ⇒ Object

IXMLDOMNodeList selectNodes execute query on the subtree

BSTR arg0 --- queryString [IN]


2690
2691
2692
2693
2694
# File 'sample/xml.rb', line 2690

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

#selectSingleNode(arg0) ⇒ Object

IXMLDOMNode selectSingleNode execute query on the subtree

BSTR arg0 --- queryString [IN]


2699
2700
2701
2702
2703
# File 'sample/xml.rb', line 2699

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

#specifiedObject

BOOL specified indicates whether node is a default value



2499
2500
2501
2502
2503
# File 'sample/xml.rb', line 2499

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

#splitText(arg0) ⇒ Object

IXMLDOMText splitText split the text node into two text nodes at the position specified

I4 arg0 --- offset [IN]


2768
2769
2770
2771
2772
# File 'sample/xml.rb', line 2768

def splitText(arg0)
  ret = _invoke(123, [arg0], [VT_I4])
  @lastargs = WIN32OLE::ARGV
  ret
end

#substringData(arg0, arg1) ⇒ Object

BSTR substringData retrieve substring of value

I4 arg0 --- offset [IN]
I4 arg1 --- count [IN]


2719
2720
2721
2722
2723
# File 'sample/xml.rb', line 2719

def substringData(arg0, arg1)
  ret = _invoke(111, [arg0, arg1], [VT_I4, VT_I4])
  @lastargs = WIN32OLE::ARGV
  ret
end

#textObject

BSTR text text content of the node and subtree



2491
2492
2493
2494
2495
# File 'sample/xml.rb', line 2491

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

#text=(arg0) ⇒ Object

VOID text text content of the node and subtree



2595
2596
2597
2598
2599
# File 'sample/xml.rb', line 2595

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

#transformNode(arg0) ⇒ Object

BSTR transformNode apply the stylesheet to the subtree

IXMLDOMNode arg0 --- stylesheet [IN]


2681
2682
2683
2684
2685
# File 'sample/xml.rb', line 2681

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

#transformNodeToObject(arg0, arg1) ⇒ Object

VOID transformNodeToObject apply the stylesheet to the subtree, returning the result through a document or a stream

IXMLDOMNode arg0 --- stylesheet [IN]
VARIANT arg1 --- outputObject [IN]


2709
2710
2711
2712
2713
# File 'sample/xml.rb', line 2709

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

#xmlObject

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



2531
2532
2533
2534
2535
# File 'sample/xml.rb', line 2531

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