Java Reference
In-Depth Information
if (country != null) {
xmlBuffer.append(" ");
xmlBuffer.append(XML_ATTR_COUNTRY);
xmlBuffer.append(XML_ATTR_IS);
xmlBuffer.append(XML_ATTR_QUOTE);
xmlBuffer.append(country);
xmlBuffer.append(XML_ATTR_QUOTE);
}
if (forecast != null ||
temp != null ||
(precipitation != null &&
precipitationProb != null &&
precipitationType != null) ||
(windSpeed != null && windDirection != null)) {
xmlBuffer.append(XML_END_OPEN);
xmlBuffer.append(XML_NEWLINE);
if (temp != null) {
xmlBuffer.append(XML_START_OPEN);
xmlBuffer.append(XML_TAG_TEMPS);
xmlBuffer.append(XML_ATTR_TUNITS);
xmlBuffer.append(XML_END_OPEN);
xmlBuffer.append(XML_NEWLINE);
xmlBuffer.append(XML_START_OPEN);
xmlBuffer.append(XML_TAG_TEMP);
xmlBuffer.append(" ");
xmlBuffer.append(XML_ATTR_TYPE);
xmlBuffer.append(XML_ATTR_IS);
xmlBuffer.append("\"current\"");
xmlBuffer.append(XML_END_OPEN);
xmlBuffer.append(temp);
xmlBuffer.append(XML_START_CLOSE);
xmlBuffer.append(XML_TAG_TEMP);
xmlBuffer.append(XML_END_CLOSE);
xmlBuffer.append(XML_NEWLINE);
xmlBuffer.append(XML_START_CLOSE);
xmlBuffer.append(XML_TAG_TEMPS);
xmlBuffer.append(XML_END_CLOSE);
xmlBuffer.append(XML_NEWLINE);
}
if (windSpeed != null && windDirection != null) {
xmlBuffer.append(XML_START_OPEN);
xmlBuffer.append(XML_TAG_WIND);
 
Search WWH ::




Custom Search