<?xml-stylesheet?> if given before <?xml?> doesn't work in firefox
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 i开发者_如何学编程n 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.
Use processingInstruction() to add it in instead of spewing out your own.
加载中,请稍侯......
精彩评论