How to create an array from a String
Posted: Tue Aug 07, 2018 12:41 am
Hi there.
Please, I need help on this, I have this XML tag :
<productsSDWAN_quote>
SD-WAN (30 MB / EDGE 510)$,$SD-WAN GATEWAY 30 MB$,$SD-WAN GATEWAY 100 MB$,$SD-WAN (30 MB / EDGE 510)$,$SD-WAN GATEWAY 30 MB$,$SD-WAN GATEWAY 100 MB$,$
</productsSDWAN_quote>
I used split to split it.
<xsl:variable xmlns:str="http://exslt.org/strings" name="products" select="str:split($main_doc/productsSDWAN_quote, '$,$')"/>
I need create new array with only the products that contains the word "GATEWAY" at its names.
How can I do that using for-each loop through products and catch only the "GATEWAY" ones and create a new list with them?
thanks.
Please, I need help on this, I have this XML tag :
<productsSDWAN_quote>
SD-WAN (30 MB / EDGE 510)$,$SD-WAN GATEWAY 30 MB$,$SD-WAN GATEWAY 100 MB$,$SD-WAN (30 MB / EDGE 510)$,$SD-WAN GATEWAY 30 MB$,$SD-WAN GATEWAY 100 MB$,$
</productsSDWAN_quote>
I used split to split it.
<xsl:variable xmlns:str="http://exslt.org/strings" name="products" select="str:split($main_doc/productsSDWAN_quote, '$,$')"/>
I need create new array with only the products that contains the word "GATEWAY" at its names.
How can I do that using for-each loop through products and catch only the "GATEWAY" ones and create a new list with them?
thanks.