browser « XML file « Java I/O Q&A





2. unbale to view xml file in browser    coderanch.com

hi, i developed xml file..i want to view that xml file in browser...but im unable to do..it is showing in console..but i need is in browser..can any one help me out..here is my code..its urgent. package xml; import java.io.*; import org.w3c.dom.*; import org.xml.sax.SAXException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.xml.parsers.*; import javax.xml.transform.*; import javax.xml.transform.dom.*; import javax.xml.transform.stream.*; public class ...

4. Open XML file with user default browser and not the default editor.    forums.oracle.com

Runtime.getRuntime().exec(cmd); ....opens the xml file with the users default program for opening xml files which in my case is Oxygen. I want to force java to open this xml file with the users default web browser and nothing else. I guess i need the Windows command to perform the 'open with' feature but i have no idea what that command is ...