rbx_xml 3.0.0

Implementation of Roblox's XML file formats, rbxlx and rbxmx
Documentation
---
source: rbx_xml/src/tests/mod.rs
expression: encoded_text
---
<roblox version="4">
  <Item class="Folder" referent="0">
    <Properties>
      <string name="Name">Folder</string>
      <BinaryString name="AttributesSerialize"></BinaryString>
      <int64 name="SourceAssetId">-1</int64>
      <BinaryString name="Tags"></BinaryString>
    </Properties>
    <Item class="ScreenGui" referent="1">
      <Properties>
        <string name="Name">IgnoreGuiInset: true</string>
        <BinaryString name="AttributesSerialize"></BinaryString>
        <bool name="AutoLocalize">true</bool>
        <bool name="ClipToDeviceSafeArea">true</bool>
        <int name="DisplayOrder">0</int>
        <bool name="Enabled">true</bool>
        <bool name="ResetOnSpawn">true</bool>
        <Ref name="RootLocalizationTable">null</Ref>
        <token name="SafeAreaCompatibility">1</token>
        <token name="ScreenInsets">1</token>
        <token name="SelectionBehaviorDown">0</token>
        <token name="SelectionBehaviorLeft">0</token>
        <token name="SelectionBehaviorRight">0</token>
        <token name="SelectionBehaviorUp">0</token>
        <bool name="SelectionGroup">false</bool>
        <int64 name="SourceAssetId">-1</int64>
        <BinaryString name="Tags"></BinaryString>
        <token name="ZIndexBehavior">1</token>
      </Properties>
    </Item>
    <Item class="ScreenGui" referent="2">
      <Properties>
        <string name="Name">IgnoreGuiInset: false</string>
        <BinaryString name="AttributesSerialize"></BinaryString>
        <bool name="AutoLocalize">true</bool>
        <bool name="ClipToDeviceSafeArea">true</bool>
        <int name="DisplayOrder">0</int>
        <bool name="Enabled">true</bool>
        <bool name="ResetOnSpawn">true</bool>
        <Ref name="RootLocalizationTable">null</Ref>
        <token name="SafeAreaCompatibility">1</token>
        <token name="ScreenInsets">2</token>
        <token name="SelectionBehaviorDown">0</token>
        <token name="SelectionBehaviorLeft">0</token>
        <token name="SelectionBehaviorRight">0</token>
        <token name="SelectionBehaviorUp">0</token>
        <bool name="SelectionGroup">false</bool>
        <int64 name="SourceAssetId">-1</int64>
        <BinaryString name="Tags"></BinaryString>
        <token name="ZIndexBehavior">1</token>
      </Properties>
      <Item class="TextLabel" referent="3">
        <Properties>
          <string name="Name">TextLabel</string>
          <bool name="Active">false</bool>
          <Vector2 name="AnchorPoint">
            <X>0</X>
            <Y>0</Y>
          </Vector2>
          <BinaryString name="AttributesSerialize"></BinaryString>
          <bool name="AutoLocalize">true</bool>
          <token name="AutomaticSize">0</token>
          <Color3 name="BackgroundColor3">
            <R>1</R>
            <G>1</G>
            <B>1</B>
          </Color3>
          <float name="BackgroundTransparency">0</float>
          <Color3 name="BorderColor3">
            <R>0.10588236</R>
            <G>0.16470589</G>
            <B>0.20784315</B>
          </Color3>
          <token name="BorderMode">0</token>
          <int name="BorderSizePixel">1</int>
          <bool name="ClipsDescendants">false</bool>
          <bool name="Draggable">false</bool>
          <Font name="FontFace">
            <Family>
              <url>rbxasset://fonts/families/Inconsolata.json</url>
            </Family>
            <Weight>400</Weight>
            <Style>Normal</Style>
          </Font>
          <int name="LayoutOrder">0</int>
          <float name="LineHeight">1</float>
          <int name="MaxVisibleGraphemes">-1</int>
          <Ref name="NextSelectionDown">null</Ref>
          <Ref name="NextSelectionLeft">null</Ref>
          <Ref name="NextSelectionRight">null</Ref>
          <Ref name="NextSelectionUp">null</Ref>
          <UDim2 name="Position">
            <XS>0</XS>
            <XO>0</XO>
            <YS>0</YS>
            <YO>0</YO>
          </UDim2>
          <bool name="RichText">false</bool>
          <Ref name="RootLocalizationTable">null</Ref>
          <float name="Rotation">0</float>
          <bool name="Selectable">false</bool>
          <token name="SelectionBehaviorDown">0</token>
          <token name="SelectionBehaviorLeft">0</token>
          <token name="SelectionBehaviorRight">0</token>
          <token name="SelectionBehaviorUp">0</token>
          <bool name="SelectionGroup">false</bool>
          <Ref name="SelectionImageObject">null</Ref>
          <int name="SelectionOrder">0</int>
          <UDim2 name="Size">
            <XS>0</XS>
            <XO>200</XO>
            <YS>0</YS>
            <YO>50</YO>
          </UDim2>
          <token name="SizeConstraint">0</token>
          <int64 name="SourceAssetId">-1</int64>
          <BinaryString name="Tags"></BinaryString>
          <string name="Text">Label</string>
          <Color3 name="TextColor3">
            <R>0</R>
            <G>0</G>
            <B>0</B>
          </Color3>
          <bool name="TextScaled">false</bool>
          <float name="TextSize">14</float>
          <Color3 name="TextStrokeColor3">
            <R>0</R>
            <G>0</G>
            <B>0</B>
          </Color3>
          <float name="TextStrokeTransparency">1</float>
          <float name="TextTransparency">0</float>
          <token name="TextTruncate">0</token>
          <bool name="TextWrapped">false</bool>
          <token name="TextXAlignment">2</token>
          <token name="TextYAlignment">1</token>
          <bool name="Visible">true</bool>
          <int name="ZIndex">1</int>
        </Properties>
      </Item>
      <Item class="TextButton" referent="4">
        <Properties>
          <string name="Name">TextButton</string>
          <bool name="Active">true</bool>
          <Vector2 name="AnchorPoint">
            <X>0</X>
            <Y>0</Y>
          </Vector2>
          <BinaryString name="AttributesSerialize"></BinaryString>
          <bool name="AutoButtonColor">true</bool>
          <bool name="AutoLocalize">true</bool>
          <token name="AutomaticSize">0</token>
          <Color3 name="BackgroundColor3">
            <R>1</R>
            <G>1</G>
            <B>1</B>
          </Color3>
          <float name="BackgroundTransparency">0</float>
          <Color3 name="BorderColor3">
            <R>0.10588236</R>
            <G>0.16470589</G>
            <B>0.20784315</B>
          </Color3>
          <token name="BorderMode">0</token>
          <int name="BorderSizePixel">1</int>
          <bool name="ClipsDescendants">false</bool>
          <bool name="Draggable">false</bool>
          <Font name="FontFace">
            <Family>
              <url>rbxasset://fonts/families/SourceSansPro.json</url>
            </Family>
            <Weight>700</Weight>
            <Style>Normal</Style>
          </Font>
          <int name="LayoutOrder">0</int>
          <float name="LineHeight">1</float>
          <int name="MaxVisibleGraphemes">-1</int>
          <bool name="Modal">false</bool>
          <Ref name="NextSelectionDown">null</Ref>
          <Ref name="NextSelectionLeft">null</Ref>
          <Ref name="NextSelectionRight">null</Ref>
          <Ref name="NextSelectionUp">null</Ref>
          <UDim2 name="Position">
            <XS>0</XS>
            <XO>0</XO>
            <YS>0</YS>
            <YO>55</YO>
          </UDim2>
          <bool name="RichText">false</bool>
          <Ref name="RootLocalizationTable">null</Ref>
          <float name="Rotation">0</float>
          <bool name="Selectable">true</bool>
          <bool name="Selected">false</bool>
          <token name="SelectionBehaviorDown">0</token>
          <token name="SelectionBehaviorLeft">0</token>
          <token name="SelectionBehaviorRight">0</token>
          <token name="SelectionBehaviorUp">0</token>
          <bool name="SelectionGroup">false</bool>
          <Ref name="SelectionImageObject">null</Ref>
          <int name="SelectionOrder">0</int>
          <UDim2 name="Size">
            <XS>0</XS>
            <XO>200</XO>
            <YS>0</YS>
            <YO>50</YO>
          </UDim2>
          <token name="SizeConstraint">0</token>
          <int64 name="SourceAssetId">-1</int64>
          <token name="Style">0</token>
          <BinaryString name="Tags"></BinaryString>
          <string name="Text">Button</string>
          <Color3 name="TextColor3">
            <R>0</R>
            <G>0</G>
            <B>0</B>
          </Color3>
          <bool name="TextScaled">false</bool>
          <float name="TextSize">14</float>
          <Color3 name="TextStrokeColor3">
            <R>0</R>
            <G>0</G>
            <B>0</B>
          </Color3>
          <float name="TextStrokeTransparency">1</float>
          <float name="TextTransparency">0</float>
          <token name="TextTruncate">0</token>
          <bool name="TextWrapped">false</bool>
          <token name="TextXAlignment">2</token>
          <token name="TextYAlignment">1</token>
          <bool name="Visible">true</bool>
          <int name="ZIndex">1</int>
        </Properties>
      </Item>
      <Item class="TextBox" referent="5">
        <Properties>
          <string name="Name">TextBox</string>
          <bool name="Active">true</bool>
          <Vector2 name="AnchorPoint">
            <X>0</X>
            <Y>0</Y>
          </Vector2>
          <BinaryString name="AttributesSerialize"></BinaryString>
          <bool name="AutoLocalize">true</bool>
          <token name="AutomaticSize">0</token>
          <Color3 name="BackgroundColor3">
            <R>1</R>
            <G>1</G>
            <B>1</B>
          </Color3>
          <float name="BackgroundTransparency">0</float>
          <Color3 name="BorderColor3">
            <R>0.10588236</R>
            <G>0.16470589</G>
            <B>0.20784315</B>
          </Color3>
          <token name="BorderMode">0</token>
          <int name="BorderSizePixel">1</int>
          <bool name="ClearTextOnFocus">true</bool>
          <bool name="ClipsDescendants">false</bool>
          <bool name="Draggable">false</bool>
          <Font name="FontFace">
            <Family>
              <url>rbxasset://fonts/families/SourceSansPro.json</url>
            </Family>
            <Weight>400</Weight>
            <Style>Italic</Style>
          </Font>
          <int name="LayoutOrder">0</int>
          <float name="LineHeight">1</float>
          <int name="MaxVisibleGraphemes">-1</int>
          <bool name="MultiLine">false</bool>
          <Ref name="NextSelectionDown">null</Ref>
          <Ref name="NextSelectionLeft">null</Ref>
          <Ref name="NextSelectionRight">null</Ref>
          <Ref name="NextSelectionUp">null</Ref>
          <Color3 name="PlaceholderColor3">
            <R>0.7</R>
            <G>0.7</G>
            <B>0.7</B>
          </Color3>
          <string name="PlaceholderText"></string>
          <UDim2 name="Position">
            <XS>0</XS>
            <XO>0</XO>
            <YS>0</YS>
            <YO>110</YO>
          </UDim2>
          <bool name="RichText">false</bool>
          <Ref name="RootLocalizationTable">null</Ref>
          <float name="Rotation">0</float>
          <bool name="Selectable">true</bool>
          <token name="SelectionBehaviorDown">0</token>
          <token name="SelectionBehaviorLeft">0</token>
          <token name="SelectionBehaviorRight">0</token>
          <token name="SelectionBehaviorUp">0</token>
          <bool name="SelectionGroup">false</bool>
          <Ref name="SelectionImageObject">null</Ref>
          <int name="SelectionOrder">0</int>
          <bool name="ShowNativeInput">true</bool>
          <UDim2 name="Size">
            <XS>0</XS>
            <XO>200</XO>
            <YS>0</YS>
            <YO>50</YO>
          </UDim2>
          <token name="SizeConstraint">0</token>
          <int64 name="SourceAssetId">-1</int64>
          <BinaryString name="Tags"></BinaryString>
          <string name="Text">TextBox</string>
          <Color3 name="TextColor3">
            <R>0</R>
            <G>0</G>
            <B>0</B>
          </Color3>
          <bool name="TextEditable">true</bool>
          <bool name="TextScaled">false</bool>
          <float name="TextSize">14</float>
          <Color3 name="TextStrokeColor3">
            <R>0</R>
            <G>0</G>
            <B>0</B>
          </Color3>
          <float name="TextStrokeTransparency">1</float>
          <float name="TextTransparency">0</float>
          <token name="TextTruncate">0</token>
          <bool name="TextWrapped">false</bool>
          <token name="TextXAlignment">2</token>
          <token name="TextYAlignment">1</token>
          <bool name="Visible">true</bool>
          <int name="ZIndex">1</int>
        </Properties>
      </Item>
    </Item>
  </Item>
</roblox>