From boris at codesynthesis.com Tue Aug 9 06:29:46 2005 From: boris at codesynthesis.com (Boris Kolpackov) Date: Sun Oct 11 15:33:40 2009 Subject: [xsd-users] xsd 1.1.0 released Message-ID: <20050809102946.GA6658@karelia> Good day, We've released xsd 1.1.0. The NEWS file entries for this version are as follows: cxx-tree * New option, --generate-serialization, triggers generation of serialization functions. Serialization functions convert an in-memory representation back to XML. * xsd::cxx::tree::vector has been extended to closely follow std::vector API. This allows you to access and modify element sequences as if they were of type std::vector. * Generated constructors from xml::attribute and xml::element are made explicit. * The library example was extended to showcase modification and serialization of the in-memory representation. * New "XML Schema C++/Tree Mapping Serialization Guide" has an in-depth treatment of the serialization mechanisms provided by xsd. Precompiled binary distributions for various platforms are available from the product's web page: http://codesynthesis.com/products/xsd/ Source code for this release is available from the project's web page: http://codesynthesis.com/projects/xsd/ SHA1 checksums for the files: bae1ea9ab6b1703ffa974f99722c12063eac1a5f xsd-1.1.0.tar.bz2 35f082a3f3757af7edbadc75ab3676e53eb592c3 xsd_1.1.0-1_i386.deb 93daef947a722bd20f064b7dbbd27a25f1e252fa xsd-1.1.0-1.i686.rpm 1e11155a1e87d83e904eca5342abbf6fe30f7a18 xsd-1.1.0-i686-linux-gnu.tar.bz2 aa646d19af3e7de62a5c8ad0722269b3d297cefd xsd_1.1.0-1_amd64.deb cd6f3385119b38f6766a5638231aa9ee2a5681e7 xsd-1.1.0-1.x86_64.rpm 4ce9f79e73607b7c17d031f823f32f166e39ec76 xsd-1.1.0-x86_64-linux-gnu.tar.bz2 fe08cc6b2e6f8738b0a311e361f12f8dcc9c2435 xsd-1.1.0-powerpc-macosx.tar.bz2 48f8569d1f8c2aa078d98d6dcbe3f7401551b933 xsd-1.1.0-i686-windows.zip Have fun! -boris -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 652 bytes Desc: Digital signature Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20050809/796b162d/attachment.pgp From arlo.borras at dryade.net Wed Aug 24 05:31:20 2005 From: arlo.borras at dryade.net (Arlo) Date: Sun Oct 11 15:33:40 2009 Subject: [xsd-users] Problem using cygwin bash shell Message-ID: <430C3E68.3030305@dryade.net> Hi Boris, There is a long time i've searching for a GNU XSD-C++ Mapping tool, so thanks you for developping this product. I've just download the 2 binary package for windows, bunzip them : http://codesynthesis.com/download/xerces-c/2.6/windows/i686/xerces-c-2.6.0-i686-windows-vc-7.1-rtti.zip http://codesynthesis.com/download/xsd/1.1/windows/i686/xsd-1.1.0-i686-windows.zip and finally called xsd cxx-tree hello.xsd with the same hello.xsd file as you. But nothing happens I haven't got VisualC++, so is there a simple way to make this works under cygwin (bash shell) or eclispe ? Arlo From France -- Arlo BORR?S www.dryade.net From boris at codesynthesis.com Wed Aug 24 14:37:16 2005 From: boris at codesynthesis.com (Boris Kolpackov) Date: Sun Oct 11 15:33:40 2009 Subject: [xsd-users] Problem using cygwin bash shell In-Reply-To: <430C3E68.3030305@dryade.net> References: <430C3E68.3030305@dryade.net> Message-ID: <20050824183716.GA14014@karelia> Hi Arlo, Arlo writes: > There is a long time i've searching for a GNU XSD-C++ Mapping tool, so > thanks you for developping this product. You are welcome. > xsd cxx-tree hello.xsd > > with the same hello.xsd file as you. But nothing happens That's strange. I used it from both bash shell under cygwin and VC7.1 IDE without any problems. What happens when you do $ cd xsd-1.1.0-i686-windows/bin $ ./xsd.exe --version or $ ./xsd.exe help cxx-tree Can you also tell me which version of Windows you are using? -boris -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 652 bytes Desc: Digital signature Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20050824/9573f560/attachment.pgp From arlo.borras at dryade.net Thu Aug 25 02:34:55 2005 From: arlo.borras at dryade.net (Arlo) Date: Sun Oct 11 15:33:40 2009 Subject: [xsd-users] Problem using cygwin bash shell In-Reply-To: <20050824183716.GA14014@karelia> References: <430C3E68.3030305@dryade.net> <20050824183716.GA14014@karelia> Message-ID: <430D668F.1060802@dryade.net> Hi Boris, Just to be more precise, i've done the foljlowing things. Download and unzip the 2 binary in C:\tmp Launch cygwin bash shell, then Arlo@Gaston ~ $ cd /cygdrive/c/tmp/ Arlo@Gaston /cygdrive/c/tmp $ export LD_LIBRARY_PATH=/cygdrive/c/tmp/xerces-c-2.6.0-i686-windows-vc-7.1-rtti/lib Arlo@Gaston /cygdrive/c/tmp $ xsd-1.1.0-i686-windows/bin/xsd.exe --version XML Schema Definition Compiler 1.1.0 Copyright (C) 2005 Code Synthesis Tools CC This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESSFOR A PARTICULAR PURPOSE. Arlo@Gaston /cygdrive/c/tmp $ xsd-1.1.0-i686-windows/bin/xsd.exe help css-tree unknown command 'css-tree' try 'c:\tmp\xsd-1.1.0-i686-windows\bin\xsd.exe help' for the list of commands Arlo@Gaston /cygdrive/c/tmp $ xsd-1.1.0-i686-windows/bin/xsd.exe help cxx-tree Usage: c:\tmp\xsd-1.1.0-i686-windows\bin\xsd.exe cxx-tree [options] file Options: --char-type Generate code using provided character type instead of the default 'char' Valid values are 'char' and 'wchar_t'. --output-dir Write generated files to instead of current directory. --generate-serialization Generate serialization functions. They convert an in-memory representation back to XML. --generate-ostream Generate ostream insertion operators. --namespace-regex Add provided regular expression to the list of regular expressions used to translate XML Schema namespace names to C++ namespace names. The first successful substitution is used. The last provided expression is considered first. Expression is a perl-like regex in the form /pattern/replacement/. --include-with-brackets Use angle brackets (<>) instead of quotes ("") in generated #include directives for included and imported schema definitions. --include-prefix Add to generated #include directive paths for included and imported schema definitions. --hxx-suffix Use instead of the default '.hxx' to construct the name of the header file. --ixx-suffix Use instead of the default '.ixx' to construct the name of the inline file. --cxx-suffix Use instead of the default '.cxx' to construct the name of the source file. --hxx-regex Use to construct the name of the header file. Expression is a perl regex in the form /pattern/replacement/. --ixx-regex Use to construct the name of the inline file. Expression is a perl regex in the form /pattern/replacement/. --cxx-regex Use to construct the name of the source file. Expression is a perl regex in the form /pattern/replacement/. --hxx-prologue Insert at the beginning of the header file. --ixx-prologue Insert at the beginning of the inline file. --cxx-prologue Insert at the beginning of the source file. --prologue Insert at the beginning of each generated file for which there is no file-specific prologue. --hxx-epilogue Insert at the end of the header file. --ixx-epilogue Insert at the end of the inline file. --cxx-epilogue Insert at the end of the source file. --epilogue Insert at the end of each generated file for which there is no file-specific epilogue. --hxx-prologue-file Insert the content of the at the beginning of the header file. --ixx-prologue-file Insert the content of the at the beginning of the inline file. --cxx-prologue-file Insert the content of the at the beginning of the source file. --prologue-file Insert the content of the at the beginning of each generated file for which there is no file- specific prologue file. --hxx-epilogue-file Insert the content of the at the end of the header file. --ixx-epilogue-file Insert the content of the at the end of the inline file. --cxx-epilogue-file Insert the content of the at the end of the source file. --epilogue-file Insert the content of the at the end of each generated file for which there is no file- specific epilogue file. --export-symbol Export symbol for Win32 DLL export/import control. --show-sloc Show the number of generated physical source lines of code (SLOC). Arlo@Gaston /cygdrive/c/tmp $ xsd-1.1.0-i686-windows/bin/xsd.exe cxx-tree hello.xsd Arlo@Gaston /cygdrive/c/tmp $ I think i've forgotten something important (setting PATH or something else) for execute this program on my XP-SP2. Arlo Boris Kolpackov a ?crit : >Hi Arlo, > >Arlo writes: > > > >>There is a long time i've searching for a GNU XSD-C++ Mapping tool, so >>thanks you for developping this product. >> >> > >You are welcome. > > > > >>xsd cxx-tree hello.xsd >> >>with the same hello.xsd file as you. But nothing happens >> >> > >That's strange. I used it from both bash shell under cygwin and >VC7.1 IDE without any problems. What happens when you do > >$ cd xsd-1.1.0-i686-windows/bin >$ ./xsd.exe --version > >or > >$ ./xsd.exe help cxx-tree > > >Can you also tell me which version of Windows you are using? > > >-boris > > From boris at codesynthesis.com Thu Aug 25 06:10:52 2005 From: boris at codesynthesis.com (Boris Kolpackov) Date: Sun Oct 11 15:33:40 2009 Subject: [xsd-users] Problem using cygwin bash shell In-Reply-To: <430D668F.1060802@dryade.net> References: <430C3E68.3030305@dryade.net> <20050824183716.GA14014@karelia> <430D668F.1060802@dryade.net> Message-ID: <20050825101052.GA15692@karelia> Hi Arlo, Arlo writes: > $ export > LD_LIBRARY_PATH=/cygdrive/c/tmp/xerces-c-2.6.0-i686-windows-vc-7.1-rtti/lib This is not strictly necessary to run xsd because it is linked statically to xerces-c++. You will need headers and libs from this archive when you build your applications using xsd-generated code. Also note that these xerces-c++ libraries were pre-compiled using VC-7.1, which means it is of no use to you if you are using g++. Just for your information. > $ xsd-1.1.0-i686-windows/bin/xsd.exe --version > > XML Schema Definition Compiler 1.1.0 Ok, that means the binary is runable. > $ xsd-1.1.0-i686-windows/bin/xsd.exe cxx-tree hello.xsd > > Arlo@Gaston /cygdrive/c/tmp > > $ Can you see hello.hxx and hello.cxx files after you run this command? If so then everything seems to work ok. > I think i've forgotten something important (setting PATH or something > else) for execute this program on my XP-SP2. Yes, you need to set PATH if you want to run it just as 'xsd'. The README file in the distribution describes how to do it system-wide (so you can run it from Cygwin shell, Eclipse, VC IDE, etc.). Let us know if you run into any other problems, -boris -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 652 bytes Desc: Digital signature Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20050825/7dc97d11/attachment.pgp From arlo.borras at dryade.net Thu Aug 25 07:02:17 2005 From: arlo.borras at dryade.net (Arlo) Date: Sun Oct 11 15:33:40 2009 Subject: [xsd-users] Problem using cygwin bash shell In-Reply-To: <20050825101052.GA15692@karelia> References: <430C3E68.3030305@dryade.net> <20050824183716.GA14014@karelia> <430D668F.1060802@dryade.net> <20050825101052.GA15692@karelia> Message-ID: <430DA539.4070006@dryade.net> Dear Boris, Thanks you for all these informations. I've just made a global search on my desktop, and i haven't got hello.hxx and hello.cxx files except those in xsd-1.1.0-i686-windows/documentation/cxx/tree/quick-guide Any other idea ? Any verbose mode to enable ? Arlo Boris Kolpackov a ?crit : >Arlo writes: > > >>$ xsd-1.1.0-i686-windows/bin/xsd.exe cxx-tree hello.xsd >> >>Arlo@Gaston /cygdrive/c/tmp >> >>$ >> >> > >Can you see hello.hxx and hello.cxx files after you run this command? >If so then everything seems to work ok > From boris at codesynthesis.com Thu Aug 25 08:33:02 2005 From: boris at codesynthesis.com (Boris Kolpackov) Date: Sun Oct 11 15:33:40 2009 Subject: [xsd-users] Problem using cygwin bash shell In-Reply-To: <430DA539.4070006@dryade.net> References: <430C3E68.3030305@dryade.net> <20050824183716.GA14014@karelia> <430D668F.1060802@dryade.net> <20050825101052.GA15692@karelia> <430DA539.4070006@dryade.net> Message-ID: <20050825123302.GA16038@karelia> Arlo, Arlo writes: > I've just made a global search on my desktop, and i haven't got > hello.hxx and hello.cxx files except those in > xsd-1.1.0-i686-windows/documentation/cxx/tree/quick-guide Something really fishy is going on here. > Any other idea ? I just tried repeating steps similar to the ones you sent in the other mail. Can you try these and see if/where your output would differ: $ cd /cygdrive/c $ mkdir tmp $ cd tmp $ pwd /cygdrive/c/tmp $ # download xsd-1.1.0-i686-windows.zip $ ls xsd-1.1.0-i686-windows.zip $ unzip xsd-1.1.0-i686-windows.zip ... all those inflating messages ... $ ls xsd-1.1.0-i686-windows xsd-1.1.0-i686-windows.zip $ touch hello.hxx $ ls hello.hxx xsd-1.1.0-i686-windows xsd-1.1.0-i686-windows.zip $ rm hello.hxx $ ls xsd-1.1.0-i686-windows xsd-1.1.0-i686-windows.zip $ xsd-1.1.0-i686-windows/bin/xsd.exe cxx-tree xsd-1.1.0-i686-windows/examples/cxx/tree/hello/hello.xsd $ echo $? 0 $ ls hello.cxx hello.hxx xsd-1.1.0-i686-windows xsd-1.1.0-i686-windows.zip Can you also show me what is your environment by executing $ env thanks, -boris -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 652 bytes Desc: Digital signature Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20050825/99d8a866/attachment.pgp From arlo.borras at dryade.net Thu Aug 25 09:00:12 2005 From: arlo.borras at dryade.net (Arlo) Date: Sun Oct 11 15:33:40 2009 Subject: [xsd-users] Problem using cygwin bash shell In-Reply-To: <20050825123302.GA16038@karelia> References: <430C3E68.3030305@dryade.net> <20050824183716.GA14014@karelia> <430D668F.1060802@dryade.net> <20050825101052.GA15692@karelia> <430DA539.4070006@dryade.net> <20050825123302.GA16038@karelia> Message-ID: <430DC0DC.1070106@dryade.net> Hi Boris, I've done everything you've mentionned and... it works now !? I really don't know what could have happened with my first install. The only difference is that the first time i unzip xsd with WINRAR, but i just test it with WINWAR and it works too :-\ I really don't know what to say except thanks you for your time. I can now study furthermore generated code with a more complex XSD. Arlo Boris Kolpackov a ?crit : >$ cd /cygdrive/c > >$ mkdir tmp > >$ cd tmp > >$ pwd >/cygdrive/c/tmp > >$ # download xsd-1.1.0-i686-windows.zip > >$ ls >xsd-1.1.0-i686-windows.zip > >$ unzip xsd-1.1.0-i686-windows.zip > > ... all those inflating messages ... > >$ ls >xsd-1.1.0-i686-windows xsd-1.1.0-i686-windows.zip > >$ touch hello.hxx > >$ ls >hello.hxx xsd-1.1.0-i686-windows xsd-1.1.0-i686-windows.zip > >$ rm hello.hxx > >$ ls >xsd-1.1.0-i686-windows xsd-1.1.0-i686-windows.zip > >$ xsd-1.1.0-i686-windows/bin/xsd.exe cxx-tree xsd-1.1.0-i686-windows/examples/cxx/tree/hello/hello.xsd > >$ echo $? >0 > >$ ls >hello.cxx hello.hxx xsd-1.1.0-i686-windows xsd-1.1.0-i686-windows.zip > > >Can you also show me what is your environment by executing > >$ env > > >thanks, >-boris > > From boris at codesynthesis.com Thu Aug 25 09:25:00 2005 From: boris at codesynthesis.com (Boris Kolpackov) Date: Sun Oct 11 15:33:40 2009 Subject: [xsd-users] Problem using cygwin bash shell In-Reply-To: <430DC4D5.9030308@dryade.net> References: <430DC4D5.9030308@dryade.net> Message-ID: <20050825132500.GA16318@karelia> Arlo, Arlo writes: > Just 2 point. > 1- My previous post (it works now). I'm not sure you got it because i > have a lot of problem with my email client Yes, I got it ok. Glad it (kind of) works for you. > 2- The explanation of what happend first (whrn it don't works) > > It seems that nothens happends when XSD file is malformed. Just try to > add 2 white lines at the top of > xsd-1.1.0-i686-windows/examples/cxx/tree/hello/hello.xsd > > and try > xsd-1.1.0-i686-windows/bin/xsd.exe cxx-tree > xsd-1.1.0-i686-windows/examples/cxx/tree/hello/hello.xsd > > nothings happens Confirmed. If I do this on my gnu/linux box I get proper diagnostics. If I do it on windows I get nothing. I am going to look into it. Thanks for tracking this down! -boris -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 652 bytes Desc: Digital signature Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20050825/e4c8f4ee/attachment.pgp From boris at codesynthesis.com Thu Aug 25 11:35:12 2005 From: boris at codesynthesis.com (Boris Kolpackov) Date: Sun Oct 11 15:33:40 2009 Subject: [xsd-users] Problem using cygwin bash shell In-Reply-To: <20050825132500.GA16318@karelia> References: <430DC4D5.9030308@dryade.net> <20050825132500.GA16318@karelia> Message-ID: <20050825153512.GA18295@karelia> Arlo, > Confirmed. If I do this on my gnu/linux box I get proper diagnostics. > If I do it on windows I get nothing. I am going to look into it. Thanks > for tracking this down! I've tracked down and fixed this bug. I am going to release xsd-1.1.1 which will probably be available some time tomorrow. For the meantime, if you want, I can send you the binary. hth, -boris -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 652 bytes Desc: Digital signature Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20050825/f88a44f9/attachment.pgp From arlo.borras at dryade.net Fri Aug 26 02:58:20 2005 From: arlo.borras at dryade.net (Arlo) Date: Sun Oct 11 15:33:40 2009 Subject: [xsd-users] Problem using cygwin bash shell In-Reply-To: <20050825153512.GA18295@karelia> References: <430DC4D5.9030308@dryade.net> <20050825132500.GA16318@karelia> <20050825153512.GA18295@karelia> Message-ID: <430EBD8C.9080709@dryade.net> Hi Boris, Thank you for your reactivity. I'm indeed interested to get your next version as soon as available. It will be more pleasant to have precise message about what wrong in my XSD files. Arlo Boris Kolpackov a ?crit : >>Confirmed. If I do this on my gnu/linux box I get proper diagnostics. >>If I do it on windows I get nothing. I am going to look into it. Thanks >>for tracking this down! >> >> > >I've tracked down and fixed this bug. I am going to release xsd-1.1.1 >which will probably be available some time tomorrow. For the meantime, >if you want, I can send you the binary. > >hth, >-boris > > From boris at codesynthesis.com Fri Aug 26 04:57:09 2005 From: boris at codesynthesis.com (Boris Kolpackov) Date: Sun Oct 11 15:33:40 2009 Subject: [xsd-users] Problem using cygwin bash shell In-Reply-To: <430EBD8C.9080709@dryade.net> References: <430DC4D5.9030308@dryade.net> <20050825132500.GA16318@karelia> <20050825153512.GA18295@karelia> <430EBD8C.9080709@dryade.net> Message-ID: <20050826085709.GA27589@karelia> Arlo, Arlo writes: > Thank you for your reactivity. I'm indeed interested to get your next > version as soon as available. The new version is available from the usual place: http://codesynthesis.com/products/xsd/ Let me know if run into any problems. hth, -boris -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 652 bytes Desc: Digital signature Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20050826/e4afc037/attachment.pgp From boris at codesynthesis.com Fri Aug 26 06:34:53 2005 From: boris at codesynthesis.com (Boris Kolpackov) Date: Sun Oct 11 15:33:40 2009 Subject: [xsd-users] xsd 1.1.1 released Message-ID: <20050826103453.GB29011@karelia> Good day, We've released xsd 1.1.1. This is a maintenance release which means there are no significant user-visible changes. The NEWS file entries for this version are as follows: all backends * Bug fixes in the filesystem path handling logic. Precompiled binary distributions for various platforms are available from the product's web page: http://codesynthesis.com/products/xsd/ Source code for this release is available from the project's web page: http://codesynthesis.com/projects/xsd/ SHA1 checksums for the files: 0e8e618a6e6c07db03de0cc540f5221996e0adc1 xsd-1.1.1.tar.bz2 7db9b135c6305fed6338dbe00403cfdd05a6bf55 xsd_1.1.1-1_i386.deb ac52720174b0321d9d04198b00ebbdcf4d04c4d4 xsd-1.1.1-1.i686.rpm 6f38c5f174c5e51679e06e1626b875713f3e4daf xsd-1.1.1-i686-linux-gnu.tar.bz2 ef067c203904ee123df84d3d3411170a3aead7cf xsd_1.1.1-1_amd64.deb 6e723a93f9c205398f01ee2c92508b2165c00f0f xsd-1.1.1-1.x86_64.rpm 0e45ed3f243fcb4ec5919cc9bc35424f2c32c723 xsd-1.1.1-x86_64-linux-gnu.tar.bz2 9e5a22d972c566a4ebf1cf590cf1ba5250749be2 xsd-1.1.1-powerpc-macosx.tar.bz2 7b8716d752ae778a8154eb2fb7ee8352a1b4e6f6 xsd-1.1.1-i686-windows.zip Have fun! -boris -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 652 bytes Desc: Digital signature Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20050826/bb330ee9/attachment.pgp