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/

  • 相关阅读:
    android Logger 一二三
    深挖android low memory killer
    ios CoreBluetooth 警告 is being dealloc'ed while pending connection
    iOS 国际化多语言设置 xcode7
    iOS 控制单个控制器旋转
    ios 开发 收起键盘的小技巧
    xcode ___gxx_personality_v0" 编译错误
    xcode6 AsynchronousTesting 异步任务测试
    xcode6 framework missing submodule xxx 警告
    iOS AVCaptureVideoDataOutputSampleBufferDelegate 录制视频
  • 原文地址:https://www.cnblogs.com/ainima/p/6331354.html
Copyright © 2011-2022 走看看