Help with script

I want to write a script (either sed or awk) which will search for a particular pattern, "xyz" in an XML file, then insert 2 lines of text at the end of that XML tag. To give an example, here is how the particular fragment of lines in XML file would like before :

<Location /xyz/abc>
     Directory
     Alias
</Location>

This is how the particular fragment of lines in XML file would like after :

<Location /xyz/abc>
Directory
Alias
SSL Cipher
SSL Wallet Directory
</Location>

Any help will be appreciated!

You can work on something like this ...

awk  '/^<.*\/xyz\/.*>$/ { f=1 } f && /<\/.*>$/ {
         print line1 RS line2 RS $0; f=0; next
      } 1'  line1="SSL Cipher" line2="SSL Wallet Directory"  file
sed -i -re 's/(^<\/.*>$)/SSL Cipher\nSSL Wallet Directory\n\1/' `grep -l "<.*/xyz" ./*`

Before:

<Location /xyz/abc>
Directory
Alias
</Location>

After:
<Location /xyz/abc>
Directory
Alias
SSL Cipher
SSL Wallet Directory
</Location>