メインコンテンツまでスキップ
バージョン:25.2

compactEmptyElements

  • property key in the treeFormat
  • new in 1.54
  • control how empty elements in trees are formatted in XML. By default, it is set to false.
  •           put "<foo></foo>" as tree -- "<foo></foo>"

          set the treeFormat's compactEmptyElements to true

          put "<foo></foo>" as tree -- "<foo/>"