Returns the next element of this enumeration.
public DhElement next()
Returns the next element of this enumeration, or returns null if one does not exist.
This method returns a DhElement object so there is no need to cast the result to a DhElement object. The result can be further cast (for example, to DhImage) depending on the type of enumeration this is.
Many HTML tags do not map one-to-one into Java classes in this package. When enumerating through the return of next, always check the result by calling instanceof.