xml 파일을 textblock으로 읽고 싶습니다. 사용자가 textblock에서이 텍스트를 편집하고 xml 파일에 추가 변경 사항을 적용 할 수 있습니다 ... 현재 붙어 있습니다. streamreader가 xml 파일의 라인을 읽음
<xml>
<email>
..
</email>
<buildstream1>
<path value="apple"/>
</buildstream1>
<buildstream2>
<path value="pear"/>
<path value="bananas"/>
</buildstream2>
</xml>
질문
은 다음과 같습니다 :내가의 라인을 읽을 어떻게 여기
private void Editbuildstreams_Click(object sender, RoutedEventArgs e)
{
BuildstreamTextblock.Visibility = Visibility.Visible;
using (StreamReader srr = new StreamReader("initial.xml"))
{
string line;
while ((line = srr.ReadLine()) != null)
{
BuildstreamTextblock.Text = line;
}
}
}
XML 파일의 구조입니다 : 이것은 내가 지금까지 한 일이다 XML 파일?
xml 파일의 특정 부분을 얻는 데에만 관심이 있습니다. <buildstream1>
& <buildstream2>
을 읽어야합니까?
모든 XML을 DataGrid에 바인딩 할 수있는 것은 아닙니다. –