XML Parsing Help

  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post May 7th, 2009, 5:19 pm

I don't want to always rely on MySQL for EVERYTHING. Every minor tid-bit configured by either 1 or 2, and sometimes 3.

I know how to create XML config files, and I know how to read them and extract a certain thing. What I need to know is the following:
  • How to read the attributes
  • How to change values and attributes
If anyone could lighten me on those and tell me... maybe point me to a good informative tutorial, I will be happy :D

Thanks.
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 7th, 2009, 5:19 pm

  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Joined: Jul 25, 2005
  • Posts: 2735
  • Loc: Nashville, TN
  • Status: Offline

Post May 7th, 2009, 6:44 pm

All my XML-config experience is in C# and perl, but I looked around for articles and this one seems particularly awesome.
I'd love to change the world, but they won't give me the source code.
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post May 7th, 2009, 6:49 pm

Alright, can I have a non-PEAR solution?
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6128
  • Loc: Seattle, WA
  • Status: Offline

Post May 8th, 2009, 12:30 pm

http://www.php.net/dom
The Beer Monocle. Classy.
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post May 8th, 2009, 1:43 pm

Thanks spork. I'll look into this.
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Joined: Jul 25, 2005
  • Posts: 2735
  • Loc: Nashville, TN
  • Status: Offline

Post May 8th, 2009, 1:49 pm

Just outta curiosity, why the disdain for pear?
I'd love to change the world, but they won't give me the source code.
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post May 8th, 2009, 1:54 pm

No real reason really... just don't want it for some reason :lol:

I might look into using PEAR one day though.
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Joined: Jul 25, 2005
  • Posts: 2735
  • Loc: Nashville, TN
  • Status: Offline

Post May 8th, 2009, 2:02 pm

ok, just wondering. Hands-on code is always nice for learning, but sooner or later (esp. working on large apps) you realize that libs like PEAR are great commodities to cut back on complexity w/out sacrificing reliability.

Back to the thread - are you looking for something like a tuto rather than a tool? i.e., do you want to code it all yourself?
I'd love to change the world, but they won't give me the source code.
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post May 8th, 2009, 2:40 pm

Yeah, I'd like to code this by myself as I'm trying to get more experience and knowledge in PHP
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Joined: Jul 25, 2005
  • Posts: 2735
  • Loc: Nashville, TN
  • Status: Offline

Post May 8th, 2009, 5:26 pm

Spork had a good recommendation for you then. Maybe a few more:

I haven't tried this particular article, but Kirupa (article here) has always been a favorite of mine in PHP and ActionScript.

There's another good (and seemingly detailed) example over here.
I'd love to change the world, but they won't give me the source code.

Post Information

  • Total Posts in this topic: 10 posts
  • Users browsing this forum: No registered users and 130 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.