Skip to content

Commit e087f7e

Browse files
committed
Merge pull request #18 from robertfeldt/master
added note/warning about mem management
2 parents d6584b8 + c5aac93 commit e087f7e

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+
**Note:** 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)