How do you generate xml from sql when the root tag has attributes, and there is a mixture of elements with values and elements with attributes?
Example:
PHP Code:
<myRequest someAttr="somevalue">
<element1>value</element1>
<element2 attr1="value" attr2="value" />
<element3>value</element3>
</myRequest>
Comment