Skip to main content
Create a readable handle for XML data from a URI or static text. This operation is useful when there is a need to read static XML data, XML data from a public URI or XML data from the output from another operation.

Required Parameters

  • None

Optional Parameters

  • uri: An XML file URI (for example http://mydomain.com/resources/somedata.xml or /tmp/myfile.xml).
  • text: XML text. This can be static XML that is set on an ArcScript attribute or the output from a previous operation in the script (such as the [http:content] output attribute of one of the http operations). See the example below.

Output Attributes

  • handle: A readable handle reference to the XML data. This handle can be used by subsequent operations (see the example below).

Example

When you use xmlOpen, make sure to use the corresponding xmlClose operation to close the handle at the end of the script to avoid leaking memory through open handles.