i am generating an XML file using JAXB. First i write a <?xml-stylesheet?>
instruction to FileOutputStream and then marhal my data to this FileOutputStream. i specify the name of file in FileOutputStream with .xml extension.
Now, my xml gets generated as desired and works fine in IE but fails in Firefox. Seems that Firefox expects <?xml?>
as the first line where as in my case i've <?xml-stylesheet?>
tag and then <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
tag.
i've to generated xml using JAXB and also add info to it. Please tell how can i do it.