简体   繁体   English

平面文件架构向导

[英]Flat File Schema Wizard

I have an example of a tab delimited flat file like this: 我有一个制表符分隔的平面文件的示例,如下所示:

Expense Report Id   Name    Geography   StartDate   EndDate TotalExpense    
123456789   JJ Thompson Atlanta 6/12/2011   6/18/2011   454.10  
ExpenseDate Guests (Separated by comma) CompanyAffiliation  Establishment   Project
6/14/2011   "Norm McDonald, Gary Shandling" Two Guys Hamburgers Little Debbie's MumboJumbo
6/16/2011       IBN Yo  MumboJumbo  Conceirge
6/18/2011   Jimi Hendrix    The Experience  Electric Ladyland   MumboJumbo  Client

I have to convert an xml schema to look like this tab delimited flat file. 我必须转换一个xml模式以使其看起来像此制表符分隔的平面文件。 Any idea how when using the flat file schema wizard to keep the headers in there? 知道如何使用平面文件架构向导将标头保留在其中吗? I can do it w/out the headers no problem 我可以不用标题就可以做到

One option is to create a top level header element that is max occurs 1 and min occurs 1 that has a field for each column header with a default value. 一种选择是创建一个顶级标题元素,该元素的最大发生次数为1,最小发生次数为1,其每个列标题都有一个带有默认值的字段。 You would need to map a non repeating node on the left to this header element so that it is created. 您需要将左侧的一个非重复节点映射到此标头元素,以便创建它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM