Why don't you use this class...it's really good!
http://sourceforge.net/projects/phpxpath/
Analysis Solutions [EMAIL PROTECTED] schrieb im
Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hey Christopher:
On Mon, Apr 08, 2002 at 09:14:08PM -0400, Christopher J. Crane wrote:
ok I
ok I tried this code and the array is still empty.
By the way, my code looked the way it did because the browser or my mail
client cut it off. I had each of the functions on one line for easy reading
but because of the wrap I changed it to how you had it, which is how I would
normally do it if
-
From: Christopher J. Crane [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 7:21 AM
To: Crane, Christopher
Subject: Fw: [PHP] XML HELP
- Original Message -
From: Analysis Solutions [EMAIL PROTECTED]
Newsgroups: php.general
To: PHP List [EMAIL PROTECTED]
Sent: Monday, April 08, 2002
Christopher:
On Tue, Apr 09, 2002 at 09:25:07AM -0400, Crane, Christopher wrote:
The problem is now back to the beginning, I can not get the $Line value,
which is the data I want to be pushed into an array. I did not get an error
with the code below, but I did not get any information when
I am new to using XML and PHP for that matter. I have made some great
progress with the latter however.
My current problem is that I am trying to parse a relatively simple XML
file. The file can be found at
http://quotes.nasdaq.com/quote.dll?page=xmlmode=stocksymbol=ikn. I used
pieces of a sample
On Mon, Apr 08, 2002 at 06:32:42PM -0400, Christopher J. Crane wrote:
$file =
http://quotes.nasdaq.com/quote.dll?page=xmlmode=stocksymbol=$sym;;
... snip ...
while ($data = fread($fp, 4096)) {
if (!xml_parse($xml_parser, $data, feof($fp))) {
... snip ...
You've got a whole series of
ok I tried this at your suggestion
$sym=ikn;
$file =
http://quotes.nasdaq.com/quote.dll?page=xmlmode=stocksymbol=$sym;;
$StockStuff = array();
function startElement($parser, $name, $attribs) {
print lt;font color=\#cc\$name/font;
if (sizeof($attribs)) {
while (list($k,
Hey Christopher:
On Mon, Apr 08, 2002 at 09:14:08PM -0400, Christopher J. Crane wrote:
ok I tried this at your suggestion
Not exactly. As mentioned, you've got all sorts of unneded stuff going
on. To make sure you're on the right track, start with a new script
with just the basics:
8 matches
Mail list logo