on 03-18-2016 2:02 PM
Hi Experts,
Can anyone please tell me what is the code to remove the single space coming in the field value of a xml tag and supresssthe Tag.
Eg>Source Xml: <Name> <Name>
Target xml :<Name/>
I have written one but i donot know why it is not working.
For(int i = 0;i<var1.length();i++)
{
if(var1[i].trim.isEqual(""))
result.addValue(ResultLiss.SUPRESS);
else
result.addValue(var1[i]);
]
Could anyone tell me what shold be the exact one to validate space value .
Thanks,
Suparna Banerjee
Hi experts,
Thanks for your suggestion.
it works fine.
I have one more query .
once we use this code the xml tag of Target structure does not generated.
but some times in one to one mapping logic if we pass no value in the Source Xml structure then the target xml structure generated like <Name/>
What is the difference between these two means 1>.no Name tag generation and 2>generated like<Name\>...
Please help me to clear my concept
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Suparna.
1>.no Name tag generation---------- Tag is suppressed
2>.generated like<Name\>-------------Means tag with empty value.
Refer the below discussion for clear understanding
http://stackoverflow.com/questions/2279501/what-is-an-empty-element
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.