Parsing Simple OutputXml

 

Function Name: getVal

 

Class: com.newgen.dmsapi.DMSXmlResponse

 

Description: This function is used retrieve the value corresponding to the given tag sent in the Output Xml.

 

Input Parameters

Output Parameters

 

Prototype:

public String getVal

(

 

 

 

String tag

 

)

 

 

 

Input Parameters:

Name

Description

Valid Values

Tag

Name of the tag whose value is to be returned.

 

 

Output Parameters:

String type of value of the tag. If no value is returned for the specified tag in the Output Xml or if the tag does not exists, then the returned value is an empty String.

 

 

Function Name: createList

 

Class: com.newgen.dmsapi.DMSXmlResponse

 

Description: This function is used to generate the List to parse List Type OutputXml. API of DMSXmlList can then be used to parse each Object in the List.

 

Input Parameters

Output Parameters

 

Prototype:

public DMSXmlList createList

(

 

 

 

String listStartTag, String elementTag

 

)

 

 

 

Input Parameters:

Name

Description

Valid Values

listStartTag

Name of the Parent tag.

 

elementTag

Name of the child tag for which, the List has to be generated.

 

 

Output Parameters:

The output is an object of DMSXmlList.