Hi I have put a zip-file with my schema and three different instances on http://www.eliasen.dk/biztalk/blodmel.zip I can not validate the "SRM.txt" against the schema, but I can validate the two other instances. The two instances differ from SRM.txt in the way that in one of them, I have deleted the first line from the main instance and in the other one I have deleted the last line. Since I can validate both the two other instances, that must mean that both the first line and the last line are valid. But if they are both present, everything fails. What is happening? -- Eliasen Jr. representing himself and not the company he works for. Private email: jan@eliasen.dk "Ford," he said, "you're turning into a penguin. Stop it."
You have an incorrect number of fields in each record. If you check the output of the Validate Instance you will see the last field NIR-32 picks up the next line. So each <record> node needs two lines in the input file. If you have an odd number of lines the validation will fail, by deleting the first or last line will mean an even number of lines and the validate works. If you delete the last field (NIR_32) from the schema, all 3 examples will validate. Greg "Jan Eliasen" <eliasen@nospam.nospam> wrote in message news:1ien22lhjqcdkcnu6kfde647j6sqea41c3@4ax.com... > Hi > > I have put a zip-file with my schema and three different instances on > http://www.eliasen.dk/biztalk/blodmel.zip > > I can not validate the "SRM.txt" against the schema, but I can > validate the two other instances. > > The two instances differ from SRM.txt in the way that in one of them, > I have deleted the first line from the main instance and in the other > one I have deleted the last line. > > Since I can validate both the two other instances, that must mean that > both the first line and the last line are valid. But if they are both > present, everything fails. > > What is happening? > > -- > Eliasen Jr. representing himself and not the company he works for. > > Private email: jan@eliasen.dk > > "Ford," he said, "you're turning into a penguin. Stop it."
On Fri, 31 Mar 2006 01:07:05 +1200, "Greg Forsythe" wrote: >You have an incorrect number of fields in each record. Right... Thanks! I can not believe I was that blind... -- Eliasen Jr. representing himself and not the company he works for. Private email: jan@eliasen.dk "Ford," he said, "you're turning into a penguin. Stop it."