可以修改嵌入的XML么?即不生成外部xml
我以前跟着老师做过一个例子,把xml 的属性设为:嵌入的资源,然后,优先读取外部资源,而“嵌入的那个XML”始终是原始的数据。
我现在练习作一个桌面时钟,需要记录一个:是否开机运行的状态,只需要一个字段“0”或“1”为此再生成一个xml,觉得有些多余!!
要是能直接修“改嵌入的XML”就更好了吧? 或者有其他更好的方法:
XML:操作类如下:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
namespace lkfClock
{
class Config
{
private bool _RunOnWindowsStart;
public bool RunOnWindowsStart
{
get { return _RunOnWindowsStart; }
set
{
//if (value is bool)
//{
_RunOnWindowsStart = value;
//}
}
相关问答:
如题
我这学期选的课题是这个但是不知道该怎么准备,导师也没怎么说清楚,希望各位达人能指点一二,小弟在这谢过啦!
谢谢你 ,我现在也自己看资料整理思路呢,具体的还要一点时间。
引用
思路如下:
使用 ......
已知文件1.xml和数据文件db.xml,如何用java编写程序,得出2.xml文件?
1.已知xml文件 1.xml结构如下:
<cs>
<cs name="cs1" details="This is cs1" country="China&q ......
<?xml version="1.0" encoding="UTF-8"?>
<QUERYCONDITION recordsperpage="10">
<PREDICATE/>
<CONDITIONS>
<CONDITION>
<LOGIC> ......