2011-12-21 72 views

回答

0

我建議你用你的文件路徑列表創建一個XML文件。 例如。

<?xml version="1.0" encoding="utf-8"?> 
<TestsURIsList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 
    <URIs> 
    <TestUri> 
     <TestName>Short funny test</TestName> 
     <TestDesc>Thus it's a very small test that contains only 2 questions it can tell you a lot about yourself. Just try it and you'll see :)</TestDesc> 
     <ImageURI>img/questionblack.JPG</ImageURI> 
     <TestXMLSource>ReadyTests/SmallestTest.xml</TestXMLSource> 
     <CustomURIPage /> 
    </TestUri> 

    <TestUri> 
     <TestName>Tsukanov's test</TestName> 
     <TestDesc>Learn you own time unit and all the information it can give</TestDesc> 
     <ImageURI>TsukanovTest/temperaments_small.png</ImageURI> 
     <TestXMLSource /> 
     <CustomURIPage>/TsukanovTest/TsukanovTestPage.xaml</CustomURIPage> 
    </TestUri> 
    </URIs> 

比您打開一個XML閱讀這個文件並解析,並顯示給用戶。 希望它有幫助