Re: getting the value from text file to xml
- From: "John Saunders" <john.saunders at trizetto.com>
- Date: Fri, 25 Aug 2006 05:51:30 -0400
"Jerry John" <Jerry John@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E4B4BE44-81AA-47CE-BEF0-C6047F3467CA@xxxxxxxxxxxxxxxx
I am working in ASP.NET with C#. I have a text file which contains datas
with delimiters. For example:-
MSH|^~\$|DISCHARGE|CLAY COUNTY MEMORIAL|||200502110939|
I also have an XML file created with predefined tags. Some of the tags
contain child element. I need to pass the data from the text file i.e the
value within the delimiters should be passed to the corresponding tags
within
the XML file. I have done this through hard code. But i need it to be
dynamic. There are also possibilities to add or delete tags from the XML
file
which should not affect the code. I have created the XML using Dataset. So
the addition or deletion of tags can be done through dataset without
affecting the code.
Jerry, sorry not to provide a solution, but did you know there are companies
who do this sort of conversion for a living? There are both products and
services whicch can do this for you - correctly.
A google search for "hl7 xml transform" found 46,000 entries. The first
among them was "CONVERT EDI TO XML" at
http://www.stylusstudio.com/convert_edi_to_xml.html. I found it useful for
understanding the nature of the problem, even though I'm not personally
interested in the solution (not yet - we have people for that!)
John
.
- References:
- getting the value from text file to xml
- From: Jerry John
- getting the value from text file to xml
- Prev by Date: Re: Cannot find root element in XML file
- Next by Date: Re: Cannot find root element in XML file
- Previous by thread: getting the value from text file to xml
- Index(es):
Relevant Pages
|