Hi,
I am trying to create a xml file using the XML_serializer class and needed some help.
The file i am trying to create looks like this:
<?xml version="1.0" encoding="utf-8"?>
<MainTag>
<header>
This is the data for header tag
</header>
<product>
<productID>
1
</productID>
</product>
<product>
<productID>
2
</productID>
</product>
</MainTag>
I am trying to create this using mysql since I have a lot of product ID but have a problem creating the header. The header appears separate from the rest of the <product> tags.
Any idea how to create this?
I am trying to create a xml file using the XML_serializer class and needed some help.
The file i am trying to create looks like this:
<?xml version="1.0" encoding="utf-8"?>
<MainTag>
<header>
This is the data for header tag
</header>
<product>
<productID>
1
</productID>
</product>
<product>
<productID>
2
</productID>
</product>
</MainTag>
I am trying to create this using mysql since I have a lot of product ID but have a problem creating the header. The header appears separate from the rest of the <product> tags.
Any idea how to create this?