<?xml version="1.0" encoding="utf-8" ?>
<ArrayOfSystemRool xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <SystemRool>
    <Type>A</Type>
    <MasterPlate>win7-1.24</MasterPlate>
    <MasterPlateID>0e384ece-4c25-4016-8ca9-7db99f2c421b</MasterPlateID>
    <OperatingID>c440a422-7447-49b5-a4ce-bccb7ef17a47</OperatingID>
    <SystemName>64-bit edition of Windows 7</SystemName>
    <CpuCount>2</CpuCount>
  </SystemRool>
  <SystemRool>
    <Type>B</Type>
    <MasterPlate>win7-1.24</MasterPlate>
    <MasterPlateID>0e384ece-4c25-4016-8ca9-7db99f2c421b</MasterPlateID>
    <OperatingID>c440a422-7447-49b5-a4ce-bccb7ef17a47</OperatingID>
    <SystemName>64-bit edition of Windows 7</SystemName>
    <CpuCount>2</CpuCount>
  </SystemRool>
  <SystemRool>
    <Type>C</Type>
    <MasterPlate>win7-1.24</MasterPlate>
    <MasterPlateID>0e384ece-4c25-4016-8ca9-7db99f2c421b</MasterPlateID>
    <OperatingID>c440a422-7447-49b5-a4ce-bccb7ef17a47</OperatingID>
    <SystemName>64-bit edition of Windows 7</SystemName>
    <CpuCount>2</CpuCount>
  </SystemRool>
</ArrayOfSystemRool>

/// <summary>

/// 获取类型和模板

/// </summary>

/// <returns></returns>

public static List<SystemRool> GetRool()

{

var _str = File.ReadAllText(HttpContext.Current.Server.MapPath("/masterplate.xml"));

var _rools = NvWa.Common.DataTypeExtend.SerializeHelper.XMLDeserialize<List<SystemRool>>(_str);

return _rools;

}

public class SystemRool

{

public string Type { get; set; }//类型对应模版

public string MasterPlate { get; set; }//模版名称

public string MasterPlateID { get; set; }//模版ID

public string OperatingID { get; set; }//操作系统名称

public string SystemName { get; set; }//操作系统名称

public int CpuCount { get; set; }//CPU个数

}

获取xml文件的更多相关文章

  1. 使用GridView来获取xml文件数据

    在任何一个系统中,数据的读取和编辑都是至关重要的.无论你是CS还是BS,都需要对数据进行操作.其实 我们可以发现,很多软件和系统最终都是对于数据库中数据的处理.之前在CS的学习过程中我们接触到了很多 ...

  2. Android开发之获取xml文件的输入流对象

    介绍两种Android开发中获取xml文件的输入流对象 第一种:通过assets目录获取 1.首先是在Project下app/src/main目录下创建一个assets文件夹,将需要获取的xml文件放 ...

  3. XML(php中获取xml文件的方式/ajax获取xml格式的响应数据的方式)

    1.XML 格式规范: ① 必须有一个根元素 ② 不可有空格.不可以数字或.开头.大小写敏感 ③ 不可交叉嵌套 ④ 属性双引号(浏览器自动修正成双引号了) ⑤ 特殊符号要使用实体 ⑥ 注释和HTML一 ...

  4. VBScript Sample:遍历文件夹并获取XML文件中指定内容

    案例: 我有一个文件夹,里面有很多子文件夹,每个子文件夹中都存在一个相同名字的XML文件,XML文件里面的标签结构相同,只是内容不同,XML文件中包含ID,Name等标签. 文件夹及文件结构如下图: ...

  5. Android从网络中获取xml文件并解析数据

    public class XmlwebData { @SuppressLint("UseValueOf") public static List<Person> get ...

  6. 一种获取xml文件某个节点内容的shell方法

    配置文件 config.xml <xml> <server> <name>srv-01</name> </server> <serve ...

  7. 获取微信签名,并保存在xml文件中

    using System; using System.Linq; using System.Text; using System.Web; using System.Web.UI; using Sys ...

  8. 在java项目中怎样利用Dom4j解析XML文件获取数据

    在曾经的学习.net时常常会遇到利用配置文件来解决项目中一些须要常常变换的数据.比方数据库的连接字符串儿等.这个时候在读取配置文件的时候.我们一般会用到一个雷configuration,通过这个类来进 ...

  9. JAVA中使用DOM解析XML文件

    XML是一种方便快捷高效的数据保存传输的格式,在JSON广泛使用之前,XML是服务器和客户端之间数据传输的主要方式.因此,需要使用各种方式,解析服务器传送过来的信息,以供使用者查看. JAVA作为一种 ...

随机推荐

  1. poj 1273 Drainage Ditches_最大流模版

    #include <iostream> #include<cstdio> #include<queue> #include<cstring> using ...

  2. 移植busybox-1.21.1

    busybox官网:www.busybox.net 1.解压 # tar jxvf busybox-1.21.1.tar.bz2 2.配置 # cd busybox-1.21.1 # make men ...

  3. 2015.01.06 JQuery

    jQuery是一个兼容多浏览器的javascript库.开发出来的JavaScript的脚本包.非侵入性的脚本. 下载地址:http://jquery.com/          (打不开网页需要翻* ...

  4. IntPtr问题

    public aaa(IntPtr myPtr,int left, int top, int width, short height) 这里myPtr应该是对应到一块内存,你需要查看aaa函数是如何把 ...

  5. C#4 for循环 迭代法 穷举法应用

    for()循环. 四要素: 初始条件,循环条件,状态改变,循环体. 执行过程: 初始条件--循环条件--循环体--状态改变--循环条件.... 注意:for的小括号里面分号隔开,for的小括号后不要加 ...

  6. Spring-----事务配置的五种方式

    转载自:http://blog.csdn.net/hekewangzi/article/details/51712821

  7. 转载 java枚举类型enum的使用 (原文地址:http://blog.csdn.net/wgw335363240/article/details/6359614)

    java枚举类型enum的使用 最近跟同事讨论问题的时候,突然同事提到我们为什么java中定义的常量值不采用enmu枚举类型,而采用public final static 类型来定义呢?以前我们都是采 ...

  8. HibernateTransactionManager 和 hibernateTemplate的区别

    在applicationContext.xml中有如下配置: <bean id="hibernateTemplate" class="org.springframe ...

  9. Oracle EBS-SQL (PO-1):检查供货比例异常.sql

    select distinct msr.sourcing_rule_name                     名称 , msi.description                      ...

  10. schema://host[:port#]/path/.../[?query-string][#anchor]

    1:http协议状态200 OK最常见的就是成功响应状态码200了, 这表明该请求被成功地完成,所请求的资源发送回客户端 302 Found重定向,新的URL会在response 中的Location ...