add_scalar


Description:

public int add_scalar (string tag, string value, int length, ScalarStyle style)

Create a SCALAR node and attach it to the document.

The style argument may be ignored by the emitter.

Parameters:

tag

The scalar tag.

value

The scalar value.

length

The length of the scalar value.

style

The scalar style.

document

A document object.

Returns:

the node id or 0 on error.