It is easy enough to convey the entirety of the XML document you refer to, you can present it as a formatted HTML representation, or you can Zip compress the actual document and attach it. Doing either prevents language translation issues, that compound misunderstandings because we are using a "markup language." Therefore, when you type
and on top from the xml is
It's really hard for me to tell if you are telling us the Behaviors section is in the wrong place in the XML, or if it's on another XML document
on top of the animation XML document. I don't see any closing tags at all "</Behaviors>" which isn't to say you aren't using them, but there's no clear confirmation and a missing closing tag works exactly as if the information after the opening tag, "<Behaviors>" does not exist at all.
There are a great deal of variables that must be aligned for an animation to play properly in sim. A few of those variables are applied within the 3d software and I cannot speak to the specifics of terms or procedures in that software. Within my 3d software, the animation must be composed with a fairly rigid scheme of keyframes, either individually placed, or keyed as a skinned mesh, the animations have to have a specific naming convention, the animations must be recorded into the Babylon Animation Groups. Additionally, some animations, behavior group ones I believe, must be exported with "Containers and Xref Merged" in a PreExport Process.
Once free of the 3d software, an animation is not yet ready to play. It must be identified in the model XML file and it must be linked to it's trigger, which itself must be properly identified. If all this is said and done, the animation will play.
Now, there are a lot of sections in the XML and generally, it does not matter what order they are in, because the software has to read the entire document before it can act on any of the sections, or arguments. Within the document itself are this series of "arguments," marked by opening and closing tags. An argument is basically a statement, or a definition. The line indents are not required at all, developers add those to simplify interpreting the code and because of this, there is usually a clear pattern for where to place the opening and closing tags.
Below is the model XML from the default Cabri G2. You can see it is very legible. If you placed your animation argument into a document of this form and then showed us the complete version, it would be very easy to tell about proper syntax, placement and definition.
___________________________________________________________________________________________
XML:
<?xml version="1.0" encoding="utf-8" ?>
<ModelInfo>
<LODS>
<LOD minSize="150" ModelFile="Cabri_G2_LOD00.gltf"/>
<LOD minSize="90" ModelFile="Cabri_G2_LOD01.gltf"/>
<LOD minSize="70" ModelFile="Cabri_G2_LOD02.gltf"/>
<LOD minSize="30" ModelFile="Cabri_G2_LOD03.gltf"/>
<LOD minSize="10" ModelFile="Cabri_G2_LOD04.gltf"/>
<LOD minSize="5" ModelFile="Cabri_G2_LOD05.gltf"/>
</LODS>
<Behaviors>
<Include ModelBehaviorFile="Asobo\Exterior.xml"/>
<Include ModelBehaviorFile="Asobo\Generic\FX.xml"/>
<Include ModelBehaviorFile="Asobo\AircraftTypes\Rotorcrafts.xml"/>
<Component ID="ROTORS">
<Component ID="Main_Rotor">
<Parameters Type="Default">
<ID>1</ID>
<ROTOR_ID>1</ROTOR_ID>
<MIN_RPM_FOR_BLUR>350</MIN_RPM_FOR_BLUR>
<MIN_RPM_FOR_BLUR2>500</MIN_RPM_FOR_BLUR2>
</Parameters>
<Loop>
<Setup>
<Param>STATEID</Param>
<From>1</From>
<Inc>1</Inc>
<To>1</To>
<To>1</To>
</Setup>
<Do>
<Parameters Type="Override">
<Switch Param="STATEID">
<Case Value="1">
<STATE>STILL</STATE>
</Case>
<Case Value="2">
<STATE>SLOW</STATE>
</Case>
<Case Value="3">
<STATE>BLURRED</STATE>
</Case>
</Switch>
</Parameters>
<Loop>
<Setup>
<Param>BLADEID</Param>
<From>1</From>
<Inc>1</Inc>
<To>3</To>
</Setup>
<Do>
<Condition Check="STATEID" Match="1">
<True>
<UseTemplate Name="ASOBO_ROTORCRAFT_Rotor_Blade_Visibility_Base_Template">
<NODE_ID>Livery_Decal_Main_Blade_0#BLADEID#_Still</NODE_ID>
</UseTemplate>
</True>
</Condition>
<UseTemplate Name="ASOBO_ROTORCRAFT_Rotor_Blade_Visibility_Base_Template">
<ID>0#BLADEID#</ID>
</UseTemplate>
</Do>
</Loop>
</Do>
</Loop>
<UseTemplate Name="ASOBO_ROTORCRAFT_Rotor_Blade_Visibility_Base_Template">
<NODE_ID>PROP1_BLURRED</NODE_ID>
<STATE>BLURRED</STATE>
</UseTemplate>
<UseTemplate Name="ASOBO_ROTORCRAFT_Rotor_Blade_Visibility_Base_Template">
<NODE_ID>PROP1_SIDE_BLUR</NODE_ID>
<STATE>BLURRED</STATE>
</UseTemplate>
<UseTemplate Name="ASOBO_ROTORCRAFT_Rotor_Blade_Visibility_Base_Template">
<NODE_ID>CENTER_PROP1_SLOW</NODE_ID>
<STATE>SLOW</STATE>
</UseTemplate>
<UseTemplate Name="ASOBO_ROTORCRAFT_Rotor_Blade_Visibility_Base_Template">
<NODE_ID>Livery_Decal_Main_Blade</NODE_ID>
<STATE>STILL</STATE>
</UseTemplate>
<UseTemplate Name="ASOBO_ROTORCRAFT_Rotor_Rotation_Template">
<ANIM_NAME>prop_1</ANIM_NAME>
</UseTemplate>
<UseTemplate Name="ASOBO_ROTORCRAFT_Swashplate_Template">
<ANIM_NAME>Switch_Swashplate</ANIM_NAME>
</UseTemplate>
<UseTemplate Name="ASOBO_ROTORCRAFT_Disk_Coning_Template">
<ANIM_NAME>Coning</ANIM_NAME>
</UseTemplate>
</Component>
<Component ID="Tail_Rotor">
<Parameters Type="Default">
<ID>2</ID>
<ROTOR_ID>2</ROTOR_ID>
<MIN_RPM_FOR_BLUR>2500</MIN_RPM_FOR_BLUR>
<MIN_RPM_FOR_BLUR2>4000</MIN_RPM_FOR_BLUR2>
</Parameters>
<Loop>
<Setup>
<Param>BLADEID</Param>
<From>1</From>
<Inc>1</Inc>
<To>7</To>
</Setup>
<Do>
<UseTemplate Name="ASOBO_ROTORCRAFT_Rotor_Blade_Visibility_Base_Template">
<NODE_ID>STEERING_SCREW_BLADE_0#BLADEID#</NODE_ID>
</UseTemplate>
</Do>
</Loop>
<UseTemplate Name="ASOBO_ROTORCRAFT_Rotor_Rotation_Template">
<ANIM_NAME>tail_prop</ANIM_NAME>
</UseTemplate>
<UseTemplate Name="ASOBO_ROTORCRAFT_Rotor_Blade_Visibility_Base_Template">
<NODE_ID>STEERING_SCREW_STILL</NODE_ID>
</UseTemplate>
<UseTemplate Name="ASOBO_ROTORCRAFT_Rotor_Blade_Visibility_Base_Template">
<STATE>SLOW</STATE>
<NODE_ID>STEERING_SCREW_SLOW</NODE_ID>
</UseTemplate>
<UseTemplate Name="ASOBO_ROTORCRAFT_Rotor_Blade_Visibility_Base_Template">
<STATE>BLURRED</STATE>
<NODE_ID>STEERING_SCREW_BLURRED</NODE_ID>
</UseTemplate>
<UseTemplate Name="ASOBO_ROTORCRAFT_Tail_Prop_Pitch_Template">
<ANIM_NAME>Tail_Prop_Blades</ANIM_NAME>
</UseTemplate>
</Component>
</Component>
<Component ID="Yaw_String">
<UseTemplate Name="ASOBO_ROTORCRAFT_Yaw_String">
</UseTemplate>
</Component>
</Behaviors>
</ModelInfo>