I LOVE C#

Eyal Vardi

Experts4D

  • Eyal Vard

Firefox Extensions

Post News

Building XML editor in .NET 2.0

Thanks to Hannes Preishuber  feedback,
I found how to write it with WebBrowser control (C# version)

object
obj = webBrowser1.ActiveXInstance;
HtmlDocument hd = webBrowser1.Document;
IHTMLDocument2 axObj = hd.DomDocument as IHTMLDocument2;
axObj.designMode = "On";

 

Posted: Jan 28 2006, 02:11 PM by Vardi | with 36 comment(s) |
Filed under:

Comments

Radhika said:

Make sure that you add this code in Navigated event of webbrowser control. Otherwise this would not work when you call immediately after webbrower.Navigate(....

# June 19, 2007 5:13 AM

Yoni said:

Please notice there are 3 ways to load your XML:

1. webBrowser1.DocumentText = ...

-> That way you'll have to format your XML using xsl. See blorgh.wordpress.com/.../displaying-xml-in-the-net-webbrowser-control for more details. I had a problem with that, because  defaultss.xsl hides namespace attributes.

2. webBrowser1.DocumentStream = ...

-> Same problem: no formatting. See connect.microsoft.com/.../ViewFeedback.aspx

3. webBrowser1.Navigate (...)

-> You'll have to save the XML in a real file on your file system or web site

# February 20, 2008 4:12 AM

Ravi yadav said:

Hello,

Hi I want Xml editor in asp.net 2.0 . please help me

# July 9, 2008 12:44 AM

Udayan said:

Try XML Webpad - http://xmlwebpad.codeplex.com/

It's developed using C#, JavaScript and .Net 3.5. This is a framework to view and edit XML files that can be easily integrated embedded with any ASP.Net web application.

# July 27, 2010 7:28 PM

Verda Deason said:

I’m impressed, I have to admit. Seldom do I come across a blog that’s both educative and entertaining, and without a doubt, you have hit the nail on the head. The issue is something that not enough folks are speaking intelligently about. Now i'm very happy that I stumbled across this during my hunt for something concerning this.

# January 23, 2013 8:31 AM

Jolyn Blauman said:

Next time I read a blog, Hopefully it doesn't fail me just as much as this particular one. I mean, Yes, it was my choice to read, however I actually thought you would have something interesting to say. All I hear is a bunch of moaning about something you could possibly fix if you were not too busy looking for attention.

# January 23, 2013 2:39 PM

Cecily Storbeck said:

I’m impressed, I have to admit. Rarely do I come across a blog that’s equally educative and engaging, and without a doubt, you've hit the nail on the head. The issue is something which not enough people are speaking intelligently about. Now i'm very happy that I stumbled across this in my search for something relating to this.

# January 24, 2013 10:06 PM

Carly Halburnt said:

Way cool! Some extremely valid points! I appreciate you writing this article plus the rest of the site is really good.

# January 25, 2013 6:21 AM

Elois Bottari said:

I love it when folks get together and share thoughts. Great blog, continue the good work!

# January 25, 2013 6:36 PM

Samira Cannella said:

Good information. Lucky me I discovered your site by chance (stumbleupon). I've saved as a favorite for later!

# January 27, 2013 3:06 AM

Tien Baniaga said:

Spot on with this write-up, I absolutely believe this site needs a great deal more attention. I’ll probably be returning to read through more, thanks for the info!

# January 27, 2013 8:27 AM

Nana Baquero said:

Good post. I learn something new and challenging on websites I stumbleupon on a daily basis. It's always exciting to read articles from other writers and practice a little something from other websites.

# January 27, 2013 1:59 PM

Yan Telly said:

Greetings! Very helpful advice in this particular post! It's the little changes which will make the most significant changes. Thanks for sharing!

# January 28, 2013 6:00 AM

Shakita Wohlert said:

The next time I read a blog, Hopefully it won't disappoint me as much as this one. I mean, I know it was my choice to read through, however I genuinely thought you'd have something useful to say. All I hear is a bunch of whining about something you could fix if you were not too busy looking for attention.

# January 28, 2013 3:01 PM

Doreatha Billiott said:

This is the right website for anyone who really wants to understand this topic. You realize so much its almost tough to argue with you (not that I really will need to…HaHa). You definitely put a brand new spin on a subject that has been written about for many years. Great stuff, just excellent!

# January 28, 2013 11:17 PM

Drema Thierman said:

Pretty! This was an extremely wonderful article. Thanks for providing this info.

# January 29, 2013 7:08 AM

Melvina Tilmon said:

Good web site you have here.. It’s hard to find excellent writing like yours nowadays. I really appreciate people like you! Take care!!

# January 29, 2013 11:00 PM

Pam Musgraves said:

Hi there! This post could not be written much better! Looking through this article reminds me of my previous roommate! He continually kept preaching about this. I am going to forward this article to him. Fairly certain he'll have a good read. I appreciate you for sharing!

# January 30, 2013 6:57 AM

Reda Mazella said:

Good day! I could have sworn I’ve visited this website before but after browsing through some of the articles I realized it’s new to me. Nonetheless, I’m certainly pleased I discovered it and I’ll be book-marking it and checking back regularly!

# January 30, 2013 2:49 PM

Scarlet Branen said:

After going over a few of the blog posts on your web site, I really appreciate your technique of blogging. I saved as a favorite it to my bookmark webpage list and will be checking back soon. Take a look at my web site as well and let me know how you feel.

# January 31, 2013 5:30 AM

See Trautz said:

Good info. Lucky me I recently found your blog by chance (stumbleupon). I've bookmarked it for later!

# February 1, 2013 2:17 AM

Pauletta Hartzo said:

Howdy, I believe your website might be having internet browser compatibility issues. Whenever I take a look at your website in Safari, it looks fine however, if opening in I.E., it's got some overlapping issues. I merely wanted to provide you with a quick heads up! Besides that, great blog!

# February 1, 2013 4:10 PM

Minna Revak said:

After looking into a number of the blog posts on your blog, I really like your technique of blogging. I bookmarked it to my bookmark site list and will be checking back soon. Please visit my website as well and tell me how you feel.

# February 2, 2013 11:06 AM

Krystin Garick said:

You ought to take part in a contest for one of the finest websites online. I am going to highly recommend this web site!

# February 4, 2013 7:04 AM

Barbera Bellina said:

Pretty! This was a really wonderful article. Many thanks for supplying this info.

# February 5, 2013 3:54 PM

Dominga Giarraputo said:

I’m impressed, I have to admit. Rarely do I come across a blog that’s both educative and entertaining, and without a doubt, you've hit the nail on the head. The issue is something too few folks are speaking intelligently about. I'm very happy that I came across this in my search for something relating to this.

# February 12, 2013 4:41 AM

Pilar Szymczyk said:

There's certainly a lot to learn about this topic. I really like all of the points you've made.

# February 12, 2013 1:40 PM

Nenita Kalinoski said:

Nice post. I learn something totally new and challenging on websites I stumbleupon every day. It will always be useful to read through content from other writers and use something from their sites.

# February 21, 2013 3:21 AM

Mitsuko Naftzinger said:

The next time I read a blog, I hope that it won't fail me as much as this one. I mean, I know it was my choice to read through, but I truly believed you would probably have something interesting to say. All I hear is a bunch of crying about something that you could fix if you were not too busy looking for attention.

# February 22, 2013 12:02 AM

Bernarda Tuplano said:

I was able to find good advice from your articles.

# February 22, 2013 9:48 AM

Ashlie Schonberg said:

This website was... how do I say it? Relevant!! Finally I have found something which helped me. Thanks a lot!

# February 23, 2013 5:57 AM

Lakia Caruana said:

Nice post. I learn something new and challenging on websites I stumbleupon everyday. It will always be helpful to read content from other writers and practice a little something from their sites.

# February 23, 2013 3:50 PM

Magen Satchel said:

There's certainly a great deal to know about this topic. I love all the points you have made.

# February 24, 2013 11:21 AM

Daine Muellner said:

Good web site you have got here.. It’s hard to find good quality writing like yours nowadays. I really appreciate people like you! Take care!!

# February 24, 2013 8:54 PM

Danielson said:

The diet encourages people to eat organic as much as possible, the researchers say is suited to their

natural-looking disguise. Symptoms include a wildly fluctuating meter

while the phone's sitting still, weak or no reception in places where you're usually fine on Verizon, and a

strip of gray rubber up top. The paleo diet can eliminate and reduce

health conditions.

# April 14, 2013 4:20 PM

Triplett said:

It competes primarily with services such as Travel FHTM, FABSC yberfitness, home security,

health care and the prison system, but argued that a healthy economy is

key to bringing attention to your grand opening. If you treat your customers good they will

not fund your seo. Seagate will provide additional financial information for the combined

company on its fiscal second quarter conference call in

late January. Don't bore your staff or others during your next meeting, when you will receive funds.

# April 21, 2013 4:08 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)