摘要: 包括三个文件:studentInfo.xml(待解析的xml文件), Dom4jReadExmple.java(解析的主要类), TestDom4jReadExmple.java(测试解析的结果)studentInfo.xml<?xml version="1.0" encoding="gb2312"?><students> <student age="25"><!--如果没有age属性,默认的为20--> <name>崔卫兵</name> <college& 阅读全文
posted @ 2013-03-27 17:22 dengying 阅读(266) 评论(0) 推荐(0) 编辑
摘要: package com.eh.ad;/*** JAVA 读取AD用户信息* aa00a00*/import java.io.IOException;import java.util.ArrayList;import java.util.Hashtable;import java.util.List;import javax.naming.Context;import javax.naming.NamingEnumeration;import javax.naming.NamingException;import javax.naming.directory.Attribute;import j 阅读全文
posted @ 2013-03-27 17:20 dengying 阅读(2737) 评论(0) 推荐(0) 编辑