我有以下这样的 XML 文件:
<?xml version="1.0" encoding="utf-8"?>
<Config version="Vs1.00.00"><!-- xmlns="urn:xmldata-schema">-->
<<SystemSettings>
<Workstation></Workstation>
<Company></Company>
<InstallationDate></InstallationDate>
<SupportContactLine1></SupportContactLine1>
<SupportContactLine2></SupportContactLine2>
<SupportContactLine3></SupportContactLine3>
<UserFile></UserFile>
</SystemSettings>
<Settings>
<StartUpWorkspace></StartUpWorkspace>
<StartLanguage></StartLanguage>
<ExportPath></ExportPath>
<ImportPath></ImportPath>
<BackUpRestorePath></BackUpRestorePath>
<AdjHistoryPath></AdjHistoryPath>
<TestHistoryPath></TestHistoryPath>
<LogFilePath></LogFilePath>
</Settings>
<DefaultSettings>
<DefaultSupportLine1></DefaultSupportLine1>
<DefaultSupportLine2></DefaultSupportLine2>
<DefaultSupportLine3></DefaultSupportLine3>
<DefaultUserFile></DefaultUserFile>
<DefaultStartUpWorkspace></DefaultStartUpWorkspace>
<DefaultStartLanguage></DefaultStartLanguage>
<DefaultWorkspacePath></DefaultWorkspacePath>
<DefaultExportPath></DefaultExportPath>
<DefaultImportPath></DefaultImportPath>
<DefaultBackUpRestorePath></DefaultBackUpRestorePath>
<DefaultAdjHistoryPath></DefaultAdjHistoryPath>
<DefaultTestHistoryPath></DefaultTestHistoryPath>
<DefaultLogFilePath></DefaultLogFilePath>
<DefaultMasterPassword crypt="No"></DefaultMasterPassword>
<DefaultLogger></DefaultLogger>
</DefaultSettings>
</Config>
我需要验证另一个 XML 文件。有没有办法检查另一个 XML 文件,如果它与我的文件具有相同的结构?