News:

Function Finder  Find all the functions within source code files

Main Menu

PlayBASIC Live: Creating a library (XML Parser) Series

Started by kevin, September 30, 2017, 10:11:47 AM

Previous topic - Next topic

kevin

  PlayBASIC Live:  Creating a library (XML Parser) -  Episode 1 - (2017-10-01)

   Welcome...   Today we're going to try and build a library for PlayBASIC.  Now by library, I mean a set of functions that we can #include into other programs that   helps the us perform some task, in this case, our test library will parse   simple XML files.    

   Note:  The code from each episode will be attached the forum thread that follows this series.


 Video:

 



 Download:

   - Attached

kevin


PlayBASIC Live:  Creating a library (XML Parser)  - Episode 2 -  (2017-10-02)

Welcome to episode 2 in our creating a library series.    In this episode, we expand our simple parser to support tag attributes / properties.    

  Note:  The code from each episode will be attached the forum thread that follows this series.



Video:




Download:

   - Attached

kevin


PlayBASIC Live:  Creating a library (XML Parser) -  Episode 3 - (2017-10-14)

PlayBASIC Live  - Creating a PlayBASIC library Episode #3 -
   
      Welcome...   Today we continue the create a library (XML parser) series by expanding it to firstly show the parent -> Child  structure of the data,  then we build a simple way for storing those keys and data pairs in parallel string arrays..

                   Example Input         <Sprite  Name="Bill" Score="50" />
                                output          Sprite.Name = Bill 
                                                  Sprite.Score = 50


Video:





Download:

   - Attached

kevin


PlayBASIC Live:  Creating a library (XML Parser) -  Episode 4 - (2017-10-16)

Welcome... Today we continue the create a library (XML parser) series by starting to create the user interface functions. These are the functions the user of our library will be calling to read the information from the loaded XML document.

   Main added functions XML_Read$(KeyName$)
                                      XML_KeyExist(KeyName$)


Video:
 



Download:

  Attached

kevin

PlayBASIC Live:  Creating a library (XML Parser) -  Episode 5 - (2017-11-01)

   
     Welcome...   Today we convert the library (XML parser) from a single document  interface so that it can store as many XML files as the user needs.   We do this by converting everything into a structure with dynamic string arrays.   So there's some changes needed up front, but once done the user functions work the same.

    Changed functions      XML_DOCUMENT_INDEX = XML_Load(KeyName$)
 
                                       XML_SetDocument(XML_DOCUMENT_INDEX)      


     Note:  The source code from each episode is attached the forum thread that follows this series.

Video:





Download:

   Attached