Skip to content

Commit 0826c13

Browse files
committed
added note/warning about mem management
1 parent d6584b8 commit 0826c13

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ add_text(xs3, "California")
162162
set_attributes(xs3; tag="CA", cap="Sacramento")
163163
```
164164

165+
Please note that when you create XML documents and elements directly you need to take care not to leak memory; memory management in the underlying libxml2 library is complex and LightXML currently does not integrate well with Julia's garbage collection system. You can call free on an XMLDocument but if you are directly creating XMLElement's there is not yet a corresponding free function to call.
166+
165167
#### Export an XML file
166168

167169
With this package, you can easily export an XML file to a string or a file, or show it on the console, as

0 commit comments

Comments
 (0)