xml格式良好的检查 [英] xml well formed check

查看:134
本文介绍了xml格式良好的检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI ALL

HI ALL

我有一个Xml我需要检查它们是否形成良好

             I Have an Xml i need to check whether they are well formed or not

如果它没有很好地成功并且在标题内部发生错误,我需要在字符串中显示标题并显示。

             If it not well fomed and the error occurs inside the header i need to get the header inside a string and display.

在加载xml之前

请帮助我伙计

谢谢

Venkat

推荐答案

什么样的"标题"?你在说什么?

在.NET框架内检查XML文件是否格式良好,你使用XmlReader并解析文件:

Within the .NET framework to check an XML file for well-formedness you use an XmlReader and parse through the file:




代码段


这篇关于xml格式良好的检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆