Siebel Open UI, Tools, Scripting and EAI (MOSC)

MOSC Banner

How to check if a XML parent tag has any child node?

edited Dec 16, 2016 12:27AM in Siebel Open UI, Tools, Scripting and EAI (MOSC) 5 commentsAnswered
Hello,

I have a workflow to call outbound web service to call and retrieve address information from external application. I have my custom Business Service script to read response object in the form of IO.

I am able to read complex hierarchy structure by using GetChild and read property value by using GetProperty. However, when a tag without any child node, I got below error message and I tried several syntax and still not able to prevent the error.  Script failed if using sNetBuild = ListofBuidling.GetChild(0) as it failed on GetChild.  I would like my script to be flexible to read data as some addresses return netBuilding block. Please advise the syntax to use to check if a node exist any child element? So that If child element exist, I will continue using GetChild to retrieve

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center