473,480 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

View formatted XML?

Hi everyone, is it possible to return the formatted interpretation of an
XmlDocument object?

Using an XmlWriter object I can write a formatted document to a file,
however I want to store it within a string var and output to the screen.

Is this possible?

Thanks,
Taz
Dec 4 '05 #1
1 1495
XmlTextWriter class has overloaded constructors, one of which accepts a
target stream (could be, for example, a Memorystream). When you are done, you
can call then System.Text.Encoding.UTF8.GetString(yourstream.ToA rray())
and get your string.
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Tarun Mistry" wrote:
Hi everyone, is it possible to return the formatted interpretation of an
XmlDocument object?

Using an XmlWriter object I can write a formatted document to a file,
however I want to store it within a string var and output to the screen.

Is this possible?

Thanks,
Taz

Dec 4 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
961
by: T Tran via SQLMonster.com | last post by:
Hi Gurus, I'm a beginner. Would you please tell me if it's possible to create a view having a calcuated column based on the condition of the column on the sql table. create view vwImaging AS...
2
3492
by: Steven T. Hatton | last post by:
I'm still not completely sure what's going on with C++ I/O regarding the extractors and inserters. The following document seems a bit inconsistent:...
2
1826
by: Hope Paka | last post by:
My web page, has an average of 1500 hits every day. Every day, i get invalid view state exception, average of 10 times. The exception message in at the bottom. When i try to parse the view state in...
3
1390
by: Boni | last post by:
Dear all, is it possible to use two fonts in one context menu item text. I.e ItemTextFont1,ItemTextFont2. I would need something like a richtextbox for text of context menu items. Is it...
0
983
by: JeremyW | last post by:
I have a data bound Details View control in asp.net 2.0 that formats a phone number. The 'Default Mode' for the control is set to Edit. The phone number field is a template field and I can...
2
1481
by: Smokey Grindle | last post by:
In .NET 1.1 I could have a column bound with date/time fields.. then say the format of it was this {0:MMM d,yyyy h:mm tt} and it would display in this format Jan 1, 2006 2:03 PM however in...
0
1791
by: robwahl | last post by:
Hi, I have a members only area of a site (using ASP and MS Access) where I need users to be able to either view or download reports (PDF or MS Word doc - doesn't matter which). I want to store...
3
1901
by: Andrew Robinson | last post by:
I have a Grid View and associated Object Data Source control. The ODS interface with a custom data source that returns a List<MyEntity>. I am only referencing some of the columns on the GridView....
2
3342
by: Sandhya L. Gite | last post by:
Hi Everybody I m generating dynamic rss using php I have attached the CSS to it and i can see well formatted ..rss file in Mozila Firefox browser But If i request the same file in Internet...
0
7054
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6918
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5357
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4495
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3008
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3000
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1310
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
199
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.