Basic Standards of Exporting to XML?

I'm just writing a small, data gathering application, and I want to export the output to XML. Is it perfectly find if the output just looks like this?

<?xml version="1.0" encoding="ISO-8859-1"?>
<output>
    <data>
        foo
    </data>
    <data>
        foo2
    </data>
    <data>
        foo3
    </data>
    <data>
        foo4
    </data>
</output>

Or is there anything special I need to add, for applications like excel to recognize my XML?

Answers


Always include the XML declaration. It defines the XML version and the encoding. See http://www.w3schools.com/xml/xml_tree.asp


Need Your Help

Error ([Errno 111] Connection refused) in veins (sumo-launchd.py)

python omnet++ veins sumo mixim

i want to use veins, to co-simulate between OMNeT++ network simulator and SUMO road traffic simulator.

Retrieving Lat and Long in Http Adapter in worklight

javascript jquery ibm-mobilefirst

Im trying to retrieve the lat and long using http adapter. while i try to invoke the procedure i would be able to retrieve the result. but i want to retrieve only lat and long not other additional ...