Module: IXMLDOMDocumentType
- Includes:
- WIN32OLE::VARIANT
- Defined in:
- sample/xml.rb
Constant Summary
Constants included from WIN32OLE::VARIANT
WIN32OLE::VARIANT::VT_ARRAY, WIN32OLE::VARIANT::VT_BOOL, WIN32OLE::VARIANT::VT_BSTR, WIN32OLE::VARIANT::VT_BYREF, WIN32OLE::VARIANT::VT_CY, WIN32OLE::VARIANT::VT_DATE, WIN32OLE::VARIANT::VT_DISPATCH, WIN32OLE::VARIANT::VT_EMPTY, WIN32OLE::VARIANT::VT_ERROR, WIN32OLE::VARIANT::VT_I1, WIN32OLE::VARIANT::VT_I2, WIN32OLE::VARIANT::VT_I4, WIN32OLE::VARIANT::VT_I8, WIN32OLE::VARIANT::VT_INT, WIN32OLE::VARIANT::VT_NULL, WIN32OLE::VARIANT::VT_PTR, WIN32OLE::VARIANT::VT_R4, WIN32OLE::VARIANT::VT_R8, WIN32OLE::VARIANT::VT_UI1, WIN32OLE::VARIANT::VT_UI2, WIN32OLE::VARIANT::VT_UI4, WIN32OLE::VARIANT::VT_UI8, WIN32OLE::VARIANT::VT_UINT, WIN32OLE::VARIANT::VT_UNKNOWN, WIN32OLE::VARIANT::VT_USERDEFINED, WIN32OLE::VARIANT::VT_VARIANT
Instance Attribute Summary collapse
-
#lastargs ⇒ Object
readonly
Returns the value of attribute lastargs.
Instance Method Summary collapse
-
#appendChild(arg0) ⇒ Object
IXMLDOMNode appendChild append a child node IXMLDOMNode arg0 — newChild [IN].
-
#attributes ⇒ Object
IXMLDOMNamedNodeMap attributes the collection of the node’s attributes.
-
#baseName ⇒ Object
BSTR baseName the base name of the node (nodename with the prefix stripped off).
-
#childNodes ⇒ Object
IXMLDOMNodeList childNodes the collection of the node’s children.
-
#cloneNode(arg0) ⇒ Object
IXMLDOMNode cloneNode BOOL arg0 — deep [IN].
-
#dataType ⇒ Object
VARIANT dataType the data type of the node.
-
#dataType=(arg0) ⇒ Object
VOID dataType the data type of the node.
-
#definition ⇒ Object
IXMLDOMNode definition pointer to the definition of the node in the DTD or schema.
-
#entities ⇒ Object
IXMLDOMNamedNodeMap entities a list of entities in the document.
-
#firstChild ⇒ Object
IXMLDOMNode firstChild first child of the node.
-
#hasChildNodes ⇒ Object
BOOL hasChildNodes.
-
#insertBefore(arg0, arg1) ⇒ Object
IXMLDOMNode insertBefore insert a child node IXMLDOMNode arg0 — newChild [IN] VARIANT arg1 — refChild [IN].
-
#lastChild ⇒ Object
IXMLDOMNode lastChild first child of the node.
-
#name ⇒ Object
BSTR name name of the document type (root of the tree).
-
#namespaceURI ⇒ Object
BSTR namespaceURI the URI for the namespace applying to the node.
-
#nextSibling ⇒ Object
IXMLDOMNode nextSibling right sibling of the node.
-
#nodeName ⇒ Object
BSTR nodeName name of the node.
-
#nodeType ⇒ Object
DOMNodeType nodeType the node’s type.
-
#nodeTypedValue ⇒ Object
VARIANT nodeTypedValue get the strongly typed value of the node.
-
#nodeTypedValue=(arg0) ⇒ Object
VOID nodeTypedValue get the strongly typed value of the node.
-
#nodeTypeString ⇒ Object
BSTR nodeTypeString the type of node in string form.
-
#nodeValue ⇒ Object
VARIANT nodeValue value stored in the node.
-
#nodeValue=(arg0) ⇒ Object
VOID nodeValue value stored in the node.
-
#notations ⇒ Object
IXMLDOMNamedNodeMap notations a list of notations in the document.
-
#ownerDocument ⇒ Object
IXMLDOMDocument ownerDocument document that contains the node.
-
#parentNode ⇒ Object
IXMLDOMNode parentNode parent of the node.
-
#parsed ⇒ Object
BOOL parsed has sub-tree been completely parsed.
-
#prefix ⇒ Object
BSTR prefix the prefix for the namespace applying to the node.
-
#previousSibling ⇒ Object
IXMLDOMNode previousSibling left sibling of the node.
-
#removeChild(arg0) ⇒ Object
IXMLDOMNode removeChild remove a child node IXMLDOMNode arg0 — childNode [IN].
-
#replaceChild(arg0, arg1) ⇒ Object
IXMLDOMNode replaceChild replace a child node IXMLDOMNode arg0 — newChild [IN] IXMLDOMNode arg1 — oldChild [IN].
-
#selectNodes(arg0) ⇒ Object
IXMLDOMNodeList selectNodes execute query on the subtree BSTR arg0 — queryString [IN].
-
#selectSingleNode(arg0) ⇒ Object
IXMLDOMNode selectSingleNode execute query on the subtree BSTR arg0 — queryString [IN].
-
#specified ⇒ Object
BOOL specified indicates whether node is a default value.
-
#text ⇒ Object
BSTR text text content of the node and subtree.
-
#text=(arg0) ⇒ Object
VOID text text content of the node and subtree.
-
#transformNode(arg0) ⇒ Object
BSTR transformNode apply the stylesheet to the subtree IXMLDOMNode arg0 — stylesheet [IN].
-
#transformNodeToObject(arg0, arg1) ⇒ Object
VOID transformNodeToObject apply the stylesheet to the subtree, returning the result through a document or a stream IXMLDOMNode arg0 — stylesheet [IN] VARIANT arg1 — outputObject [IN].
-
#xml ⇒ Object
BSTR xml return the XML source for the node and each of its descendants.
Instance Attribute Details
#lastargs ⇒ Object (readonly)
Returns the value of attribute lastargs.
1047 1048 1049 |
# File 'sample/xml.rb', line 1047 def lastargs @lastargs end |
Instance Method Details
#appendChild(arg0) ⇒ Object
IXMLDOMNode appendChild append a child node
IXMLDOMNode arg0 --- newChild [IN]
1313 1314 1315 1316 1317 |
# File 'sample/xml.rb', line 1313 def appendChild(arg0) ret = _invoke(16, [arg0], [VT_BYREF|VT_DISPATCH]) @lastargs = WIN32OLE::ARGV ret end |
#attributes ⇒ Object
IXMLDOMNamedNodeMap attributes the collection of the node’s attributes
1123 1124 1125 1126 1127 |
# File 'sample/xml.rb', line 1123 def attributes() ret = _getproperty(12, [], []) @lastargs = WIN32OLE::ARGV ret end |
#baseName ⇒ Object
BSTR baseName the base name of the node (nodename with the prefix stripped off)
1219 1220 1221 1222 1223 |
# File 'sample/xml.rb', line 1219 def baseName() ret = _getproperty(34, [], []) @lastargs = WIN32OLE::ARGV ret end |
#childNodes ⇒ Object
IXMLDOMNodeList childNodes the collection of the node’s children
1083 1084 1085 1086 1087 |
# File 'sample/xml.rb', line 1083 def childNodes() ret = _getproperty(7, [], []) @lastargs = WIN32OLE::ARGV ret end |
#cloneNode(arg0) ⇒ Object
IXMLDOMNode cloneNode
BOOL arg0 --- deep [IN]
1328 1329 1330 1331 1332 |
# File 'sample/xml.rb', line 1328 def cloneNode(arg0) ret = _invoke(19, [arg0], [VT_BOOL]) @lastargs = WIN32OLE::ARGV ret end |
#dataType ⇒ Object
VARIANT dataType the data type of the node
1179 1180 1181 1182 1183 |
# File 'sample/xml.rb', line 1179 def dataType() ret = _getproperty(26, [], []) @lastargs = WIN32OLE::ARGV ret end |
#dataType=(arg0) ⇒ Object
VOID dataType the data type of the node
1275 1276 1277 1278 1279 |
# File 'sample/xml.rb', line 1275 def dataType=(arg0) ret = _setproperty(26, [arg0], [VT_VARIANT]) @lastargs = WIN32OLE::ARGV ret end |
#definition ⇒ Object
IXMLDOMNode definition pointer to the definition of the node in the DTD or schema
1163 1164 1165 1166 1167 |
# File 'sample/xml.rb', line 1163 def definition() ret = _getproperty(23, [], []) @lastargs = WIN32OLE::ARGV ret end |
#entities ⇒ Object
IXMLDOMNamedNodeMap entities a list of entities in the document
1235 1236 1237 1238 1239 |
# File 'sample/xml.rb', line 1235 def entities() ret = _getproperty(132, [], []) @lastargs = WIN32OLE::ARGV ret end |
#firstChild ⇒ Object
IXMLDOMNode firstChild first child of the node
1091 1092 1093 1094 1095 |
# File 'sample/xml.rb', line 1091 def firstChild() ret = _getproperty(8, [], []) @lastargs = WIN32OLE::ARGV ret end |
#hasChildNodes ⇒ Object
BOOL hasChildNodes
1320 1321 1322 1323 1324 |
# File 'sample/xml.rb', line 1320 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]
1285 1286 1287 1288 1289 |
# File 'sample/xml.rb', line 1285 def insertBefore(arg0, arg1) ret = _invoke(13, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT]) @lastargs = WIN32OLE::ARGV ret end |
#lastChild ⇒ Object
IXMLDOMNode lastChild first child of the node
1099 1100 1101 1102 1103 |
# File 'sample/xml.rb', line 1099 def lastChild() ret = _getproperty(9, [], []) @lastargs = WIN32OLE::ARGV ret end |
#name ⇒ Object
BSTR name name of the document type (root of the tree)
1227 1228 1229 1230 1231 |
# File 'sample/xml.rb', line 1227 def name() ret = _getproperty(131, [], []) @lastargs = WIN32OLE::ARGV ret end |
#namespaceURI ⇒ Object
BSTR namespaceURI the URI for the namespace applying to the node
1203 1204 1205 1206 1207 |
# File 'sample/xml.rb', line 1203 def namespaceURI() ret = _getproperty(32, [], []) @lastargs = WIN32OLE::ARGV ret end |
#nextSibling ⇒ Object
IXMLDOMNode nextSibling right sibling of the node
1115 1116 1117 1118 1119 |
# File 'sample/xml.rb', line 1115 def nextSibling() ret = _getproperty(11, [], []) @lastargs = WIN32OLE::ARGV ret end |
#nodeName ⇒ Object
BSTR nodeName name of the node
1051 1052 1053 1054 1055 |
# File 'sample/xml.rb', line 1051 def nodeName() ret = _getproperty(2, [], []) @lastargs = WIN32OLE::ARGV ret end |
#nodeType ⇒ Object
DOMNodeType nodeType the node’s type
1067 1068 1069 1070 1071 |
# File 'sample/xml.rb', line 1067 def nodeType() ret = _getproperty(4, [], []) @lastargs = WIN32OLE::ARGV ret end |
#nodeTypedValue ⇒ Object
VARIANT nodeTypedValue get the strongly typed value of the node
1171 1172 1173 1174 1175 |
# File 'sample/xml.rb', line 1171 def nodeTypedValue() ret = _getproperty(25, [], []) @lastargs = WIN32OLE::ARGV ret end |
#nodeTypedValue=(arg0) ⇒ Object
VOID nodeTypedValue get the strongly typed value of the node
1267 1268 1269 1270 1271 |
# File 'sample/xml.rb', line 1267 def nodeTypedValue=(arg0) ret = _setproperty(25, [arg0], [VT_VARIANT]) @lastargs = WIN32OLE::ARGV ret end |
#nodeTypeString ⇒ Object
BSTR nodeTypeString the type of node in string form
1139 1140 1141 1142 1143 |
# File 'sample/xml.rb', line 1139 def nodeTypeString() ret = _getproperty(21, [], []) @lastargs = WIN32OLE::ARGV ret end |
#nodeValue ⇒ Object
VARIANT nodeValue value stored in the node
1059 1060 1061 1062 1063 |
# File 'sample/xml.rb', line 1059 def nodeValue() ret = _getproperty(3, [], []) @lastargs = WIN32OLE::ARGV ret end |
#nodeValue=(arg0) ⇒ Object
VOID nodeValue value stored in the node
1251 1252 1253 1254 1255 |
# File 'sample/xml.rb', line 1251 def nodeValue=(arg0) ret = _setproperty(3, [arg0], [VT_VARIANT]) @lastargs = WIN32OLE::ARGV ret end |
#notations ⇒ Object
IXMLDOMNamedNodeMap notations a list of notations in the document
1243 1244 1245 1246 1247 |
# File 'sample/xml.rb', line 1243 def notations() ret = _getproperty(133, [], []) @lastargs = WIN32OLE::ARGV ret end |
#ownerDocument ⇒ Object
IXMLDOMDocument ownerDocument document that contains the node
1131 1132 1133 1134 1135 |
# File 'sample/xml.rb', line 1131 def ownerDocument() ret = _getproperty(18, [], []) @lastargs = WIN32OLE::ARGV ret end |
#parentNode ⇒ Object
IXMLDOMNode parentNode parent of the node
1075 1076 1077 1078 1079 |
# File 'sample/xml.rb', line 1075 def parentNode() ret = _getproperty(6, [], []) @lastargs = WIN32OLE::ARGV ret end |
#parsed ⇒ Object
BOOL parsed has sub-tree been completely parsed
1195 1196 1197 1198 1199 |
# File 'sample/xml.rb', line 1195 def parsed() ret = _getproperty(31, [], []) @lastargs = WIN32OLE::ARGV ret end |
#prefix ⇒ Object
BSTR prefix the prefix for the namespace applying to the node
1211 1212 1213 1214 1215 |
# File 'sample/xml.rb', line 1211 def prefix() ret = _getproperty(33, [], []) @lastargs = WIN32OLE::ARGV ret end |
#previousSibling ⇒ Object
IXMLDOMNode previousSibling left sibling of the node
1107 1108 1109 1110 1111 |
# File 'sample/xml.rb', line 1107 def previousSibling() ret = _getproperty(10, [], []) @lastargs = WIN32OLE::ARGV ret end |
#removeChild(arg0) ⇒ Object
IXMLDOMNode removeChild remove a child node
IXMLDOMNode arg0 --- childNode [IN]
1304 1305 1306 1307 1308 |
# File 'sample/xml.rb', line 1304 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]
1295 1296 1297 1298 1299 |
# File 'sample/xml.rb', line 1295 def replaceChild(arg0, arg1) ret = _invoke(14, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_BYREF|VT_DISPATCH]) @lastargs = WIN32OLE::ARGV ret end |
#selectNodes(arg0) ⇒ Object
IXMLDOMNodeList selectNodes execute query on the subtree
BSTR arg0 --- queryString [IN]
1346 1347 1348 1349 1350 |
# File 'sample/xml.rb', line 1346 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]
1355 1356 1357 1358 1359 |
# File 'sample/xml.rb', line 1355 def selectSingleNode(arg0) ret = _invoke(30, [arg0], [VT_BSTR]) @lastargs = WIN32OLE::ARGV ret end |
#specified ⇒ Object
BOOL specified indicates whether node is a default value
1155 1156 1157 1158 1159 |
# File 'sample/xml.rb', line 1155 def specified() ret = _getproperty(22, [], []) @lastargs = WIN32OLE::ARGV ret end |
#text ⇒ Object
BSTR text text content of the node and subtree
1147 1148 1149 1150 1151 |
# File 'sample/xml.rb', line 1147 def text() ret = _getproperty(24, [], []) @lastargs = WIN32OLE::ARGV ret end |
#text=(arg0) ⇒ Object
VOID text text content of the node and subtree
1259 1260 1261 1262 1263 |
# File 'sample/xml.rb', line 1259 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]
1337 1338 1339 1340 1341 |
# File 'sample/xml.rb', line 1337 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]
1365 1366 1367 1368 1369 |
# File 'sample/xml.rb', line 1365 def transformNodeToObject(arg0, arg1) ret = _invoke(35, [arg0, arg1], [VT_BYREF|VT_DISPATCH, VT_VARIANT]) @lastargs = WIN32OLE::ARGV ret end |