247 |
|
if ( debug == 1 ){ |
248 |
|
std::cout << "Adding Element + attributes" << endl; |
249 |
|
} |
250 |
< |
count++; |
250 |
> |
// count++; |
251 |
|
} // if |
252 |
|
isAttrib = 0; |
253 |
|
attributeLevel = ""; |
283 |
|
if ( attributeLevel != levels[level] ){ |
284 |
|
xml.addElement(attributeLevel,attributes,""); |
285 |
|
if ( debug == 1 ){ |
286 |
< |
std::cout << "Adding Element + attributes" << endl; |
286 |
> |
std::cout << "Adding Element + attributes1" << endl; |
287 |
|
} |
288 |
|
attributeLevel = ""; |
289 |
|
attributes = ""; |
292 |
|
if ( count == titlepointer ){ |
293 |
|
xml.addElement(attributeLevel,attributes,""); |
294 |
|
if ( debug == 1 ){ |
295 |
< |
std::cout << "Adding Element + attributes" << endl; |
295 |
> |
std::cout << "Adding Element + attributes2" << endl; |
296 |
|
} |
297 |
|
attributeLevel = ""; |
298 |
|
attributes = ""; |
308 |
|
if ( attributeLevel != "" ){ |
309 |
|
xml.addElement(attributeLevel,attributes,""); |
310 |
|
if ( debug == 1 ){ |
311 |
< |
std::cout << "Adding Element + attributes" << endl; |
311 |
> |
std::cout << "Adding Element + attributes3" << endl; |
312 |
|
} |
313 |
|
attributeLevel = ""; |
314 |
|
attributes = ""; |
338 |
|
|
339 |
|
} else { |
340 |
|
xml.addElement(levels[level], values[count]); |
341 |
+ |
count++; |
342 |
|
if ( debug == 1 ){ |
343 |
|
std::cout << "Adding Element" << endl; |
344 |
|
} |
345 |
|
} |
346 |
< |
count++; |
346 |
> |
|
347 |
|
} else { |
348 |
|
// gotta change it |
349 |
|
|