vlc | branch: master | Rémi Duraffort <[email protected]> | Thu Aug 12 13:02:29 2010 +0200| [7c9f25dd1bffcab310393bbeead0a15c0ef8a9b5] | committer: Rémi Duraffort
lua: add xml binding to the README. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7c9f25dd1bffcab310393bbeead0a15c0ef8a9b5 --- share/lua/README.txt | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/share/lua/README.txt b/share/lua/README.txt index ac6760e..b968b19 100644 --- a/share/lua/README.txt +++ b/share/lua/README.txt @@ -425,3 +425,14 @@ volume.set( level ): Set volume to an absolute level between 0 and 1024. volume.up( [n] ): Increment volume by n steps of 32. n defaults to 1. volume.down( [n] ): Decrement volume by n steps of 32. n defaults to 1. +XML +--- +xml = vlc.xml(): Create an xml object. +reader = xml:create_reader( stream ): create an xml reader that use the given stream. +reader:read(): read some data +reader:node_type(): return the type of the curret node: 'none', 'startelem', 'endelem' or 'text'. +reader:name(): name of the element +reader:value(): value of the element +reader:next_attr(): next attribute of the element + +The simplexml module can also be used to parse XML documents easily. _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
