BloombergLP::balxml::Formatter_CompactImplStateId::Enum

Labels for distinct states of Formatter_CompactImplState.

Synopsis

Declared in <balxml_formatter_compactimpl.h>

enum Enum;

Members

NameDescription
e_AT_START This state indicates that the current write position of the formatter is at the start of the document. The formatter is only allowed to add an XML header when in this state.
e_IN_TAG This state indicates that the current write position of the formatter is immediately after the name of an opening tag, or otherwise immediately after the value of an attribute of an opening tag. In this state, most token printing operations, other than adding attributes, need to emit a ">" character to close the currently open tag before emitting their content. For example: ` 1| <someTag `---------^
e_FIRST_DATA_BETWEEN_TAGS This state indicates that the current write position of the formatter is either 1) after a closing tag, or 2) after a complete opening tag and before any data for the tag. In this state, data printing operations do not need to emit delimiting whitespace for their content. Note that comments are not considered data. For example: ` 1| <someTag> `----------^ ` or: ` 1| <someTag><!-- comment --> `--------------------------^ ` or: ` 1| <someTag></someTag> `--------------------^ `
e_TRAILING_DATA_BETWEEN_TAGS This state indicates that the current write position of the formatter is after one or more data tokens for the currently-open tag. In this state, data printing operations need to emit delimiting whitespace for their content. For example: ` 1| <someTag>data `--------------^ ` or: ` 1| <someTag>some list data `------------------------^ `