Notes kind() getter is used to read TXmlNode.k field.

This commit is contained in:
Grzegorz Adam Hankiewicz 2013-07-19 23:25:22 +02:00
commit e7be3d873f

View file

@ -24,7 +24,7 @@ type
PXmlAttributes* = PStringTable ## an alias for a string to string mapping PXmlAttributes* = PStringTable ## an alias for a string to string mapping
TXmlNode {.pure, final, acyclic.} = object TXmlNode {.pure, final, acyclic.} = object
case k: TXmlNodeKind case k: TXmlNodeKind # private, use the kind() proc to read this field.
of xnText, xnComment, xnCData, xnEntity: of xnText, xnComment, xnCData, xnEntity:
fText: string fText: string
of xnElement: of xnElement: