java操纵xml文件的读写,并根据xml生成树型菜单

java操纵xml文件的读写,并根据xml生成树型菜单

import java.util.Iterator;

import java.util.List;

import java.io.*;

import org.jdom.Document;

import org.jdom.Element;

import org.jdom.input.SAXBuilder;

import com.ldtec.todayReport.data.*;

/**

* @author JOE

*

* TODO To change the template for this generated type comment go to

* Window - Preferences - Java - Code Style - Code Templates

*/

public class XMLTodayReportPar {

private static final String TODAYREPORTS = "TodayReports";

private static final String TODAYREPORT = "TodayReport";

private static final String ID = "id";

private static final String NAME = "name";

private static final String REPORT = "Report";

private static final String TABLENAME = "tableName";

private static final String DESCRIPTION = "description";

private static final String HEAD = "Head";

private static final String BODY = "Body";

private static final String STATISTICAL = "Statistical";

private static final String FORWARD = "Forward";

private static final String URL = "url";

private static XMLTodayReports xmltodayReports = null;

/**

* 返回所有的表

* @return XMLTodayReports

*/

String realpath = "";

public XMLTodayReports getXMLTodayReports(String realpath) {

this.realpath = realpath;

if (xmltodayReports != null) return xmltodayReports;

else {

xmltodayReports = new XMLTodayReports();

你可能喜欢

  • Android源代码结构
  • javaxml
  • Java集合
  • java解析xml
  • 数据文件
  • JAVA正则表达式
  • 程序员面试题
  • java读取文件

java操纵xml文件的读写,并根据xml生成树型菜单相关文档

最新文档

返回顶部