zoukankan      html  css  js  c++  java
  • 为XML元素添加ID

    首先下载Apache xalan,http://xml.apache.org/xalan-j/downloads.html

    使用windows命令行模式,因为我没有设置java path,所以使用了如下的命令行:

    java -cp xalan.jar;serializer.jar;xml-apis.jar;xercesImpl.jar org.apache.xalan.xslt.Process -IN books.xml -XSL idmaker2.xsl -OUT test.xml

    其中IN后面是你要转化的源文件

    XSL后面是XSLT文件

    OUT是输出文件

    参考:

    http://xml.apache.org/xalan-j/commandline.html

    http://lab.tojio.com/2009/03/06/unique-id-for-each-node-in-an-xml-file-en/

    http://www.stylusstudio.com/xsllist/200512/post30240.html

    http://www.roseindia.net/xml/dom/

  • 相关阅读:
    JAVA语言中冒号的用法
    Tamper Data 安装与使用
    HTTP协议缓存策略深入详解之ETAG妙用
    HTTP协议
    HTTP协议----ETag
    super 使用以及原理
    __slots__用法以及优化
    归并排序详解(Python | Java实现)
    周刷题第二期总结(Longest Substring Without Repeating Characters and Median of Two Sorted Arrays)
    周刷题第一期总结(two sum and two numbers)
  • 原文地址:https://www.cnblogs.com/ainima/p/6331354.html
Copyright © 2011-2022 走看看