English 中文(简体)
能否将用户数据储存在XML档案中?
原标题:Is it okay to store user data in XML files?

我有几家用户(配制器;12个用户)正在使用的一种数据。 记录少于2000年,因此我决定使用XML文档,并将档案储存在公司产品p.xml下。

难道这一征兆还是我没有达到某种设计准则吗?

环境 LL net/c#/winforms

更新:在任何特定时间,只有1个用户,1个用户将读或更新。

问题回答

如果有档案,你需要确保不会有太多的线索/过程或其他工作单位同时书写或冒着腐败风险。

SQLite,如果需要多份同时书写,可能是一个很好的解决办法。

如果没有多少记录可以处理其ok子使用XML文档的话,它也可能是可携带的。

《契约》第3条第1款将改进工作。 甚至只是使用洗浴和进入数据库。 xml文档实际上不能用作数据库。

值得注意的是,对XML档案中基本上明确无误的信息有某些安全影响,可以由任何文本编辑阅读。 任何违反隐私法的行为,如社会保障号码,都不应存放在XML档案中。 密码不应存放在XML档案中,而不应加以加密。

这一点显而易见,但我知道至少有一个伙伴关系。 在我曾经从事设计工作的工作时,网络应用包括一个假冒账户的明确文本密码......。

您的最好之点是,在您的数据储存和您的申请(如ORM)之间采用某种形式的抽象。 你们不必把整个地雷危险控制点带入你们的法典,而是试图把符合你们需要的东西放在一起。 然后,你可以把背后从XML档案转到其他人在这里建议的东西。





相关问题
how to represent it in dtd?

I have two element action and guid. guid is a required field when action is add. but when action is del it will not appear in file. How to represent this in dtd ?

.Net application configuration add xml-data

I need to add xml-content to my application configuration file. Is there a way to add it directly to the appSettings section or do I need to implement a configSection? Is it possible to add the xml ...

XStream serializing collections

I have a class structure that I would like to serialize with Xstream. The root class contains a collection of other objects (of varying types). I would like to only serialize part of the objects that ...

MS Word splits words in its XML format

I have a Word 2003 document saved as a XML in WordProcessingML format. It contains few placeholders which will be dynamically replaced by an appropriate content. But, the problem is that Word ...

Merging an XML file with a list of changes

I have two XML files that are generated by another application I have no control over. The first is a settings file, and the second is a list of changes that should be applied to the first. Main ...

How do I check if a node has no siblings?

I have a org.w3c.dom.Node object. I would like to see if it has any other siblings. Here s what I have tried: Node sibling = node.getNextSibling(); if(sibling == null) return true; else ...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

热门标签