易截截图软件、单文件、免安装、纯绿色、仅160KB

XML编码格式转换问题,急!!!

我要在网页上上传一个XML文件,我在C#中写了一个验证XML文件格式的方法:
private bool ValidateXml(string xmlFilePath)
    {
        string xsdPath = Request.PhysicalApplicationPath + @"Files\example\rcpt.xsd";
        //使用xmlReader验证XML格式
        // Set the validation settings.
        XmlReaderSettings settings = new XmlReaderSettings();
        settings.ValidationType = ValidationType.Schema;
        settings.Schemas.Add(null, xsdPath);
        settings.ValidationFlags |= XmlSchemaValidationFlags.ProcessInlineSchema;
        settings.ValidationFlags |= XmlSchemaValidationFlags.ReportValidationWarnings;
        settings.ValidationEventHandler += new ValidationEventHandler(settings_ValidationEventHandler);

        // Create the XmlReader object.
        XmlReader reader = XmlReader.Create(xmlFilePath, settings);

        // Parse the file.
        try
        {
            while (reader.Read());
        }
        catch (Exception ex)
      &nb


相关问答:

在这样一个xml文件里如何选择特点节点

<?xml version="1.0" encoding="UTF-8" ?> 
<root> 
<video> 
  <device deviceid="\\?\usb#vid_0c45&pid_613b#5&2d0620de& ......

想用XML加FLASH 做统计报表

想用XML加FLASH 做统计报表 ,,有没有人有好的建议呀~~就是把XML里的内容导入到做好的FLASH模块里面去。。。
帮顶

你没用过开源的OpenFlashChart吗?

试试FusionChart
数据源就是XML的
http://www.fusionc ......

遍历一个xml并输出指定节点的值 - .NET技术 / C#

我有一个类似的xml的 string,想通过遍历怎么个xml 输出我想要的element的值
xml 为:
<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">
  <RequestType>DISCOVER_XML_ME ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号