cancel
Showing results for 
Search instead for 
Did you mean: 

Xml file handling

Former Member
0 Kudos

I’m working on File to file scenario.

My source file is xml file.

What sort of prerequisites I need to do before processing this file.

I maintained the source file structure similar to xml file structure, do I need to maintain same attributes/tag names of source file in source format?

Accepted Solutions (0)

Answers (2)

Answers (2)

moorthy
Active Contributor
0 Kudos

Hi Venu,

If your input file is xml, you can give as it is .

Regards,

Moorthy

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>>>I maintained the source file structure similar to xml file structure, do I need to maintain same attributes/tag names of source file in source format?

if the xml file you plan to send is the same as the

one that you've create you don't need to do anything else

Regards,

michal

Former Member
0 Kudos

Hi Michal,

I think i'm not properly expressed my doubt.

<u>My source file is:</u>

<ABC xmlns = "http" xmlns:xsi="http" xsi:scemaloc ="https"

<Docheader>

-


-


<Docdetail> 1..n

-


-


<docsummery>

-


---

</ABC>

I created the source format as follows:

<Recordset>

<Docheader>

<Docdetail>1..n

<Docsummery>

</recordset>

<u>Problem:</u>

Problem is when i map these source file to target flat file.the source fileds are suppressing.

bcz of this i'm getting error message

"Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd"

Thanks,

venu

moorthy
Active Contributor
0 Kudos

Hi,

Did you map one to one ? I think, the error is because of some of the nodes are not mapped correctly..

Regards,

moorthy

bhavesh_kantilal
Active Contributor
0 Kudos

Hi venu,

The reason is that the root element do not match.

Also, this is not a correct format in your file,

<i><ABC xmlns = "http" xmlns:xsi="http" xsi:scemaloc ="https"</i>

It should be ,

<b><i><ns0:MESSAGETYPENAME xmlns:="NAMESPACE"></i></b>

Just chage the Source File of this format by giving the correct Message Type and Namespace values.

Regards,

Bhavesh

Former Member
0 Kudos

Hi All,

Thank you for ur help.

I solved this problem by importing XSD.It solved my problem

Thanks,

venu.