如何将文本转换为xml,以便最终获得表单850,855和856的EDI X12格式文件 [英] How to convert text to xml in order to end up with EDI X12 format file for forms 850,855 and 856

查看:124
本文介绍了如何将文本转换为xml,以便最终获得表单850,855和856的EDI X12格式文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到一个带有标签的文本文件,例如FILEHEADER,DOC HEADER,PO_L,PO_H,SUMMARY和数据。想知道如何将这样的文件(850)转换为xml。我有850(* .xsd)格式的架构,大约99000行标签,但不知道如何在文本文件中映射标签
以匹配架构(或如何处理此项目),  I我正在考虑在.net c#中构建xml客户端以获取850表单文本文件并将其转换为xml(稍后在其他应用程序上将获取此xml文件并将其转换为EDI X12格式)。  I
am new在此,所有帮助都表示赞赏。


解决方案

1-在项目中为文本文件创建一个模式"平面文件架构向导"。这里的说明:http://www.codeproject.com/KB/biztalk/FFSchemaWizard.aspx 2-将850 EDI模式添加到项目中3-创建一个从您创建的模式到
EDI 850模式的映射

I am getting a text file with labels such as FILEHEADER, DOC HEADER,PO_L, PO_H, SUMMARY plus data. Want to know how to convert such file (850) to xml. I have the schema for 850 (*.xsd) form which is about 99000 lines of tags, but not sure how to map labels in text file to match the schema (or how to approach this project),  I am thinking of building xml client in .net c# to take an 850 form text file and convert it to xml (later on other app would take this xml file and convert it to EDI X12 format). I am new at this so all help is appreciated.

解决方案

1- Create a schema in your project for the text file using the "Flat File Schema Wizard". Instructions here: http://www.codeproject.com/KB/biztalk/FFSchemaWizard.aspx 2- Add the 850 EDI schema to your project 3- Create a Map from you created schema to the EDI 850 schema


这篇关于如何将文本转换为xml,以便最终获得表单850,855和856的EDI X12格式文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆