Element item = root.getChild("GetCitiesByCountryResult", erJdomNamespace);
//(item.getText()) after thishere returns correct value everything works fine
//but from this I am getting null value:
Element newData1=item.getChild("NewDataSet",erJdomNamespace); //here is NULL
I would say it is very often and quite natural to deliver payload in a string which actually be the serialized xml document.
You can do it like this on a general plot. Replace this line:
>Element newData1=item.getChild("NewDataSet",erJdomNamespace); //here is NULL by this block (with catching such as JDOMException on the way):
Then you are probably good to go ahead with it as what you've conceived therefrom.
Veljko Cankovic
Greenhorn
Joined: Dec 27, 2011
Posts: 6
posted
0
Thanks William and g tsuji, you really helped me.
All the best!