MusicXML 4.1 Draft
MusicXML 4.1 Draft > MusicXML Reference > Examples > <barline>

<barline>

barline-element

<measure number="10" width="367">
   <attributes>
      <time>
         <beats>3 + 2 + 4</beats>
         <beat-type>8</beat-type>
      </time>
   </attributes>
   <note default-x="103">
      <pitch>
         <step>F</step>
         <alter>1</alter>
         <octave>4</octave>
      </pitch>
      <duration>1</duration>
      <voice>1</voice>
      <type>eighth</type>
      <stem default-y="0">up</stem>
      <beam number="1">begin</beam>
   </note>
   <note default-x="130">
      <pitch>
         <step>F</step>
         <alter>1</alter>
         <octave>4</octave>
      </pitch>
      <duration>1</duration>
      <voice>1</voice>
      <type>eighth</type>
      <stem default-y="0">up</stem>
      <beam number="1">continue</beam>
   </note>
   <note default-x="158">
      <pitch>
         <step>F</step>
         <alter>1</alter>
         <octave>4</octave>
      </pitch>
      <duration>1</duration>
      <voice>1</voice>
      <type>eighth</type>
      <stem default-y="0">up</stem>
      <beam number="1">end</beam>
   </note>
   <barline location="middle">
      <bar-style>dashed</bar-style>
   </barline>
   <note default-x="184">
      <pitch>
         <step>F</step>
         <alter>1</alter>
         <octave>4</octave>
      </pitch>
      <duration>1</duration>
      <voice>1</voice>
      <type>eighth</type>
      <stem default-y="0">up</stem>
      <beam number="1">begin</beam>
   </note>
   <note default-x="211">
      <pitch>
         <step>F</step>
         <alter>1</alter>
         <octave>4</octave>
      </pitch>
      <duration>1</duration>
      <voice>1</voice>
      <type>eighth</type>
      <stem default-y="0">up</stem>
      <beam number="1">end</beam>
   </note>
   <barline location="middle">
      <bar-style>dashed</bar-style>
   </barline>
   <note default-x="238">
      <pitch>
         <step>F</step>
         <alter>1</alter>
         <octave>4</octave>
      </pitch>
      <duration>1</duration>
      <voice>1</voice>
      <type>eighth</type>
      <stem default-y="0">up</stem>
      <beam number="1">begin</beam>
   </note>
   <note default-x="265">
      <pitch>
         <step>F</step>
         <alter>1</alter>
         <octave>4</octave>
      </pitch>
      <duration>1</duration>
      <voice>1</voice>
      <type>eighth</type>
      <stem default-y="0">up</stem>
      <beam number="1">continue</beam>
   </note>
   <note default-x="292">
      <pitch>
         <step>F</step>
         <alter>1</alter>
         <octave>4</octave>
      </pitch>
      <duration>1</duration>
      <voice>1</voice>
      <type>eighth</type>
      <stem default-y="0">up</stem>
      <beam number="1">continue</beam>
   </note>
   <note default-x="319">
      <pitch>
         <step>F</step>
         <alter>1</alter>
         <octave>4</octave>
      </pitch>
      <duration>1</duration>
      <voice>1</voice>
      <type>eighth</type>
      <stem default-y="0">up</stem>
      <beam number="1">end</beam>
   </note>
   <barline location="right">
      <bar-style>light-light</bar-style>
   </barline>
</measure>