From manjunathan.n at gmail.com Wed Jul 7 14:00:46 2021 From: manjunathan.n at gmail.com (manjunatha srinivasan) Date: Wed Jul 7 14:00:09 2021 Subject: [xsde-users] Regarding xsde error "expected element not encountered" Message-ID: Hi I am facing error as below : I am new to XSDe kind of coding development. With my existing setup of my project which has schema '*.xsd' files can generate cpp and h files for parser and serializer using xsde binary. I made changes in the schema file for adding an element called * '**listdata' *based on the list (sequence) of data type* 'listdatatype'*. This element 'listdata' is an element under 'mydata' element. Same time the 'mydata' element contains other elements like data1/data2. With addition of 'listdata' to 'mydata' as an element, I again re-generated h and cpp parser/serializer files. By referring sample changes (i.e. cpp & h files) of existing working of list entity and data entity in separate conditions, here I merged together, so aim is it will return both data1/data2 and listdata together in serializer. But facing below error with changes as said before. *error: expected element not encountered* My question is how to debug these kinds of errors, to exactly point to the file/line or element name which is causing the error. Can we generate log while parsing and serializing. I am testing this linux environment. Please help me out for better debugging. Here I have provided sample schema changes as below in common.xsd /reply.xsd files: --common.xsd--- listmember1 listmember2 listmember3 ------reply.xsd---- mydata data1 data2 details -- Thanks Manjunatha Srinivasan N