0
Array
(
    [0] => 116
    [1] => asdasd
    [2] => 1
    [3] => asdsadas
    [4] => dasdasd
    [5] => sadasdsad
    [6] => asdasdasd
)

i want to convert this aaray in to xml

2
Contributors
1
Reply
13
Views
2 Years
Discussion Span
Last Post by diafol
0

OK, but how is the XML to be displayed?
That is tags and attributes and nesting levels.

For example,

<?xml version="1.0" encoding="UTF-8"?>
<channel>
    <item>116</item>
    <item>asdasd</item>
    <item>1</item>
    ...
</channel>

or

<?xml version="1.0" encoding="UTF-8"?>
<channel>
    <item>
        <firstno>116</firstno>
        <sometag>asdasd</sometag>
        <id>1</id>
        ...
    </item>    
</channel>

or

<?xml version="1.0" encoding="UTF-8"?>
<channel>
    <item id="116" />
    <item id="asdasd" />
    <item id="1" />
    ...
</channel>

So many different things you can do. You must be more specific with your question.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.