About Author

Justin Wendlandt
Justin Wendlandt
I work for Wells Fargo, play a lot of video games, and program in many languages. [ more ] E-mail me Send mail

View Justin Wendlandt's profile on LinkedIn

Calendar

<<  July 2008  >>
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar

Recent Posts

Recent Comments

Comment RSS

Stock Quotes

WFC 23.92 +0.33 (+1.40%)
MSFT 25.98 +0.10 (+0.39%)
NVDA 12.49 -5.54 (-30.73%)
HAS 34.89 +0.41 (+1.19%)

XboxGamerCard

Jwendl
Jwendl
Gamer Score: 4725
Guitar Hero II (140) Rock Band (270) GTA IV (90) DYNASTY WARRIORS 6 (340) CSI-Hard Evidence (0) Culdcept SAGA (45) Overlord (420) Assassin's Creed (490) DEAD RISING (440) Halo 3 (535) Oblivion (390) Blue Dragon (25) Eternal Sonata (30) Tony Hawk's Project 8 (135) Gears of War (470) Crackdown (405)
Offline
2008-07-03T01:23:22-05:00
Last seen 07/03/08

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

Creative Commons License

Header Photo

wxPython and XML creates some interesting concepts

January 8, 2008 01:00 by jwendl

While working on a school project using wxPython and XML I was intrigued by the way that Python wants you to handle XML. You have three options, 1) expat, 2) SAX or 3) DOM. All three methods happen to be very disgusting to implement. I decided that it would be worth time spent to find a good way to convert XML to an extensible object structure. I actually found that method at this URL http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/149368. The best part of this snippet is that you can call an elements name, get their child, get the name of the child, get an attribute all really fast (because the author used expat).  


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading