Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Binary XML conversion takes an input XML file, parses it, filters the XML elements and attributes, and stores the node tree in a binary format.

...

  • Smaller file size
  • Faster to read at runtime
  • Filtered Can be filtered to contain only specific data

...

In this example, the file 'xmlfilter.txt' is referenced, this file is located in Bin64\RC\xmlfilter.txt
This file controls which files are converted, and how, see below. 

The 'overwriteextension' property is used to force the files matching the input-set to be evaluated as if they were XML files (see parent document, on 'overwriteextension')

Note

Because the output file can be filtered, the conversion is potentially lossy.
Like most asset conversions, you should always keep the original file in another location as the converted file to prevent loss of data.

Filter file

The file specified through the 'xmlfilter' property is formatted as flat text, with each filter instruction on a separate line in the file.
While parsing this file, empty lines are ignored, all other lines must be formatted like one of the following:

...