I want to delete a child node by using xquery update delete, how can I get the updated XML after deleting the node?
I am trying to use getFirstXMLObject(), but it isn’t work~
[color=“brown”]Original XML
<?xml version="1.0"?> [/color][color=“green”]
Java Code
xmlObjectAccessor = connection.newXMLObjectAccessor(TAccessLocation.newInstance(ConfigFile.TAMINO_COLLECTION),TDOMObjectModel.getInstance());
xquery = update delete input()/bank/client[@name=‘Cherry’]
TXQuery txquery = TXQuery.newInstance(xquery);
TResponse response = xmlObjectAccessor.xquery(txquery);
String output = response.getFirstXMLObject().toString();
System.out.println(output);[/color]
[color=“blue”]Expected Output
<?xml version="1.0"?> [/color]