Re: XML_Parser and php

From: Date: Wed, 20 Nov 2002 10:33:09 +0000
Subject: Re: XML_Parser and php
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10949@lists.php.net to get a copy of this message
On Wed, 2002-11-20 at 09:52, Pierre-Alain Joye wrote: > On 20 Nov 2002 09:54:59 +0100 > Robin Ericsson <lobbin@localhost.nu> wrote: > > Can you forward your mail on peardev mailing and/or post a bug report on > bugs.php.net (PEAR related). > My fault. Should have gone to pear in the first place :) These files should generate my problem (they are for me using php-cli 4.2.3) During the parse() moethod in XML_Parser, the array is extended as can be seen via print_r calls. But after the call, the array I just filled is empty. best regards Robin

Attachment: [application/x-php] dust.php.txt
<?xml version="1.0" encoding="ISO-8859-1"?> <Root_Element> <Header> <Identity IdentifyBy="DUNS">355166109</Identity> <EDI_Agreement_Key>PUB_CAT</EDI_Agreement_Key> <Sender>355166109</Sender> </Header> <ItemHeader Currency="SEK"/> <Items> <ItemDelete> <Partnumber>None_To_Delete</Partnumber> <Manuf_Partnumber/> </ItemDelete> <ItemAdd> <Partnumber>5010048275</Partnumber> <Description>#UMATES DIGITALKAMERAVÄSKA KAMPANJ</Description> <Price>295.00</Price> <PriceWithTax>368.75</PriceWithTax> <Leedtime>14</Leedtime> <Manuf_Partnumber>7-022</Manuf_Partnumber> <Manufacturer>UMATES</Manufacturer> <ProductGroup_1>KAMEROR &amp; VIDEO</ProductGroup_1> <ProductGroup_2>DIGITALKAMEROR</ProductGroup_2> <ProductGroup_3>VÄSKOR</ProductGroup_3> <UNSPSC>45121600</UNSPSC> <ProductURL>http://www.dustin.se/default.asp?ORIGIN=/shopping/ProductDetail.asp?PID=5010048275</ProductURL> <PicturePath>#/5010048275.jpg</PicturePath> <ManufacturerURL>http://www.umates.com</ManufacturerURL> <TerritoryAvailable>SE</TerritoryAvailable> <ProductFlags/> <Date_Pricechanged>2002-11-08 15:47:48</Date_Pricechanged> <Date_Created/> <InternalGroup>0</InternalGroup> <Barcode_1>5705965560969</Barcode_1> <Barcode_2></Barcode_2> <MeasureUnits> <Weight>0</Weight> <Depth>0</Depth> <Height/> <Width>0</Width> </MeasureUnits> </ItemAdd> <ItemAdd> <Partnumber>5010046197</Partnumber> <Description>.NET E-COMMERCE PROGRAMMING</Description> <Price>565.00</Price> <PriceWithTax>598.90</PriceWithTax> <Leedtime>14</Leedtime> <Manuf_Partnumber></Manuf_Partnumber> <Manufacturer>SYBEX</Manufacturer> <ProductGroup_1>LITTERATUR</ProductGroup_1> <ProductGroup_2>PROGRAMMERING</ProductGroup_2> <ProductGroup_3></ProductGroup_3> <UNSPSC>55101509</UNSPSC> <ProductURL>http://www.dustin.se/default.asp?ORIGIN=/shopping/ProductDetail.asp?PID=5010046197</ProductURL> <PicturePath>./5010046197.jpg</PicturePath> <ManufacturerURL></ManufacturerURL> <TerritoryAvailable>SE</TerritoryAvailable> <ProductFlags/> <Date_Pricechanged>00:00:00</Date_Pricechanged> <Date_Created/> <InternalGroup>0</InternalGroup> <Barcode_1>0782140564</Barcode_1> <Barcode_2></Barcode_2> <MeasureUnits> <Weight>0</Weight> <Depth>0</Depth> <Height/> <Width>0</Width> </MeasureUnits> </ItemAdd> <ItemAdd> <Partnumber>5010046198</Partnumber> <Description>.NET WIRELESS PROGRAMMING</Description> <Price>565.00</Price> <PriceWithTax>598.90</PriceWithTax> <Leedtime>14</Leedtime> <Manuf_Partnumber></Manuf_Partnumber> <Manufacturer>SYBEX</Manufacturer> <ProductGroup_1>LITTERATUR</ProductGroup_1> <ProductGroup_2>PROGRAMMERING</ProductGroup_2> <ProductGroup_3></ProductGroup_3> <UNSPSC>55101509</UNSPSC> <ProductURL>http://www.dustin.se/default.asp?ORIGIN=/shopping/ProductDetail.asp?PID=5010046198</ProductURL> <PicturePath>./5010046198.jpg</PicturePath> <ManufacturerURL></ManufacturerURL> <TerritoryAvailable>SE</TerritoryAvailable> <ProductFlags/> <Date_Pricechanged>00:00:00</Date_Pricechanged> <Date_Created/> <InternalGroup>0</InternalGroup> <Barcode_1>0782129757</Barcode_1> <Barcode_2></Barcode_2> <MeasureUnits> <Weight>0</Weight> <Depth>0</Depth> <Height/> <Width>0</Width> </MeasureUnits> </ItemAdd> </Items> </Root_Element>
« previous php.pear.dev (#10949) next »