Re: [xml] Tool to help fill in structures from XML

2007-01-24 Thread Boris Kolpackov
Hi David, David Hagood [EMAIL PROTECTED] writes: Does anybody know of a good tool which takes the drudgery out of reading XML into structures? Taking a risk of being blasted for promoting something else on this list ;-), I can recommend CodeSynthesis XSD[1]. While it doesn't do things exactly

Re: [xml] Tool to help fill in structures from XML

2007-01-24 Thread Pete Cordell
Hi David, Does anybody know of a good tool which takes the drudgery out of reading XML into structures? FYI - We have a tool that takes an XML Schema, and generates C++ classes with all the marshalling and unmarshalling machinery. For more info, see: http://www.tech-know-ware.com/lmx

[xml] Correct behaviour of RelaxNG interleave

2007-01-24 Thread Pavol Rusnak
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi! I would like to ask, what is the correct behaviour of RelaxNG interleave? Suppose we have the following example: blueA = element blueA { empty } blueB = element blueB { empty } redA = element redA { empty } redB = element redB { empty } blue =

Re: [xml] Correct behaviour of RelaxNG interleave

2007-01-24 Thread Bjoern Hoehrmann
* Pavol Rusnak wrote: I would like to ask, what is the correct behaviour of RelaxNG interleave? Suppose we have the following example: The specification http://relaxng.org/spec-20011203.html#IDA2Z0R or http://books.xmlschemata.org/relaxng/relax-CHP-6-SECT-7.html should answer this. It seems you

Re: [xml] Correct behaviour of RelaxNG interleave

2007-01-24 Thread Daniel Veillard
On Wed, Jan 24, 2007 at 02:57:50PM +0100, Pavol Rusnak wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi! I would like to ask, what is the correct behaviour of RelaxNG interleave? Suppose we have the following example: blueA = element blueA { empty } blueB = element blueB { empty

Re: [xml] Correct behaviour of RelaxNG interleave

2007-01-24 Thread Bjoern Hoehrmann
* Bjoern Hoehrmann wrote: Your test case somewhat simplified: a = element a { empty } b = element b { empty } c = element c { empty } d = element d { empty } e = a b f = c d start = element root { e f } As Daniel asked, this would be grammar

Re: [xml] Correct behaviour of RelaxNG interleave

2007-01-24 Thread Bjoern Hoehrmann
* Pavol Rusnak wrote: They found out that Jing and xmllint behave differently in this test case. Will you file the report or I should do it ? Please do. -- Björn Höhrmann · mailto:[EMAIL PROTECTED] · http://bjoern.hoehrmann.de Weinh. Str. 22 · Telefon: +49(0)621/4309674 ·

Re: [xml] Correct behaviour of RelaxNG interleave

2007-01-24 Thread Pavol Rusnak
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bjoern Hoehrmann wrote: * Pavol Rusnak wrote: They found out that Jing and xmllint behave differently in this test case. Will you file the report or I should do it ? Please do. Filed as libxml2 bug:

Re: [xml] Correct behaviour of RelaxNG interleave

2007-01-24 Thread Daniel Veillard
On Wed, Jan 24, 2007 at 03:30:07PM +0100, Bjoern Hoehrmann wrote: * Bjoern Hoehrmann wrote: Your test case somewhat simplified: a = element a { empty } b = element b { empty } c = element c { empty } d = element d { empty } e = a b f = c d start = element root {

[xml] tool to convert SQL result into xml

2007-01-24 Thread Steve Yan
Hi, I am looking for such a tool which convert the results from a SQL select into XML format. For example: select name, email, phone from MY_TABLE; the XML will be something like: Result name.../name emailCDATA[[ ...]]/email phone1/phone /Result Result name.../name

Re: [xml] tool to convert SQL result into xml

2007-01-24 Thread Aron Stansvik
2007/1/24, Steve Yan [EMAIL PROTECTED]: Hi, I am looking for such a tool which convert the results from a SQL select into XML format. This is completely off-topic for this mailing list. Please ask on SQLite mailing list instead. Regards, Aron ___

[xml] schema validation

2007-01-24 Thread isil light
Greetings - I'm very new to the library so please be patient :) I seem to have hit a wall with schema validation: xmlDocPtr doc; xmlSchemaValidCtxtPtr xsd; doc = xmlParseFile ( argv[1] ); ret = xmlSchemaValidateDoc ( xsd, doc ); I get back a 20 from xmlSchemaValidateDoc regardless if the xml

Re: [xml] schema validation

2007-01-24 Thread Yong Chen (yongche)
I have been using this api and have not had this problem. You may want to show your code. Yong Chen From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of isil light Sent: Wednesday, January 24, 2007 1:18 PM To: xml@gnome.org

Re: [xml] schema validation

2007-01-24 Thread Yong Chen (yongche)
Your code is ok, here my running result: # schema x.xml x.xsd Document validation completed: [x.xml][0] I'm using 2.6.26. -Original Message- From: isil light [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 24, 2007 1:29 PM To: Yong Chen (yongche) Subject: RE: [xml] schema