TimestampContainer timestamp;
OsmUser user;
long changesetId;
double latitude;
double longitude;
Node node;
id = Long.parseLong(reader.getAttributeValue(null, ATTRIBUTE_NAME_ID));
version = Integer.parseInt(reader.getAttributeValue(null, ATTRIBUTE_NAME_VERSION));
timestamp = parseTimestamp(reader.getAttributeValue(null, ATTRIBUTE_NAME_TIMESTAMP));
changesetId = Long.parseLong(reader.getAttributeValue(null, ATTRIBUTE_NAME_CHANGESET_ID));
user = readUser();
changesetId = readChangesetId();
latitude = Double.parseDouble(reader.getAttributeValue(null, ATTRIBUTE_NAME_LATITUDE));
longitude = Double.parseDouble(reader.getAttributeValue(null, ATTRIBUTE_NAME_LONGITUDE));
node = new Node(new CommonEntityData(id, version, timestamp, user, changesetId), latitude, longitude);
reader.nextTag();
while (reader.getEventType() == XMLStreamConstants.START_ELEMENT) {
if (reader.getLocalName().equals(ELEMENT_NAME_TAG)) {
node.getTags().add(readTag());
} else {
readUnknownElement();
}
}