Skip to content

XML format

André Storhaug edited this page Apr 27, 2020 · 2 revisions

XML format

Example of XMLExporter output

This is an example export of voxels.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<content>
  <dimensions>
    <width>3</width>
    <height>3</height>
    <depth>1</depth>
  </dimensions>
  <voxels>
    <voxel>
      <position>
        <x>1</x>
        <y>2</y>
        <z>0</z>
      </position>
    </voxel>
    <voxel>
      <position>
        <x>2</x>
        <y>1</y>
        <z>0</z>
      </position>
    </voxel>
  </voxels>
</content>

Example of XMLExporter output with colors

This is an example export of both voxels and colors.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<content>
  <dimensions>
    <width>3</width>
    <height>3</height>
    <depth>1</depth>
  </dimensions>
  <voxels>
    <voxel>
      <position>
        <x>1</x>
        <y>2</y>
        <z>0</z>
      </position>
      <color>
        <r>255</r>
        <g>255</g>
        <b>0</b>
      </color>
    </voxel>
    <voxel>
      <position>
        <x>2</x>
        <y>1</y>
        <z>0</z>
      </position>
      <color>
        <r>255</r>
        <g>255</g>
        <b>0</b>
      </color>
    </voxel>
  </voxels>
</content>
Clone this wiki locally