我还没有找到一种合流的方法来打开和解析外部xml文件,并将解析后的文本插入到合流页面中。有谁有很好的例子吗?下面的xml文件是典型的我需要的文件,我想提取依赖项ID文件名并将它们放在融合页面上。
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>sccf.database</id>
<version>2.10.0</version>
<title>SCCF Database</title>
<authors>SCCF</authors>
<owners>SCCF</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>SCCF Database</description>
<releaseNotes></releaseNotes>
<copyright>Copyright 2018</copyright>
<dependencies>
<dependency id="file dependency A" version="3.1.0" />
<dependency id="file dependency A" version="1.5.0" />
<dependency id="file dependency A" version="1.7.0" />
<dependency id="file dependency A" version="1.1.0" />
<dependency id="file dependency A" version="6.7.5" />
<dependency id="file dependency A" version="7.6.5" />
</dependencies>
</metadata>
</package>
谢谢
鲍勃·K