- prefix
- must be not null (or IllegalArgumentException is thrown)
- namespace
- must be not null
Type Reason Java.IO.IOException Java.Lang.IllegalArgumentException Java.Lang.IllegalStateException
Binds the given prefix to the given namespace. This call is valid for the next element including child elements. The prefix and namespace MUST be always declared even if prefix is not used in element (startTag() or attribute()) - for XML 1.0 it must result in declaring xmlns:prefix='namespace' (or xmlns:prefix="namespace" depending what character is used to quote attribute value).
NOTE: this method MUST be called directly before startTag() and if anything but startTag() or setPrefix() is called next there will be exception.
NOTE: prefixes "xml" and "xmlns" are already bound and can not be redefined see: .
NOTE: to set default namespace use as prefix empty string.