03-23-2013 07:07 AM - edited 03-14-2019 11:26 AM
As an example, I have a simple XML document:
<SITE>
<TYPE>retail</TYPE>
<LOC>Smallville</LOC>
<ZIP>12345</ZIP>
</SITE>
I have defined variables:
strType String
strLOC String
strZIP String
I have no issues with getting this data with the Get XML Data Docuemnt Step, my question is with efficiency. The current way that I familiar with getting the data, requires 3 Get XML Data steps, is there away to gather the data from the docuemnt and popluate the variables in a single Get XML Data step or another method?
I am running UCCX 8.5.1 SU4 with Premium license.
Thanks
Danny
03-25-2013 01:48 AM
Hi,
actually, there is, with Java: you can write a code block in a Set node that would render the XML document and issue 3 XPath queries, returning an array or a collection, but I am afraid the boilerplate code necessary would be too large for this simple task.
I would still recommend to insert one Cache Document step so no HTTP request is issued when using the Get XML Document Data step (remember, the Create URL Document step does not do an HTTP request).
G.
03-25-2013 05:04 AM
Thanks Gergely,
I am aware of JAVA, just cumbersome as you stated. I will look into the Cache Document step. I have not used it in the past will have to learn the nuance of this.
Thanks
Danny
03-27-2013 02:23 AM
Pehaps you can use this:
I a "Get XML Document Document" assign the value you need like this "/descendant::SITE" + "/child::TYPE"
Br,
Morten
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide