XML Parsing Help

  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

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.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Posts: 2733
  • Loc: Nashville, TN

Post 3+ Months Ago

All my XML-config experience is in C# and perl, but I looked around for articles and this one seems particularly awesome.
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

Alright, can I have a non-PEAR solution?
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6250
  • Loc: Seattle, WA

Post 3+ Months Ago

http://www.php.net/dom
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

Thanks spork. I'll look into this.
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Posts: 2733
  • Loc: Nashville, TN

Post 3+ Months Ago

Just outta curiosity, why the disdain for pear?
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

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

I might look into using PEAR one day though.
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Posts: 2733
  • Loc: Nashville, TN

Post 3+ Months Ago

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?
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

Yeah, I'd like to code this by myself as I'm trying to get more experience and knowledge in PHP
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Posts: 2733
  • Loc: Nashville, TN

Post 3+ Months Ago

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.

Post Information

  • Total Posts in this topic: 10 posts
  • Users browsing this forum: No registered users and 99 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.