2.2.2.2 Attribute Record (0x05)

This structure represents an attribute with a prefix.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Prefix (variable)

...

Name (variable)

...

Value (variable)

...

Prefix (variable): The prefix of the attribute encoded using String. The length of this String MUST be nonzero. The prefix MUST NOT be "xmlns".

Name (variable): The name of the attribute encoded using String. The length of this String MUST be nonzero. The name MUST NOT be "xmlns".

Value (variable): The value of the attribute encoded using a single text record (Text Records).

For example, if prefix refers to the string "prefix", and the name refers to the string "attr", and value refers to the text "value", this record is interpreted as the following characters.

 _prefix:attr="value"

Note that the underscore is intended to represent a single ASCII white-space character (32).