# Class zXmlDom

- `Object`

- `zXmlDom`

## Description

The `zXml` class is used to house basic settings for the zXml library. It contains hints as to what DOM and XMLHttp implementations to use as well as all of the ActiveX signatures used by Internet Explorer for XML operations.

#### Author:

Nicholas C. Zakas, http://www.nczonline.net/

#### Version:

1.0

#### Since:

1.0

## Field Summary

`boolean` | `cancelable` Indicates whether or not the event's default action can be cancelled.
`zEventTarget` | `target` The object that fired the event.
`long` | `timeStamp` The time that the event occurred in milliseconds since midnight, January 1, 1970.
`String` | `type` The type of event that was fired (i.e., "click").

## Constructor Summary

`zEvent()` Creates a new instance of `zEvent`.

## Method Summary

`void` | `initEvent(String type, boolean cancelable)` Initializes the event's `type` and `cancelable` fields to the specified values.
`void` | `preventDefault()` Prevents the default action for an event (only if the event is cancelable).

## Field Detail

### cancelable

`public boolean cancelable`

Indicates whether or not the event's default action can be cancelled.

### target

`public zEventTarget target`

The object that fired the event.

### timeStamp

`public long timeStamp`

The time that the event occurred in milliseconds since midnight, January 1, 1970.

### type

`public String type`

The type of event that was fired (i.e., "click").

## Constructor Detail

### zEvent

`public zEvent()`

Creates a new instance of `zEvent`.

## Method Detail

### initEvent

`public void initEvent(String type, boolean cancelable)`

Initializes the event's `type` and `cancelable` fields to the specified values.

#### Arguments:

- `type` - the type of event that has occurred.
- `cancelable` - whether or not the default action of the event can be cancelled.

### preventDefault

`public void preventDefault()`

Prevents the default action of an event if the event is cancelable.