Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying LiveCode Mobile Development Cookbook
  • Table Of Contents Toc
LiveCode Mobile Development Cookbook

LiveCode Mobile Development Cookbook

By : Dr. Edward Lavieri Jr.
3.5 (11)
close
close
LiveCode Mobile Development Cookbook

LiveCode Mobile Development Cookbook

3.5 (11)
By: Dr. Edward Lavieri Jr.

Overview of this book

If you are a LiveCode mobile developer looking to improve your existing skills, add efficiencies to your code, or want a better understanding of LiveCode’s capabilities, then LiveCode Mobile Development Cookbook is a must-have for you. The reader should at least have a basic understanding of LiveCode and mobile application development.
Table of Contents (12 chapters)
close
close
11
Index

Writing XML


XML files represent an organized method to save and quickly read information from files.

Getting ready

Since XML is a marked language used for organizing and nesting data, you must first determine what type of data you have and how you want it organized. For example, you might simply have vehicle makes and models, so your XML file structure would be <vehicle><make><model> and might look something like the following code:

<vehicle>
  <ford>
    <car>Taurus</car>
    <truck>F-350</truck>
    <van>E-150</van>
  </ford>

How to do it...

Use the following steps to create and write an XML data structure:

  1. To write XML data, use a function to write each line of text such as with the following code:

    function createXML theTag, theText
      local theXML
    
      put "<" & theTag & ">" into theXML
      put theText after theXML
      put "</" & theTag & ">" after theXML
      return theXML
    end createXML
  2. Once the entire...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
LiveCode Mobile Development Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon