UnderwareDesign
November 24, 2017, 05:06:04 AM *
News: PlayBASIC V1.64P4 (Revision 4) Released  (24th,Mar,2016)
   Home    
Pages: [1]
 
Author Topic: PlayBASIC Live: Creating a library (XML Parser) Series  (Read 176 times)
Member
Development Team


WWW
« on: September 30, 2017, 10:11:47 AM »


  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

2017-09-30 - XML parser - Episode 1.zip (4.93 KB - downloaded 0 times.)
Logged

Member
Development Team


WWW
« Reply #1 on: October 02, 2017, 09:36:57 AM »


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

2017-10-02 - XML parser - Episode 2.zip (6.16 KB - downloaded 0 times.)
Logged

Member
Development Team


WWW
« Reply #2 on: October 13, 2017, 11:54:39 AM »


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

2017-10-14 - XML parser - Episode 3.zip (7.89 KB - downloaded 0 times.)
Logged

Member
Development Team


WWW
« Reply #3 on: October 15, 2017, 10:32:05 PM »


 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

2017-10-16 - XML parser - Episode 4.zip (12.94 KB - downloaded 0 times.)
Logged

Member
Development Team


WWW
« Reply #4 on: November 01, 2017, 03:04:18 AM »

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

2017-10-31 - XML parser - Episode 5 - Take 2.zip (18.4 KB - downloaded 0 times.)
Logged

Pages: [1]
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2009, Simple Machines LLC | Privacy Policy Valid XHTML 1.0! Valid CSS!