Google에서봤을 때 "예"라고 대답하기 전에 질문을하기 전에 페이지 뒤 페이지를 읽었습니다. 사이트 후 사이트 및 필요한 정보를 얻을 수 없습니다.XML을 사용하여 응용 프로그램 업데이트 검사기
내 응용 프로그램에 대해 매우 간단한 업데이트 검사기를 만들려고합니다. 하나는 온라인 XML 파일을 구문 분석하고 특정 위치에 데이터를 표시합니다. 또한 다운로드 위치에 대한 링크를 파싱 할 수있을뿐만 아니라 (내 호스팅 계획이 3MB가 넘는 ftp 파일을 허용하지 않기 때문에 ftp 또는 기타가 아닌 파일 호스트와 같은 것임)
어쨌든 여기에 무엇입니까? 나는 지금까지 가지고 :
XML 코드 :
<code>
<Info>
<Version>2.8.0.0</Version>
<Link>www.filehost.com</Link>
<Description>Added New Features To GUI</Description>
</Info>
</code>
여기 응용 프로그램 코드, 그리고 내가 그것을 보여주고 싶은 무엇을.
using System;
using System.Windows.Forms;
using System.Xml;
namespace SAM
{
public partial class UpdateCheck : DevExpress.XtraEditors.XtraForm
{
public UpdateCheck()
{
InitializeComponent();
lblCurrentVersion.Text = "Current Version: " + Application.ProductVersion;
}
private void MainForm_Shown(object sender, EventArgs e)
{
BringToFront();
}
private void BtnChkUpdate_Click(object sender, EventArgs e)
{
XmlDocument doc = new XmlDocument();
doc.Load("http://www.crimson-downloads.com/SAM/UpdateCheck.xml");
}
}
}
나는이 방법으로 XML을 구문 분석 할 응용 프로그램을 찾고 있습니다.
<Version>2.8.0.0</Version> Will change the text for "lblUpdateVersion" like how I got the current version label set in the InitializeComponent();
<Description>Added New Features To GUI</Description> to be parsed out into the "textDescription" Which I can probably do myself.
<Link>www.filehost.com</Link> Will parse into the button control so when pressed will open up the users default browser and follow the link.
사용중인 .NET 버전은 무엇입니까? –
무엇이 당신의 질문입니까? –