Need the list of XML parsers
Hi, I am getting into serious Python programming for Electronic CAD tools, I am trying to find the best XML parser modules available. I need good searching capability for attributes, nodes and block of XML. I am looking for either a recommendation or previous forum links. Thanks Venu -- http://mail.python.org/mailman/listinfo/python-list
Re: Need the list of XML parsers
Hi Stefan Using cElementTree, would you be willing show to me how to find the nodes with certain attribute, ie search using attributes and attibute values. I did not see any example code from the cElementTree official website. Regards, Venu -- http://mail.python.org/mailman/listinfo/python-list
Re: Obtaining SMTP address of a sender and receiver of an outlook mail
Hi, I don't have access to the AD server because only the administrators here have those rights. Aren't there any MAPI Sender and Recipient object properties which satisfies my need? Thank you, Venu. On Thu, Dec 4, 2008 at 9:00 AM, BJ Swope <[EMAIL PROTECTED]> wrote: > If you have access to the AD server that hosts those DNs you can use > python's ldap module to retrieve the smtp attribute for the DN you've just > parsed from the message. > > On Wed, Dec 3, 2008 at 2:06 AM, [EMAIL PROTECTED] < > [EMAIL PROTECTED]> wrote: > >> Hi all, >> I am trying to use python for extracting contents of an outlook >> email. For extracting the list of Recipients addresses I tried using >> the "MAPI.message.Recipients.Address" property, but the problem I am >> facing is that it is giving the complete DN name which is putting me >> in further complications. Is there any way to obtain the actual SMTP >> mail address ([EMAIL PROTECTED]) from the above object? I searched >> for it in the MSDN help but couldn't succeed. >> >> Thanks in advance, >> Venu >> -- >> http://mail.python.org/mailman/listinfo/python-list >> > > -- http://mail.python.org/mailman/listinfo/python-list
Re: Problem in accessing files with unicode fonts.
On Tue, Feb 24, 2009 at 12:16 PM, Chris Rebert wrote:
> A. Your reason for emailing us off-list makes no sense. The list would
> garner you more and about as quick responses, not to mention the value
> it adds through public archiving. CC-ing us /might/ have made slight
> sense.
> B. This is your problem:
> v = unicode(full_path,errors='skip')
> I'd advise you to read the docs for `unicode`, particularly what using
> 'skip' as the value of `errors` does.
>
> Good day.
>
> - Chris
>
> --
> Follow the path of the Iguana...
> http://rebertia.com
>
>
> On Mon, Feb 23, 2009 at 10:31 PM, venu madhav
> wrote:
> > Hello,
> >Sorry for mailing to your personal mails instead of mailing to
> > the group. The reason being the intensity of the problem and time factor.
> >
> > Prob: I have a folder which contains files with unicode names ( Arabic,
> > German etc). I am trying to obtain the attributes of those files
> recursively
> > using win32api.getFileAttributes() function. Here is the code which i
> have
> > for the same:
> > --
> > #!/usr/bin/env python
> > import os
> > import os.path
> > import sys
> > import urllib
> > import win32api,string
> > def findFile(dir_path):
> > for name in os.listdir(dir_path):
> > full_path = os.path.join(dir_path, name)
> > print full_path
> > if os.path.isdir(full_path):
> > findFile(full_path)
> > else:
> > v = unicode(full_path,errors='skip')
> > i = win32api.GetFileAttributes(v)
> >
> > findFile("F:\\DataSet\\Unicode")
> > ---
> > Now when I run this scirpt, the full_path variable which should contain
> the
> > name of the file has "" for non english ( I tried Arabic) characters.
> As
> > a result the getfileattributes function is failing to recognise that file
> > and is raising an exception.
> > full_path: F:\DataSet\Unicode\Arabic
> files\Arabic??
> > {type is str}
> > v: F:\DataSet\Unicode\Arabic files\Arabic?? {type
> is
> > unicode}
> > TraceBack:
> > Traceback (most recent call last):
> > File "E:\venu\Testing Team\unitest.py", line 19, in
> > findFile("F:\\DataSet\\Unicode")
> > File "E:\venu\Testing Team\unitest.py", line 13, in findFile
> > findFile(full_path)
> > File "E:\venu\Testing Team\unitest.py", line 16, in findFile
> > i = win32api.GetFileAttributes(v)
> > error: (123, 'GetFileAttributes', 'The filename, directory name, or
> volume
> > label syntax is incorrect.')
> >
> > Waiting for your reply.
> > Thank you in advance.
> > Venu.
>
Hello,
As you've said I went through the documentation for unicode
function.It takes the file name as the first argument and then based on the
second (whether you skip, ignore or strict) does the action. Any of those
ways is not solving my problem. Since, using skip or ignore removes the
unicode characters from the file name, the win32 function is failing to find
that filename. I tried to change the default encoding to unicode in site.py
scirpt but didn't give any results.
Thank you,
Venu
--
http://mail.python.org/mailman/listinfo/python-list
Problem in identifying an archived file in Windows
Hello all, I am writing an application which has to identify the archived files in a given directory.I've tried using the function i = win32api.GetFileAttributes (full_path) to obtain the attributes.But am unable to identify based on the value it returns as it is returning 5152, 13856 etc for different files but all of them are archived. Is there any way to come to a conclusion using these numbers about whether a file is archived or not. Thanks in advance, Venu -- http://mail.python.org/mailman/listinfo/python-list
Re: Need the list of XML parsers
lxml is a great one, but it is not simple to install libxml and libxslt on Linux using user permissions. Also it is hard to package the scripts after the complete development for release. Did anybody try this, if so please let me know your thoughts on this. Thanks venu On Mon, Jan 17, 2011 at 11:48 AM, Sudheer Satyanarayana < [email protected]> wrote: > On Monday 17 January 2011 11:05 PM, Venu wrote: > >> Hi, >> >> I am getting into serious Python programming for Electronic CAD tools, >> I am trying to find the best XML parser modules available. I need good >> searching capability for attributes, nodes and block of XML. I am >> looking for either a recommendation or previous forum links. >> >> Thanks >> Venu >> > lxml is a good XML parser. It supports xpath and IIRC, xquery. > > I wrote a blog post about it a while ago - > http://techchorus.net/web-scraping-lxml > > > -- > With warm regards, > Sudheer. S > Personal home page - http://sudheer.net | Tech Chorus - > http://techchorus.net > Web and IT services - http://binaryvibes.co.in > -- Venu Allipuram 479-445-3502 -- http://mail.python.org/mailman/listinfo/python-list
Fwd: Installation Errors
Hi Python Support Team, I have subscribed now and re-sending my query. Please suggest. I have an Issue installing python 3.7 on my work computer. It says core.msi package not found during installation. Can you please help me with steps to resolve this issue? Thank you, Venu -- https://mail.python.org/mailman/listinfo/python-list
