Hey guys,
need help with reading child blips. Consider following scenarios:
1. I have three blips in following order
RootBlip(A)
Blip(B)
Blip(C)
I use following loop to read all the content of the wave:
StringBuilder s = new StringBuilder(""); if(root != null){
if(!root.getDocument().getText().contains("http://173.45.238.233/files/" + waveId + "/" + waveId + ".pdf")){
s.append(root.getChild(i).getDocument().getText() + " "); }
} for(i=0;i<len;i++){
if(root.getChild(i) != null){ if(!root.getChild(i).getDocument().getText().contains("http://173.45.238.233/files/" + waveId + "/" + waveId + ".pdf")){
s.append(root.getChild(i).getDocument().getText() + " "); }
} if(root.getChild(i).hasChildren()){
Logger.getAnonymousLogger().severe("Child " + i + "has childern"); }
else{ Logger.getAnonymousLogger().severe("Child " + i + "has no childern");
} }When i run this loop, i get: ABC
2. Now a new blip is added as a reply to the second blip
RootBlip(A)
Blip(B)
Blip(D)
Blip(C)
Now the same loop as above reads the content of the newly added blip as last. So i get ABCD
But i want to read it as ABDC. How can I achieve this?
Thank you