int idx= 0;
int seriesidx= parentChart.getParentChart().getAllSeries().size();
String[] ranges= {"","","",""}; //legend, cat, ser/value, bubble cell references
String legendText= "";
SpPr sp= null;
DLbls d= null;
Marker m= null;
boolean smooth= false;
ArrayList dpts= null;
String cache= null;
while (eventType != XmlPullParser.END_DOCUMENT) {
if (eventType == XmlPullParser.START_TAG) {
String tnm = xpp.getName();
if (tnm.equals("ser")) { // Represents a single field in the PivotTable. This complex type contains
idx= 0;
}else if (tnm.equals("order")) {// attr val= order
}else if (tnm.equals("cat") || tnm.equals("xVal")) { // children: CHOICE OF: multiLvlStrRef, numLiteral, numRef, strLit, strRef
idx= 1;
}else if (tnm.equals("val") || tnm.equals("yVal")) { // children: CHOICE OF: numLit, numRef
idx= 2;
} else if (tnm.equals("dLbls")) { // data labels
lastTag.push(tnm); // keep track of element hierarchy
d= (DLbls) DLbls.parseOOXML(xpp, lastTag, wbh).cloneElement();
if (d.showBubbleSize()) parentChart.setChartOption("ShowBubbleSizes", "1");
if (d.showCatName()) parentChart.setChartOption("ShowCatLabel", "1");
if (d.showLeaderLines()) parentChart.setChartOption("ShowLdrLines", "1");
if (d.showLegendKey())
; // TODO: handle show legend key
if (d.showPercent()) parentChart.setChartOption("ShowLabelPct", "1");
if (d.showSerName()) parentChart.setChartOption("ShowLabel", "1");
if (d.showVal()) parentChart.setChartOption("ShowValueLabel", "1");
// data label options
} else if (tnm.equals("dPt")) { // data point(s)
if (dpts==null) dpts= new ArrayList();
lastTag.push(tnm); // keep track of element hierarchy
dpts.add((DPt) DPt.parseOOXML(xpp, lastTag, wbh).cloneElement());