Skip to content

Commit 6fa2667

Browse files
author
Erik Olofsen
committed
add cdata
1 parent 2ea26f6 commit 6fa2667

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,9 @@ e = new_child(parent, name) # create a new element and add it as a child
263263
add_text(e, text) # add text content to an element
264264
# equiv. to new_textnode + add_child
265265

266+
add_cdata(xdoc, e, text) # add text content to an element
267+
# equiv. to new_cdatanode + add_child
268+
266269
set_attribute(e, name, value) # set an attribute of an element
267270
# this returns the added attribute
268271
# as an instance of XMLAttr

0 commit comments

Comments
 (0)