on 08-14-2007 9:02 AM
HI All,<br><br>
Iam doing a simple file to file scenario. The issue is, I have declared data type and one field as<br><br>
Id -- Element -- xsd:date --- 1 (occurrence)<br><br>
and in the input file i have give the filed Id as<br>
"asdf"<br><br>
I should get an error, because the Id is xsd:date and i have give characters................. but I am not getting any runtime error. <br><br>
Can any one give me the reason.<br>
Thank you<br>
Raghu
not that currently in XI there is no validation of the XSD/DTD data type.
So all the data that comes into XI is treated as a String.
So even if Id -- Element -- xsd:date --- 1 (occurrence) is mentioned in the data type, it is treated as a string inside XI. So you will not see any error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for that clarification.<br><br>
<u>Structure</u>-<u>Category</u>-<u>Type</u>-----<u>Occurrence</u>-<u>Details</u>--
<u>Description</u><br>
Date--
In <u>Details</u> we can give so many things minlength, maxLenth, Pattern, Enumerate, whitespace.. and by this we can restrict the input type. <br> If XI doesn't check whether the input xml is valid or not, then we end up working on wrong date ( not intended data). Is there any way to validate the XML (input data) before we work on it. <br>
yes it is a problem with XI.. i guess it is a bug in XI... because we are facing the same problem .. for implementing validation we are using UDF.....
ideally XI should give error if xml format is not as per the xsd set in XI but it does not ....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.