Hello. In this article I’m going to talk briefly about the file format of Flowcode projects.
One of the aims of Flowcode v6 was to make things more open and easier for our users to build on. A major change here is the file format has undergone a complete overhaul, from a closed binary format to an XML layout. XML is a format used widely on the Web, and HTML is closely related to XML. This means that most web-based technologies can parse XML.
So Flowcode is no longer the only application that can read project files, opening up the possibility for additional applications to be packaged with Flowcode.
Now we can load an XML file it is time to parse the FCFX document. Looking at the start of the test.FCFX file we see the details we are after:
Tags are shown in blue and attributes are shown in red. We want to pull out the documents title, description, target, clock speed and config data.
Now the xmlDoc is pointing to the correct root tag, we can loop through the tags as though they are an array and pull out what we want:
You can see this small project at work in our forums as all FCFX files uploaded to the forum now show the chip, clock and configuration values along with the project file.
16,966 total views, 8 views today