on 04-04-2007 7:22 PM
Hello Friends,
I need a help from you guys to achive simple scenario. My output XML file is in the foll structure (for ex):
<Test_XML>
<Data1>Welcome1</Data1>
<Data2>Welcome2</Data2>
</Test_XML>
I'm using Content conversion to write to file.At the time of writing I don't need <Data1> element to be written on the file. Is there any possiblities?
Best Rgds,
J.
in the recv Content conversion try to give
Node1.fieldNames = Data2
node1.endSeparator = 'nl'
and check out with the other definitions in place.....not pretty sure
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
any updates!!
still its not resolved.
Error: Message processing failed: Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters!
Hi,
Depends upon the occurences of the field on the target side..If it is (0...unbounded) or (0...1) then this elimination is possible by writing one User defined Function.
Source -> UDF -> Target Node
Select UDF Type as Queue.
Use result.addValue(ResultList.SUPPRESS)
2nd Case: If you require data1 to be configured on the Receiver Adapter as Variable substitution then the UDF is to be written to map left root node with the right root node, So no need of this field to be appeared in the target structure only.
Manish
Hey
if u dont want data1 on the receiver side,then dont put it in the receiver data type in IR.
why do u have data1 in receiver XML but not in flat file,do u have multiple receivers?
thanx
ahmad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
dont map data1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.