RE: [PHP] Re: Need some ideas

2004-09-28 Thread Yoed Anis
Well, that is one approach.


>how about ignoring them? :)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Need some ideas

2004-09-28 Thread M. Sokolewicz
Yoed Anis wrote:
Hi guys,
OK I need some ideas.
	Somebody created the stupidest XML file I've ever seen. And of
course they can't change it, and I *must* be able to read it. I'm all out of
brain power on thinking how to go about reading it. I typically use
simplexml to read xml and that's where my knowledge end. 

Heres the problem:

 
  1
  USD
  123
 
 
  This is dumn
 
 
  No reall reall dumb
 
 
  1322
  USD
  123
 
 
  Sometimes one description, othertimes many
 
 and on and on 

As you can see there is no hierachy to a RateDescription, its not part of
Rate (nested in it) and many RateDescriptions can follow the same Rate.
However, as the eye can tell the RateDescption(s) apply to the Rate element
above. The problem is I can never know how many there are (if any) for a
Rate.
Any ideas how to go about doing this?
Thanks,
Yoed
how about ignoring them? :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php