From LISTSERV at LISTSERV.AOL.COM Wed Nov 1 23:09:18 2006 From: LISTSERV at LISTSERV.AOL.COM (LISTSERV at LISTSERV.AOL.COM) Date: Wed, 1 Nov 2006 17:09:18 -0500 Subject: [XML-SIG] Message ("Your message dated Wed, 1 Nov 2006 17:11:13 -0500...") Message-ID: Your message dated Wed, 1 Nov 2006 17:11:13 -0500 with subject "Returned mail: Data format error" has been submitted to the moderator of the CSICOP-ANNOUNCE list: Barry Karr . From ywtiek at brickvn.com Sat Nov 4 00:20:27 2006 From: ywtiek at brickvn.com (Maximilian Friedman) Date: Sat, 4 Nov 2006 00:20:27 +0100 Subject: [XML-SIG] unequal furtively Message-ID: An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/xml-sig/attachments/20061104/dc271e81/attachment.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: ghost.gif Type: image/gif Size: 8829 bytes Desc: not available Url : http://mail.python.org/pipermail/xml-sig/attachments/20061104/dc271e81/attachment.gif From info at alicewbakker.nl Sat Nov 4 16:33:11 2006 From: info at alicewbakker.nl (alicewbakker) Date: Sat, 4 Nov 2006 16:33:11 +0100 Subject: [XML-SIG] install problems Message-ID: <3838df16d107ded211204f4d44fcf2c3@alicewbakker.nl> Dear python, I've downloaded PyXML-0.8.4 to use with Inkscape (I followed the instructions in this program) , in order to save a drawing in DXF. I tried to install PyXML-0.8.4 on my computer, but I didn't succeed. I don't have acces to the install assistant, or so. I'm working with MacOs10.3.( panther). How should the installation be done? Thanks, A. Bakker From margie.levine at amd.com Wed Nov 15 20:44:49 2006 From: margie.levine at amd.com (Margie Levine) Date: Wed, 15 Nov 2006 11:44:49 -0800 Subject: [XML-SIG] how to check "grammar" of xml using a schema or DTD with elementtree Message-ID: <833854FC7D53F34593601F4E50BB12806B6668@sanusexch1.atitech.com> I'm new to XML parsing and am using elementtree to parse a very simple xml file that is similar to the one below: Basically I am just trying to parse out the values and do something with them in my program. I'd like to define what the "correct" syntax for this file is and have it checked automatically. For example, in this simple example I'd like to check that only a single type of subelement is allowed under , namely And that a only a single type of sublement is allowed under , namely . Further, I'd like to check that can have the attributes 'name' and 'number', but no others. Etc, etc. Right now I am using elementtree to check this within my program. IE, I traverse the tree and make sure the xml meets the specifications. Based on my reading, it seems that I can use a DTD or scheme to define the "grammar" of my xml, but I can't figure out how to actually set this up. It seems like I should just be able to specify my DTD or Schema and then call ElementTree's parse method and Elementtre should just give me errors if the xml doesn't conform to the rules. Maybe Elementtree just doesn't support this? I see some doc that says lxml supports schema's, will lxml do this for me? What are other folks doing to deal with this? It seems like such an obvious need, yet when I google I don't find anything pointing me to a simple solution. Thanks! Margie -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/xml-sig/attachments/20061115/1d7bc4bb/attachment.html From fredrik at pythonware.com Thu Nov 16 15:58:48 2006 From: fredrik at pythonware.com (Fredrik Lundh) Date: Thu, 16 Nov 2006 15:58:48 +0100 Subject: [XML-SIG] how to check "grammar" of xml using a schema or DTD withelementtree References: <833854FC7D53F34593601F4E50BB12806B6668@sanusexch1.atitech.com> Message-ID: Margie Levine wrote: > Right now I am using elementtree to check this within my program. IE, I > traverse the tree and make sure the xml meets the specifications. Based > on my reading, it seems that I can use a DTD or scheme to define the > "grammar" of my xml, but I can't figure out how to actually set this up. > It seems like I should just be able to specify my DTD or Schema and then > call ElementTree's parse method and Elementtre should just give me > errors if the xml doesn't conform to the rules. Maybe Elementtree just > doesn't support this? I see some doc that says lxml supports schema's, > will lxml do this for me? basic ET only does well-formedness checks; lxml comes with validation support for DTD:s, schemas, and Relax NG. > What are other folks doing to deal with this? well, I'm using separate validations tools as part of the test suite, and I'm then assuming that my code doesn't actually mess itself up when running... From Drod421 at aol.com Thu Nov 16 17:45:17 2006 From: Drod421 at aol.com (Drod421 at aol.com) Date: Thu, 16 Nov 2006 11:45:17 EST Subject: [XML-SIG] Buy Vicodin online today, overnight shipping xyiz kccg v Message-ID: Dear Sirs can you tell me how i can buy vicodin on line i have thyed to in the past i have gout in my joints . need this for my pain can you pleaqse help Mr Darnell Rodriguez -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/xml-sig/attachments/20061116/82925749/attachment.htm From margie.levine at amd.com Thu Nov 16 22:33:46 2006 From: margie.levine at amd.com (Margie Levine) Date: Thu, 16 Nov 2006 13:33:46 -0800 Subject: [XML-SIG] how to check "grammar" of xml using a schema or DTD withelementtree Message-ID: <833854FC7D53F34593601F4E50BB12806B6681@sanusexch1.atitech.com> Thanks for your response. Are the validations tools you use freely available or are these things that you've written? A separate validation tool would also work fine for me. Margie -----Original Message----- From: xml-sig-bounces at python.org [mailto:xml-sig-bounces at python.org] On Behalf Of Fredrik Lundh Sent: Thursday, November 16, 2006 6:59 AM To: xml-sig at python.org Subject: Re: [XML-SIG] how to check "grammar" of xml using a schema or DTD withelementtree Margie Levine wrote: > Right now I am using elementtree to check this within my program. IE, I > traverse the tree and make sure the xml meets the specifications. Based > on my reading, it seems that I can use a DTD or scheme to define the > "grammar" of my xml, but I can't figure out how to actually set this up. > It seems like I should just be able to specify my DTD or Schema and then > call ElementTree's parse method and Elementtre should just give me > errors if the xml doesn't conform to the rules. Maybe Elementtree just > doesn't support this? I see some doc that says lxml supports schema's, > will lxml do this for me? basic ET only does well-formedness checks; lxml comes with validation support for DTD:s, schemas, and Relax NG. > What are other folks doing to deal with this? well, I'm using separate validations tools as part of the test suite, and I'm then assuming that my code doesn't actually mess itself up when running... _______________________________________________ XML-SIG maillist - XML-SIG at python.org http://mail.python.org/mailman/listinfo/xml-sig From noreply at sourceforge.net Fri Nov 17 17:16:29 2006 From: noreply at sourceforge.net (SourceForge.net) Date: Fri, 17 Nov 2006 08:16:29 -0800 Subject: [XML-SIG] [ pyxml-Bugs-1598441 ] Fails to print ampersand Message-ID: Bugs item #1598441, was opened at 2006-11-17 17:16 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=106473&aid=1598441&group_id=6473 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Daniel Aarno (macbishop) Assigned to: Nobody/Anonymous (nobody) Summary: Fails to print ampersand Initial Comment: I can't figure out how to print a ampersand in a text node. This is probably not a bug but a feature but it has been giving me a headeach. ### BEGIN CODE ### Running the following program: from xml.dom.minidom import * from xml.dom.ext import * doc = Document() n = doc.createElement("aroot") tn = doc.createTextNode(" ") n.appendChild(tn) doc.appendChild(n) PrettyPrint(doc) ### END CODE ### I want the output to be   but the actual output is: &nbsp; i.e. the & has been replaced by & which is not what I want. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=106473&aid=1598441&group_id=6473 From ct at gocept.com Mon Nov 27 11:23:25 2006 From: ct at gocept.com (Christian Theune) Date: Mon, 27 Nov 2006 11:23:25 +0100 Subject: [XML-SIG] Include tarballs in pypi Message-ID: <456ABC9D.5040005@gocept.com> Hi, currently the PyXML-packages are only available through sf download. Is there any chance to include direct download links in pypi? Otherwise PyXML is not available for easy_install consumption. Thanks in advance, Christian PS: I'd be willing to help if there are any problems with resouces, labour, whatever to get this done. -- gocept gmbh & co. kg - forsterstra?e 29 - 06112 halle/saale - germany www.gocept.com - ct at gocept.com - phone +49 345 122 9889 7 - fax +49 345 122 9889 1 - zope and plone consulting and development -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 252 bytes Desc: OpenPGP digital signature Url : http://mail.python.org/pipermail/xml-sig/attachments/20061127/92d6edcb/attachment.pgp From szybalski at gmail.com Tue Nov 28 04:59:03 2006 From: szybalski at gmail.com (Lukasz Szybalski) Date: Mon, 27 Nov 2006 21:59:03 -0600 Subject: [XML-SIG] [howto]create and add element in minidom In-Reply-To: <456ABC9D.5040005@gocept.com> References: <456ABC9D.5040005@gocept.com> Message-ID: <456BB407.1050506@gmail.com> http://www.lucasmanual.com/mywiki/ Would you know of similar easy howto for using xpath(element reference), and another one for traversing xml docs? thx Lucas Create and add elements from xml.dom.minidom import parseString * creating new document, and root element at the same time. doc = parseString(u''.encode('UTF-8')) * print doc.toprettyxml() will show you how it looks * this would create: * Now we reference to our element by: top_element=doc.documentElement * We create another element by: element1=doc.createElementNS(None,u'section1') * Add it under our top element by: top_element.appendChild(element1) * Create another element and add it under element1 element1.appendChild(doc.createElementNS(None,u'subsection1')) * How to create a text node: text1=doc.createTextNode(u'My first text') * Since we have no reference to subsection1. We start at reference to element1 element1.firstChild.appendChild(text1) * add second subelement: element1.appendChild(doc.createElementNS(None,u'subsection2')) * create next text element, and add it to subsection2 text2=doc.createTextNode(u'My second text') element1.lastChild.appendChild(text2) * We are working with references. To switch text in subsections, you could do: element1.firstChild.appendChild(text2) element1.lastChild.appendChild(text1) From bortzmeyer at nic.fr Tue Nov 28 17:16:52 2006 From: bortzmeyer at nic.fr (Stephane Bortzmeyer) Date: Tue, 28 Nov 2006 17:16:52 +0100 Subject: [XML-SIG] how to check "grammar" of xml using a schema or DTD withelementtree In-Reply-To: <833854FC7D53F34593601F4E50BB12806B6681@sanusexch1.atitech.com> References: <833854FC7D53F34593601F4E50BB12806B6681@sanusexch1.atitech.com> Message-ID: <20061128161652.GA16321@nic.fr> On Thu, Nov 16, 2006 at 01:33:46PM -0800, Margie Levine wrote a message of 54 lines which said: > Are the validations tools you use freely available or are these > things that you've written? To validate against Relax NG schemas, there are at least two free programs (the implementation of RelaxNG in 4suite is very limited, I suggest not using it): http://www.davidashen.net/rnv.html xmllint in http://xmlsoft.org/ From andre.saroli at cea.fr Thu Nov 30 17:01:36 2006 From: andre.saroli at cea.fr (=?iso-8859-1?Q?SAROLI_Andre_Int=E9rimaire?=) Date: Thu, 30 Nov 2006 17:01:36 +0100 Subject: [XML-SIG] Installation of XML package v0.8.3 Message-ID: <6AF7979EE40736408C94E7D414EBD62802434F6A@THEZE.intra.cea.fr> Hello, I want to install the XML package v0.8.3 on my station. I want to install it in an other directory of the previous python folder. In the setup.py -help-commands I have not found the command which allow to change the installation folder, like for some other scripts I make "-prefix=/home/toto". Thanks for help Andr? Saroli ----------------------------------------------------------------------------------------- Andr? SAROLI CEA Cadarache DEC/SESC/LSC (B?t 151) 13108 SAINT PAUL LEZ DURANCE tel : 04 42 25 70 00 poste 51 44 ----------------------------------------------------------------------------------------- Les informations contenues dans ce message ?lectronique peuvent ?tre de nature confidentielle et soumises ? une obligation de secret. Elles sont destin?es ? l'usage exclusif du r?el destinataire. Si vous n'?tes pas le r?el destinataire ou si vous recevez ce message par erreur, merci de nous le notifier imm?diatement en le retournant ? l'adresse de son ?metteur. The information contained in this e-mail may be privileged and confidential. It is intended for the exclusive use of the designated recipients named above. If you are not the intended recipient or if you receive this e-mail in error, please notify us immediatly and return the original message at the address of the sender. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/xml-sig/attachments/20061130/07f5ff96/attachment.htm From mike at skew.org Thu Nov 30 18:52:08 2006 From: mike at skew.org (Mike Brown) Date: Thu, 30 Nov 2006 10:52:08 -0700 (MST) Subject: [XML-SIG] Installation of XML package v0.8.3 In-Reply-To: <6AF7979EE40736408C94E7D414EBD62802434F6A@THEZE.intra.cea.fr> Message-ID: <200611301752.kAUHq8NB090193@chilled.skew.org> SAROLI Andre Int?imaire wrote: > I want to install the XML package v0.8.3 on my station. I want to install it in an other directory of the previous python folder. > > In the setup.py -help-commands I have not found the command which allow to change the installation folder, like for some other scripts I make "-prefix=/home/toto". It should install relative to the python interpret you use to run setup.py. For example, instead of 'setup.py install', do '/path/to/your/python setup.py install' Is that sufficient? Also, why 0.8.3 and not 0.8.4?