node values of child nodes of selects “/XpediteConfig/BranchName” of xml document of file “C:\Sierra Xpedite\PRD_XP_Front\Data\xFrontCounterConfig.xml” as trimmed string
node values of child nodes of selects “/XpediteConfig/BranchName” of xml document of file “C:\Sierra Xpedite\PRD_XP_Back\Data\xFrontCounterConfig.xml” as trimmed string
Currently each individual relevance returns the Branch Name of the XML. I want to test both and if one is true return the Branch Name instead of creating separate properties for each.
“IF/THEN/ELSE” works with anything in relevance, XML included. You just need to make sure your IF clauses return true/false values.
Here is an example of how it might look. You may need to tweak this a little depending on the exact behavior you desire. Also, this snippet assumes that the files are always present.
if
(exists node values of child nodes of selects “/XpediteConfig/BranchName” of xml document of file “C:\Sierra Xpedite\PRD_XP_Front\Data\xFrontCounterConfig.xml”)
then
(node values of child nodes of selects “/XpediteConfig/BranchName” of xml document of file “C:\Sierra Xpedite\PRD_XP_Front\Data\xFrontCounterConfig.xml” as trimmed string)
else if
(exists node values of child nodes of selects “/XpediteConfig/BranchName” of xml document of file “C:\Sierra Xpedite\PRD_XP_Back\Data\xFrontCounterConfig.xml”)
then
(node values of child nodes of selects “/XpediteConfig/BranchName” of xml document of file “C:\Sierra Xpedite\PRD_XP_Back\Data\xFrontCounterConfig.xml” as trimmed string)