This structure is forcing the parsing and assumptions about positions. There is an easier way.
<properties>
<TestURL>testurl.com</TestURL>
<QualURL>qualurl.com</QualURL>
<ProdURL>produrl.com</ProdURL>
...
<ProdPassword>789</ProdPassword>
</properties>
(There is no need to declare any namespaces for this simple XML.)
Define a document type in IS:
properties (document)
TestURL (string)
QualURL (string)
ProdURL (string)
...
ProdPassword (string)
I assume you’re using xmlStringToXMLNode and xmlNodeToDocument. With the config file as above and the document type, you don’t need to loop, index or do anything else – just map from the applicable fields in the properties document variable.
#webMethods-io-Integration#webMethods#Integration-Server-and-ESB#B2B-Integration#webMethods-io-B2B