generate xml using xercerc
===

i am attempting to generate xml similar to the below using xerces, however i can not find a suitable example to follow, can anyone with experience in this area please advise. Thanks in advance!


    <ad xsi:noNamespaceSchemaLocation="smaato_ad_v0.9.xsd" modelVersion="0.9">
        <richmediaAd>
            <content>
                <script>yadda...yadda... richmedia content ...yadda</script>
            </content>
            <width>728</width>
            <height>90</height>
            <beacons>
                <beacon>http://mysite.com/beacons/mybeacon1</beacon>
                <beacon>http://mysite.com/beacons/mybeacon2</beacon>
            </beacons></richmediaAd>
     </ad>

