Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
ICS.runTag
Calls an XML tag from within a Java program.
Syntax
public String runTag(String sTag, FTValList vIn);Parameters
sTag
- Name of the XML tag to invoke. The XML tag must be a singleton, and must not expect any nested argument tags. Do not specify any built-in XML tags, such as
CSVAR
.
vIn
- A list containing any name/value pairs you are passing as arguments to the tag specified in
sTag
.
Description
Use
runTag
to call an XML tag from within a Java program. To see if the XML tag ran properly, examine the value oferrno
by calling GetErrno .Returns
The string that would normally be output by the XML tag. Most XML tags do not return any output, so
runTag
usually returnsNULL
.Example
The Sites XML tag
OBJECT.SET
expects the following three arguments:
NAME
FIELD
VALUE
The following Java code calls
OBJECT.SET
, passing values for those three arguments:
FTValList args = new FTValList(); String output = null; args.setValString("NAME","obj1"); args.setValString("FIELD","type_char"); args.setValString("VALUE", "c100"); output = ics.runTag("OBJECT.SET", args);
Home > Contents > Index > Oracle JAVA Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.