Microsoft SDK for Java

setShortEndTags

This method of the Parser class determines whether to allow short end tags.

XML allows you to end a tag with a "/>". This signals that the element has no contents, and does not have an end tag. For example,

<title/>

is equivalent to

<title></title>

setShortEndTags turns this feature on or off.

Syntax

public void setShortEndTags(boolean shortendtags);

Parameters

shortendtags Enables short end tags.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.