XML validationg against XSD file in Python

2006-06-28 Thread colincolehour
I have tried searching for tips or tutorials on validating an XML file against and XSD file in python but I haven't had any luck. Can someone point me in the right direction to how this would be achieved. I've read that Python has built in libraries for DTD validation but nothing about XSD. Thanks

Re: Need Help comparing dates

2006-06-19 Thread colincolehour
The program works great! It does everything I wanted it to do and now I'm already thinking about ways of making it more useful like emailing me the results of my program. Thanks everyone for the help and advice. Colin Tim Chase wrote: > > I kept getting a Python error for the following line: > >

Re: Need Help comparing dates

2006-06-19 Thread colincolehour
I kept getting a Python error for the following line: month = m[webMonth] I changed it to month = month_numbers[webMonth] and that did the trick. Tim Chase wrote: > > I am new to Python and am working on my first program. I am trying to > > compare a date I found on a website to todays date.

Re: Need Help comparing dates

2006-06-16 Thread colincolehour
Thanks for the reply, the book I'm actually using is Python Programming for the absolute beginner. The book has been good to pick up basic things but it doesn't cover time or dates as far as I can tell. As for previous programming experience, I have had some lite introductions to C & C++ about 6 ye

Re: Need Help comparing dates

2006-06-16 Thread colincolehour
So when I grab the date of the website, that date is actually a string? How would I got about converting that to a date? -- http://mail.python.org/mailman/listinfo/python-list

Need Help comparing dates

2006-06-15 Thread colincolehour
I am new to Python and am working on my first program. I am trying to compare a date I found on a website to todays date. The problem I have is the website only shows 3 letter month name and the date. Example: Jun 15 How would I go about comparing that to a different date? The purpose of my progra