Click here to Skip to main content
16,016,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi. Is it possible to open/load xml document with proper format view. Element tags are indented and also is it possible to load "only" xml content in wpf textbox. I am a newbie in WPF and XML.

Thanks.

marcruger
Posted

1 solution

Textbox/TextBlock is not appropriate to display the XML in proper format. If you want to display the XML in proper format in your WPF window in that case you can use following control.

A Simple WPF XML Document Viewer Control[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900