📄 stock.java
字号:
import org.xml.sax.*;import org.w3c.dom.*;import org.apache.xerces.dom.*;import org.apache.xerces.parsers.*;import org.apache.xml.serialize.*;// Import packages dealing with XSL transformationimport org.apache.xalan.xslt.*;import org.apache.xalan.xpath.*;// Import the Tidy package for HTML to XML transformationimport org.w3c.tidy.*;/** * Retrieve an HTML page, convert the source to XML, * and write the result to a file. */public class Stock { public static void main(String args[]) { try { Document doc = XMLHelper.tidyHTML("http://www1.sz1001.net/soft/2023.htm"); XMLHelper.outputXMLToFile(doc,"file/sunli.xml"); }catch(XMLHelperException xmle){ xmle.printStackTrace(); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -