Skip to content

Commit

Permalink
lua/doc: add documentation for reader:node_empty (vlc.xml)
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Ynard <[email protected]>
  • Loading branch information
filiproseen-refp authored and linkfanel committed Jul 28, 2016
1 parent 7ab2273 commit d97b2ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions share/lua/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -451,5 +451,8 @@ reader:read(): read some data, return -1 on error, 0 on EOF, 1 on start of XML
reader:name(): name of the element
reader:value(): value of the element
reader:next_attr(): next attribute of the element
reader:node_empty(): queries whether the previous invocation of reader:read()
refers to an empty node ("<tag/>"). Returns a value less than 0 on error,
1 if the node is empty, and 0 if it is not.

The simplexml module can also be used to parse XML documents easily.

0 comments on commit d97b2ad

Please sign in to comment.