*/
public void startElement(String tag, java.util.Hashtable h) throws Exception {
if (tag.compareTo("host") == 0) { hostDefinition = true;
// this will make nexsm a little slow when proccesing Nagios 2 objects.cache
// but will make it compatible with Nagios 3 almost instantly
hostextinfo = true; hetmp = new HostExtInfo();
}
// Added for Nagios 3 compat
if (tag.compareTo("service") == 0) {
svcextinfo = true; setmp = new ServiceExtInfo();
}
if (tag.compareTo("host_name") == 0) { host_name = true; }
if (tag.compareTo("address") == 0) { ip = true; }
if (tag.compareTo("alias") == 0) { alias = true; }
if (tag.compareTo("parents") == 0){ parents = true; }
if (tag.equals("host_name")) { host_name = true; }
if (tag.equals("hostextinfo")) { hostextinfo = true; hetmp = new HostExtInfo(); }
if (tag.equals("icon_image")) { icon_image = true; }
if (tag.equals("statusmap_image")) { statusmap_image = true; }
if (tag.equals("notes_url")) { notes_url = true; }
if (tag.equals("action_url")) { action_url = true; }
if (tag.equals("serviceextinfo")) { svcextinfo = true; setmp = new ServiceExtInfo(); }