Name

severity: unsigned short(3)

Synopsis

This attribute indicates the severity of the error, which will be one of the constants from the following table:

Severity constant

Value

Meaning

SEVERITY_WARNING

1

This is an “informational” error, and DOM processing may proceed normally.

SEVERITY_ERROR

2

This is a possibly recoverable error (such as a schema validation problem in an otherwise well-formed document).

SEVERITY_FATAL_ERROR

3

An unrecoverable error (such as a well-formedness problem) has occurred.

Java binding

public short getSeverity( )

Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.