All web applications maintain some form of XML based configuration file e.g. web.config, which then invariably needs to be updated specially after the application has been deployed to production. Search the web for
modify web.config programmatically at runtime
and we get millions of result. Even though the techniques described in each works okay but they does not scale or are easily reusable. There are many XML viewer, explorer and editor out there but very
few of them are web based. The ones which are web based, are indeed heavy weight and full fledged stand alone content management system meant for content editors. Right now, there is no light weight framework or API or something available, that a web developer
can easily use and integrate with his own existing application. This is where XML Webpad (a web based xml editor viewer) comes in.
XML Webpad Advantage
Unlike other control, tools and editors, XML Webpad at its heart is not just a stand alone web application but rather
provides the framework
(the XMLWebPad.dll and xmlwebpad.js) to create your own viewer and editor that can be integrated with any ASP.Net applications. Also unlike others,
XML Webpad is not a ASP.NET server control
and thus provides the user with
full control over UI look and feel
Best part of all is the fact that the viewing and editing functionality are available out of the box
. Even better, not only it allows you
but you can change the XML structure
as well. All that is needed is to make the right calls to the server engine (the demo project shows how to do it).
- Out-of-box viewing and editing capabilities of XML files
- Lightweight and easy to integrate with any ASP.Net web application.
- Its a framework so that one can build their own custom UI around it.
- GUI based with hot-key intergation for add, deleete, rename, search functionalities
- Drag-n-Drop feature to move XML elements
- Search the XML tree
- Allows you to change the structure of the XML file
- A library to do programatic windows domain account impersonation (IdentityManager)
- COMING SOON! - Node level authorization and role-based security feature
Check out some more screenshots here -
. Here's a sample:
Quick Start Guide
Let's assume you already have an existing ASP.Net web application. If not, you can create a new web application and follow the steps to quickly get up and running with XML Webpad (The Demo project is actually very self-explanatory. Unpack the project and
Frequently Asked Questions
- Unzip the 'XMLWebpadDemo.zip'
- Copy the folder 'ScriptLib', 'Images' and 'Styles' into your web application project directory and include it in your project
- Then add assembly references to the XMLWebpad.dll and IdentityManager.dll to your project
- Now add the web service 'XMLEditorService.asmx' to your project
- Create webform .aspx page or include the ConfigEditor.aspx in your project
- Modify the ConfigEditor.aspx.cs code behind as shown in the demo
- Do the same with the Edit.aspx (as shown in the demo)
- Run your web application and view the ConfigEditor.aspx and Edit.aspx page
Here's a list of