can anyone tell me how can i convert plain text to XMl.thanks
well, my first guess would be have something that would search for key words using the regex, and then doing something based on it, and using System.IO; to write/read the textfile. The best way I can explain this would be by assuming a few things, XML version by standard would be 1.0, so before you get started even converting anything write this to the file:
...reasoning for this is because this is needed for an xml file, and then you could go ahead and add your other things like...xml heading tags, auto-add date(meaning it prints the date to the file for you each time you "convert" text to xml), and things like that. dont forget to add the ending xml tags too when your doing all of this. if your making an app to do all of this let the user pick from options for making the xml file, because even if they never use the options its nice to be able to say you have them, options and appearance sells, basic and crappy apps dont.
I'm replying to this going off only what you told me, so next time to help you out and everyone else, please add more, maybe a short story, some details, makes getting help easier.
Good luck, and reply if you have questions/comments.
hi , sorry for not describing it properly,basically i have a plain text which i need to store in databse and at the same time i need to create xml file for tht text. User will not have to do anything with this.This is just one time thing.My second questionis, how will i create tags?How will i know about tags?Thanks for all the help
An XML file can be created and edited using an XmlDocument object and other classes from the System.Xml namespace.
However, there are other ways to create XML documents (e.g. from a DataTable or DataSet).
It depends very much on what you mean by "plain text".
As spdesings pointed out you have not given enough information to give a fuller answer.
Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly ...
Hello All ...
Iam Getting An Error With try to excecute the stored procedure .
I have Have Sql database , the stored procedure like so :
USE [MPRS] GO /****** Object: StoredProcedure [dbo].[Search_Licenses_By_Number] Script Date: 26-Nov-16 8:06:52 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE ...
Help! I want to create a java program that finds the highest even integer among the values entered by the user. Stop asking values when a value less than 1 have been entered. If no even integer is entered, display "No Even Integer"
Here is the sample output that I ...