From sant_oshi at indiatimes.com Wed Dec 12 11:22:27 2012 From: sant_oshi at indiatimes.com (sant_oshi@indiatimes.com) Date: Wed Dec 12 11:12:19 2012 Subject: [xsde-users] serialize error expected element not encountered Message-ID: <520154357.109801355329347834.JavaMail.root@tilmb18.indiatimes.com> Hi, I have generated c++ code using xsde and when i serialize it get expected element not encountered exception. I want to get more debug information as to which element is not found what should it do? I tried using e.text() e.what() all print the same.... It does not tell which element is missing as per XSD. So pls guide how to get more debugging info. thanks From boris at codesynthesis.com Thu Dec 13 02:23:10 2012 From: boris at codesynthesis.com (Boris Kolpackov) Date: Thu Dec 13 01:38:19 2012 Subject: [xsde-users] serialize error expected element not encountered In-Reply-To: <520154357.109801355329347834.JavaMail.root@tilmb18.indiatimes.com> References: <520154357.109801355329347834.JavaMail.root@tilmb18.indiatimes.com> Message-ID: Hi, sant_oshi@indiatimes.com writes: > I have generated c++ code using xsde and when i serialize it get > expected element not encountered exception. I want to get more debug > information as to which element is not found what should it do? Unfortunately this information is not easily available. For the next release of XSD/e we are planning to improve this. For now, your best option is to not catch the exception so that the application crashes. Then, by examining the stack trace, you should be able to see where in the generated code the exception was thrown. This will give you a good idea which element is missing. Boris From boris at codesynthesis.com Fri Dec 14 07:50:40 2012 From: boris at codesynthesis.com (Boris Kolpackov) Date: Fri Dec 14 07:05:26 2012 Subject: [xsde-users] serialize error expected element not encountered In-Reply-To: <190128423.211281355415006256.JavaMail.root@tilmb18.indiatimes.com> References: <190128423.211281355415006256.JavaMail.root@tilmb18.indiatimes.com> Message-ID: Hi, In the future please keep your replies CC'ed to the xsde-users mailing list as discussed in the posting guidelines: http://www.codesynthesis.com/support/posting-guidelines.xhtml sant_oshi@indiatimes.com writes: > I want to serialize the data structure to unl format instead of xml... > is this possible. Not with XSD/e. XSD/e only deals with XML and XML Schema. But it provides support for binary serialization so you may want to look into that: http://www.codesynthesis.com/projects/xsde/documentation/cxx/hybrid/guide/#7 Boris From sant_oshi at indiatimes.com Fri Dec 14 18:02:45 2012 From: sant_oshi at indiatimes.com (sant_oshi@indiatimes.com) Date: Fri Dec 14 17:52:34 2012 Subject: [xsde-users] serialize error expected element not encountered In-Reply-To: Message-ID: <1941182849.352451355526165429.JavaMail.root@tilmb18.indiatimes.com> Hi, Thanks. Will follow the rules. regards ragha ----- Original Message ----- From: Boris Kolpackov To: sant oshi Cc: xsde-users@codesynthesis.com Sent: Fri, 14 Dec 2012 18:20:40 +0530 (IST) Subject: Re: [xsde-users] serialize error expected element not encountered Hi, In the future please keep your replies CC'ed to the xsde-users mailing list as discussed in the posting guidelines: http://www.codesynthesis.com/support/posting-guidelines.xhtml sant_oshi@indiatimes.com writes: > I want to serialize the data structure to unl format instead of xml... > is this possible. Not with XSD/e. XSD/e only deals with XML and XML Schema. But it provides support for binary serialization so you may want to look into that: http://www.codesynthesis.com/projects/xsde/documentation/cxx/hybrid/guide/#7 Boris