Saturday, November 22, 2014

Constructors For XmlHolder

XmlHolder is the class provided by SoapUI to parse the Xml


1)def holder = XmlHolder(Node node)
Here were are passing the node directly

eg : def holder = XmlHolder("//parent/child")

2)def holder = XmlHolder(String Xml)
Here we are directly passing the xml itself

eg : def holder = XmlHolder("<body><name>xyz</name><phone>1234567890</phone></body>")

3)def holder = XmlHolder(org.apache.xmlbeans.XmlObject xmlObject)
here we pass an obect that has xml in it

No comments:

Post a Comment