如何用xml改写属性配置文件a.properties ?
如何用java调用读取该xml文件?
谢谢!
a.properties如下:
------------------------------------------------------
x=abc
x1=a
x2=b
x3=c
y=de
y1=d
y2=f
z=g
如何用java调用读取该xml文件?
谢谢!
a.properties如下:
------------------------------------------------------
x=abc
x1=a
x2=b
x3=c
y=de
y1=d
y2=f
z=g
props.load(is);
for(Enumeration keys = props.propertyNames(); keys.hasMoreElements(); )
{
key = (String)keys.nextElement();
value = (String)props.get(name);
}