RE: [PHP] XML parsing with PHP

2009-10-22 Thread Jay Blanchard
[snip] I need to transform some XML files and have not really done much XSLT. I am looking for recommendations on ways to parse XML via PHP. The XML files I have contain the content from our website CMS. We are switching from a proprietary CMS to Drupal and I need to transform the XML int

Re: [PHP] xml parsing

2007-03-12 Thread Myron Turner
Richard Lynch wrote: I don't think that's valid XML, because you are mixing your content with your XML tags in a way that will confuse the two... If you can FIX the XML by using the CDATA stuff, or htmlentities encoding the HTML or something, that would be best. If you are STUCK with this bogus

Re: [PHP] xml parsing

2007-03-12 Thread Richard Lynch
I don't think that's valid XML, because you are mixing your content with your XML tags in a way that will confuse the two... If you can FIX the XML by using the CDATA stuff, or htmlentities encoding the HTML or something, that would be best. If you are STUCK with this bogus XML, you could probabl

Re: [PHP] xml parsing

2007-03-11 Thread Robert Cummings
On Mon, 2007-03-12 at 01:38 +0100, Marije van Deventer wrote: > I have been trying to parse this xml, and want to use it with > childnodes and , but sofar due to the and > and elements no luck. How can i do this in a simple > way ??? You're having trouble because the person who set the content

Re: [PHP] XML Parsing simpleXML Arrays Question

2007-01-14 Thread Jim Lucas
Richard Luckhurst wrote: Hi List I have taken the advice of a number of people on the list and am back trying to write my XML parser using SimpleXML. I am having a problem and I believe the problem is my lack of understanding of arrays and simpleXML in spite of much google searching and manual r

Re: [PHP] XML Parsing, starting out.

2006-04-29 Thread Gonzalo Monzón
[EMAIL PROTECTED] escribió: Hello, 1st msg here so im excited what results i will get :) Im a novice with php parsing and have been able to help myself quite well with what ive needed with xml_parse_into_struct and then echoing the fixed variable names but now im dealing with an xml document

Re: [PHP] XML Parsing, starting out.

2006-04-29 Thread Ólafur Waage
Mattias Thorslund wrote: [EMAIL PROTECTED] wrote: Hello, 1st msg here so im excited what results i will get :) Im a novice with php parsing and have been able to help myself quite well with what ive needed with xml_parse_into_struct and then echoing the fixed variable names but now im dea

Re: [PHP] XML Parsing, starting out.

2006-04-29 Thread Mattias Thorslund
[EMAIL PROTECTED] wrote: > Hello, 1st msg here so im excited what results i will get :) > > Im a novice with php parsing and have been able to help myself quite well > with what ive needed with xml_parse_into_struct and then echoing the fixed > variable names but now im dealing with an xml docume

Re: [PHP] XML Parsing, starting out.

2006-04-29 Thread Richard Lynch
On Sat, April 29, 2006 11:19 am, [EMAIL PROTECTED] wrote: > Im a novice with php parsing and have been able to help myself quite > well with what ive needed with xml_parse_into_struct and then echoing In an ideal world, you would examine other XML parsing options, such as the PEAR library. If, li

Re: [PHP] XML parsing

2006-02-09 Thread Kim Christensen
On 2/9/06, Peter Lauri <[EMAIL PROTECTED]> wrote: > And the opposite way, creating XML, must be even easier. Any function that > take an array as input, and returns XML? If not, I just need to create a > recursive function that loops thru the array. If there is a standard function > I would be v

Re: [PHP] XML parsing

2006-02-09 Thread Barry
Peter Lauri wrote: Stupid me :) It has all I need!!! And the opposite way, creating XML, must be even easier. Any function that take an array as input, and returns XML? If not, I just need to create a recursive function that loops thru the array. If there is a standard function I would be ver

Re: [PHP] XML parsing

2006-02-09 Thread Peter Lauri
I am getting killed by the strong Thai woman that is giving me massage here in Bangkok. Tnx -Original Message- From: "Kim Christensen"<[EMAIL PROTECTED]> Sent: 9/02/06 6:13:48 PM To: "Peter Lauri"<[EMAIL PROTECTED]> Cc: "PHP Gene

Re: [PHP] XML parsing

2006-02-09 Thread Kim Christensen
On 2/9/06, Peter Lauri <[EMAIL PROTECTED]> wrote: > Or maybe an function that create an array from the XML: > $arr = xml_to_array($xml); > Any one who can give a really SIMPLE example of this? http://php.net/xml Have you checked the user comments? -- Kim Christensen [EMAIL PROTECTED] -- PHP Gen

RE: [PHP] XML Parsing

2004-04-01 Thread Nunners
Is there a way of doing this without installing PEAR? I.e. a decent PHP Class? -Original Message- From: electroteque [mailto:[EMAIL PROTECTED] Sent: 01 April 2004 13:52 To: Nunners; [EMAIL PROTECTED] Subject: RE: [PHP] XML Parsing I found the XML_Tree class really easy to use, highly

RE: [PHP] XML Parsing

2004-04-01 Thread electroteque
I found the XML_Tree class really easy to use, highly recommend it. > -Original Message- > From: Nunners [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 01, 2004 10:40 PM > To: [EMAIL PROTECTED] > Subject: [PHP] XML Parsing > > > Hi Folks, > I've got an XML output from a website > (http:

Re: [PHP] XML Parsing....

2003-11-21 Thread Evan Nemerson
On Thursday 20 November 2003 08:18 am, Scott Fletcher wrote: > Hi Everyone! > > I'm having a little trouble understanding how exactly to use the XML > parser. I haven't found the right settings to set up the XML Parser's > option because of no definition of the encoding setting in the XML tags

RE: [PHP] XMl Parsing within PHP

2003-08-14 Thread Donald Tyler
Its $this->startElement(). That was a typo. I typed the error message instead of copying and pasting it. Sorry. -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 1:26 PM To: Donald Tyler; [EMAIL PROTECTED] Subject: RE: [PHP] XMl Pars

RE: [PHP] XMl Parsing within PHP

2003-08-14 Thread Jay Blanchard
[snip] xml_set_element_handler($this->xml_parser, '$this->startElement', "$this->endElement"); xml_set_character_data_handler($this->xml_parser, "$this->valueHandler"); I get an error message: Warning: xml_parse(): Unable to call handler $thiss->startElement() in c:\program files\apache group\php

Re: [PHP] XML Parsing

2003-07-17 Thread Tyler Lane
On Thu, 2003-07-17 at 10:03, Doug La Farge wrote: Hello, I'm new to PHP but have been coding in Perl for over six years. I've had a steep learning curve in the last few days. My task has been to use fsockopen to pull in an XML stream, parse that XML stream, and package up that data int

Re: [PHP] xml parsing

2002-10-17 Thread Geoff Hankerson
Change xml into a different type of xml sounds like a job for the xslt functions. Works like a charm Michael Ransburg wrote: >Hi! > >I understand that it's easily possible to parse xml documents with php. >But what about changing them? With other xml parsers, I have the xml >document in a struc

Re: [PHP] xml parsing

2002-05-20 Thread Analysis & Solutions
Hi: To be honest, I don't feel like wading through their example to figure out what's wrong. The way they're parsing doesn't seem very efficient to me. Check this tutorial/example out: http://www.analysisandsolutions.com/code/phpxml.htm Way cleaner and straight ahead. Enjoy, --Dan --

Re: [PHP] XML Parsing Problem

2002-01-03 Thread Ben Gollmer
our can be very useful. > > Matt. > > > -Original Message- > From: Ben Gollmer [mailto:[EMAIL PROTECTED]] > Sent: 02 January 2002 23:16 > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] XML Parsing Problem > > > Ok, I can understand the

RE: [PHP] XML Parsing Problem

2002-01-02 Thread Matthew Clark
. -Original Message- From: Ben Gollmer [mailto:[EMAIL PROTECTED]] Sent: 02 January 2002 23:16 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] XML Parsing Problem Ok, I can understand the predefined entity replacement. But why does it break the string up into 3 parts? I think it

Re: [PHP] XML Parsing Problem

2002-01-02 Thread Ben Gollmer
Ok, I can understand the predefined entity replacement. But why does it break the string up into 3 parts? I think it should just return "Follow-up To Critique of BeOS & Mac OS X". Ben On Wednesday, January 2, 2002, at 02:05 PM, Matthew Clark wrote: > Hi there, > > This is not a bug.. this is

RE: [PHP] XML Parsing Problem

2002-01-02 Thread Matthew Clark
Hi there, This is not a bug.. this is expected behaviour. The string would be chopped up into 3 parts because you have : 1. a string: "Follow-up To Critique of BeOS " 2. a predefined entity : "&" 3. a string: "amp; Mac OS X" There are not actually two ampersands.. you have & followed by amp; -

Re: [PHP] XML Parsing

2001-04-30 Thread Fabian Raygosa
http://www.php.net/manual/en/ref.xml.php and http://www.phpbuilder.com/columns/joe2907.php3 great palces to get you started on XML parseing try the second one first as it jumps right into it with xpat. phpbuilder also has stuff for the DOM XML as well. - Original Message - From: "Mich

Re: [PHP] xml parsing

2001-03-14 Thread Pavel Jartsev
Jon A wrote: > > ... > > print ""; > break; > > ... > print ""; > break; > > - this will let it parse, but it won't do anything with the html. > > can somebody help me?? > Try this: print ''; -- Pavel

RE: [PHP] XML Parsing - what's wrong? - found it

2001-02-19 Thread Sascha Andres
-Original Message- From: Sascha Andres [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 20. Februar 2001 08:25 To: [EMAIL PROTECTED] Subject: [PHP] XML Parsing - what's wrong? hi, i try to parse an xml document. but the function characterData which should process the found data is never cal

Re: [PHP] XML parsing without the PHP4 XML functions

2001-02-15 Thread Shaun Batterton
Wddx may also be an option. That would allow you to serialize the xml into php variables so that you could use them in your example. But if your provider won't compile xml in, I doubt you'll be able to get wddx. Shaun On Wed, 14 Feb 2001, Stefen Lars wrote: > Hello all > > I have recently be

Re: [PHP] XML parsing without the PHP4 XML functions

2001-02-14 Thread Michael McGlothlin
I haven't done this in PHP as PHP comes w/ XML support but times past when I needed a fast way to parse something like that and knew the format would be simple I'd usually do something like make a function that knows all the possible splits w/in a layer (ie items are w/in the faq layer if they

Re: [PHP] XML parsing without the PHP4 XML functions

2001-02-14 Thread Chris Lee
If your satisfied with IE5.0 customers you could do all that without php, use an XSL file. Now if you want PHP to parse the XML file, I can see why, your going to have to get XML installed. Have you considered other providors? there are lots. Im one of them. Ive been told there are ways of adding

RE: [PHP] XML Parsing The Sequel II

2001-02-12 Thread Steve Haemelinck
I think I found the problem. Because I am behind a proxy I can not connect to http://quotes.nasdaq.com. And get the data !!! -Original Message- From: Steve Haemelinck [mailto:[EMAIL PROTECTED]] Sent: zondag 11 februari 2001 11:13 To: PHP Mailing Listl (E-mail) Subject:[

RE: [PHP] XML Parsing The Sequel II

2001-02-12 Thread Steve Haemelinck
-Original Message- From: Steve Haemelinck [mailto:[EMAIL PROTECTED]] Sent: zondag 11 februari 2001 11:13 To: PHP Mailing Listl (E-mail) Subject:[PHP] XML Parsing The Sequel II Ok, yesterday I had problems parsing an XML from Nasdaq. Thx to Matt these problems have been

RE: [PHP] XML Parsing The Sequel II

2001-02-12 Thread Dave
in ./shipping/shipping2.php HTML file out of the function return $returnShipTable; } ?> -Original Message- From: Steve Haemelinck [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 11, 2001 9:12 AM To: 'Dave' Cc: PHP Mailing Listl (E-mail) Subject: RE: [PHP] XML Pars

RE: [PHP] XML Parsing The Sequel II

2001-02-11 Thread Steve Haemelinck
But how can I automate the saving locally of the file !!! -Original Message- From: Dave [mailto:[EMAIL PROTECTED]] Sent: zondag 11 februari 2001 14:44 To: PHP Mailing Listl (E-mail) Subject:RE: [PHP] XML Parsing The Sequel II here is some logic, I'm sure you can

RE: [PHP] XML Parsing The Sequel II

2001-02-11 Thread Dave
here is some logic, I'm sure you can flesh out the code. fopen -r the URL read the results into a variable, fopen -w to write a local temp file (if the parser you build actially requires a "file") save it locally and pass the filename variable to your XML parser function if your parser can work

RE: [PHP] XML Parsing with PHP

2001-02-05 Thread Brian V Bonini
em. -Brian > -Original Message- > From: Chris Lee [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 05, 2001 1:19 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] XML Parsing with PHP > > > PHPbulder.com classically has terrible tutorials. I myself am tryin

Re: [PHP] XML Parsing with PHP

2001-02-05 Thread Joe Stump
If you're talking about my article on PHPBuilder Found at: http://www.phpbuilder.com/columns/joe2907.php3 You can feel free to ask me any questions you like in private (I write them because I like supporting a community that has helped me so much) --Joe On Mon, Feb 05, 2001 at 10:19:17A

Re: [PHP] XML Parsing with PHP

2001-02-05 Thread Chris Lee
PHPbulder.com classically has terrible tutorials. I myself am trying to learn this XML deal. PHPbuilders code, cut and paste is filled with parse errors. after fiddling Ive got his example to work, but I havent a clue how? he posts this stupid two page article, page one is nothing, page two is not

Re: [PHP] XML Parsing with PHP

2001-02-04 Thread Joe Stump
phpbuilder.com - there are a few articles on the site about XML --Joe On Sun, Feb 04, 2001 at 05:02:43PM +0100, Steve Haemelinck wrote: > Where can I find some info on parsing XML with PHP? > I am not looking for functions, but examples and explanations ! > > Thx > > > -- > PHP General Maili