Programming with Reflection

image\rwnprg32.gif GetContentFromXML method

 

Syntax Content = object.GetContentFromXML(Filename, ElementName, [Options])

 

Description

Returns the content of a particular element in an XML file.

Note: This method is used in macros created by the macro recording wizard when you respond to a host prompt and then select the option Read the value from an XML file.

Arguments

Filename Argument type: String
Required
Specifies the name of an XML file. Supply complete path information if the file isn't on the Reflection macro path.

ElementName Argument type: String
Required
Specifies the name of the element whose content you want returned. If the file contains many elements with the specified name, the content of the first such element is returned.

Options Optional
Omit this argument; it is not currently used.

Return

Content Return type: String
The content of the specified element. If the file contains no elements that match the name specified in ElementName, an empty string is returned.

 

 

image\jump.gif Example

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command