1
General discussion / Re: Forum portal
« on: May 22, 2014, 02:05:47 pm »
I am really enjoy it! Using everyday.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
<row>
<millis>1000</millis>
<stamp> 1273010254</stamp>
<datetime> 2010/5/4 21:57:34</datetime>
<light> 333</light>
<temp> 78.32</temp>
<vcc> 3.54</vcc>
</row>
public List<Measurement> readMeasurements(String xmlFile) {
List<Measurement> measurements = new ArrayList<Measurement>();
Measurement measurement = null;
if (xmlEvent.isStartElement()){
StartElement startElement = xmlEvent.asStartElement();
if(startElement.getName().getLocalPart().equals("row")){
measurement = new Measurement();
}
else if(startElement.getName().getLocalPart().equals("millis")){
xmlEvent = xmlEventReader.nextEvent();
measurement.setMillis(xmlEvent.asCharacters().getData());