Anyone knows the way to use XML::Writer to display xml tags containing data on the web (Internet Explorer)

or

Anyone knows the way to combine
XML::Writer and XML::Simple

to display xml tags with data on the web.

Note: I am using XML::Simple and I am able to print the data on the web but I don't have full control over the tags thats why I want to use XML::Writer

My tags/data look like following:-

- <opt>
<test>2</test>
<test1>5</test1>
</opt>