 |
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|

July 25th, 2006, 11:23 PM
|
Registered User
|
|
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
C# RTF To XML
My Task is Using C#
1. Convert Rtf to XML and XML to RTF
2. Wav File to XML and Xml to Wav format
pls Very urgent
Thanks
|

July 25th, 2006, 11:44 PM
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
Not sure what you want to do here, in your first example the best you could hope to do would be to creat an xml file that would be structured somethign like this:
<xml>
<letter>
<rtfBody>Some text here</rtBody>
</letter>
</xml>
Unless there are certain places within your RTF that you are going to setup nodes for (Like author and creation date.)
Thats as simple as opening a text reader, reading in your text and then using an xmlwritier to write the file. (You will need System.XML and System.IO to do the reading and writing)
The second example, someone correct me if im wrong, but the best you would be able to do would be to convert a .wav file to a byte string, place it in an xml file and save it then open the xml file, read out the byte string and put it back together.
Hope that helps.
"The one language all programmers understand is profanity."
|

July 26th, 2006, 12:32 AM
|
Registered User
|
|
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thank U for ur Answer
i want source code for Converting Xml File to Rtf File
Rtf File to Xml file format(not using Save as word document)
Wav file to Xml File
Xml file To Wav File
|

July 26th, 2006, 06:49 AM
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
Check the MSDN, Google, etc. (Sorry I dont give people source code to complete their projects when, apparently, they have done no research on the topic at all. If you have a codebase you are working with and it is giving you trouble, ill be happy to look at it.)
"The one language all programmers understand is profanity."
|

December 11th, 2007, 08:29 AM
|
Registered User
|
|
Join Date: Dec 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi diparsons.
Its an urgent.Would you please show me the sample code for Converting RTF to XMl.
Thanks in Advance
Quote:
quote:Originally posted by dparsons
Check the MSDN, Google, etc. (Sorry I dont give people source code to complete their projects when, apparently, they have done no research on the topic at all. If you have a codebase you are working with and it is giving you trouble, ill be happy to look at it.)
"The one language all programmers understand is profanity."
|
|

December 11th, 2007, 12:14 PM
|
Friend of Wrox
|
|
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
|
|
Found this article in 30 seconds.
http://msdn2.microsoft.com/en-us/library/aa537151(office.11).aspx
|
|
 |