Ejemplo n.º 1
0
func newText(token xml.CharData) *_text {
	n := newNode(TEXT_NODE)
	t := &_text{_cdata{n, token.Copy()}}
	n.self = Node(t)
	return t
}
Ejemplo n.º 2
0
func newCData(token xml.CharData) *_cdata {
	n := newNode(CDATA_SECTION_NODE)
	cd := &_cdata{n, token.Copy()}
	n.self = Node(cd)
	return cd
}