def xmlRecords = new XmlParser().parseText(peopleString)
// println xmlRecords.person.subject_datas
println "123"
def datas = xmlRecords.person.subject_datas
def newNode = new Node(datas, 'subject_data')
def newSubNode = new Node(newNode, "subject_field_id", ["type", "integer"], "123max offer")
def newSubNode1 = new Node(newNode, "value", "1000")
def newNode2 = new Node(datas,"subject_data")
def newSubNode2 = new Node(newNode, "subject_field_id", ["type", "integer"], "123application Status")
def newSubNode21 = new Node(newNode, "value", "APPLIED")
Hi All,
I am face to a problem when I am trying to update a xml response.
I am using parseText to convert xmlstring to node. And then use the constructer to create a Node obj. new Node(NodeList, Object(name))
I got confused by the name which should use Object. When I put String here I got Could not find matching constructor for: groovy.util.Node(groovy.util.NodeList, java.lang.String). Do I need to convert String to Object? ?_?