webMethods step by step flat file to xml
Task: Flat to XML
OS: WindowsOS
Platform: webMethods 6.1
First create a dictonary
For this go to

goto and select

give a name for the dictoanry and then click finish
goto record definition and we can see them as follows
we get the picture as shown below

now goto new record definition and we get that as follows


now give the name as

now goto new

now goto new and select then we will get a screen as shown below

then select field definition and then we get

then select nth definition in the place where the cursor is pointed

give the name u want to create and then click on as shown in the figure

click on finish
then the dictonary is created
thebn create a schema for this we need to select

give the name of the schema and we get the screen as follows

then slect delimiter and then give ; and * as shown in the figure and we select nth field in as shown in the figure
then goto set and then we get the figure as shown below

we get the place where the dictionary has been saved select the dictionary and the dictionary is set
then goto flatfilestructue and we get then click on the as shown below

then we get schemadt for the concerned schema
then create an xml file as seen below
now take a document
and then take the document list and then take the string and then we get the screen as shown below

then take a flow
and we get the flow as follows

now take getfile from wmpublic
pub.file:getfile
then goto pipeline and we get the screen as follows

the filename is filename as the filename we have to take as the input

then select the loadas

to select this goto
wmflatfile.pub.flatfile:converttovalues
then we get the mapping in the pipeline as follows

copy the schema and pasteit in ffschema
copy schemadt in the same and write it in the and we have to map it ion the following

then take a map and we get it as
copy xml and paste it in the right pipelineout and we get it as follows

the mapping is done as follows
then take the wmpublic
xml
documenttoxmlstring
map from xmlschema to the document as shown in the figure

next gotowrite to file and we get it as follows

we can see the navigation to get the writeto file
map from xmldata to filecontent
filename
give filename as the destination of the file we want to save the file for output
overwriteflag select it and make it overwrite
run
finish