private ValgrindStack parseStackTag(SMInputCursor child)
throws javax.xml.stream.XMLStreamException
{
ValgrindStack stack = new ValgrindStack();
SMInputCursor frameCursor = child.childElementCursor("frame");
while (frameCursor.getNext() != null) {
SMInputCursor frameChild = frameCursor.childElementCursor();
String ip = null;
String obj = null;
String fn = null;
String dir = null;
String file = null;
String line = null;
while (frameChild.getNext() != null) {
String tagName = frameChild.getLocalName();
if ("ip".equalsIgnoreCase(tagName)) {
ip = frameChild.getElemStringValue();
} else if ("obj".equalsIgnoreCase(tagName)) {
obj = frameChild.getElemStringValue();
} else if ("fn".equalsIgnoreCase(tagName)) {
fn = frameChild.getElemStringValue();
} else if ("dir".equalsIgnoreCase(tagName)) {
dir = frameChild.getElemStringValue();
} else if ("file".equalsIgnoreCase(tagName)) {
file = frameChild.getElemStringValue();
} else if ("line".equalsIgnoreCase(tagName)) {
line = frameChild.getElemStringValue();
}
}
stack.addFrame(new ValgrindFrame(ip, obj, fn, dir, file, line));
}