Document Level Discount and Tax

Hi Everyone can anybody give me correct Simplified Tax invoice xml of given data with some explanation

item 1 => qty 2 , price 200 , discount amount 10 , tax 15%
item 2 => qty 3, price 150 , discount amount 12 , tax 15 %

now also need Document level discount is 7 and document level tax 15%.