我可以使用从命名空间加载的模式验证XML

时间:2018-02-16 08:55:47

标签: c# .net xml xml-parsing xml-validation

我有以下<?php mysqli_set_charset($Connection, "utf8"); foreach($_POST['firstName'] as $i => $user) { $sql = "insert into table set attendance_type = '".mysqli_real_escape_string($Connection, $_POST['attendanceType'][$i])."' where user='".mysqli_real_escape_string($Connection, $user)."'"; mysqli_query($Connection, $sql); } ?> 文件:

.xml

其中一位高级开发人员说我应该验证XML并从中加载架构:

<witd:WITD application="Work item type editor" version="1.0"      xmlns:witd="http://schemas.microsoft.com/VisualStudio/2008/workitemtracking/typedef">
<WORKITEMTYPE> . . .
</WORKITEMTYPE> </witd:WITD>

在.NET中如何做到这一点?

0 个答案:

没有答案