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

[PHP] XML parsing with PHP

2009-10-21 Thread Mari Masuda
Hi, 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

[PHP] xml parsing

2007-03-11 Thread Marije van Deventer
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 ??? Algemeen a 1-Atmosfeer a

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

[PHP] XML Parsing simpleXML Arrays Question

2007-01-14 Thread Richard Luckhurst
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 reading. I would appreciate

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

[PHP] XML Parsing, starting out.

2006-04-29 Thread sinai
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 that is 1st quite large and 2nd

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

[PHP] XML parsing

2006-02-09 Thread Peter Lauri
Hi, When I go thru this documentation the parsing seem to be very complex. With Java this was not the case. Assume I have XML like this: $xml = 'PeterThe group'; I would like to get the value of 'from' and 'to'. My dream function would be: $from = xml_function($xml, 'from');

[PHP] XML Parsing german special chars

2005-12-14 Thread Norbert Wenzel
I did some easy xml parsing on the last.fm[1] recent tracklist. I do read in all the tracks and output them encoded with htmlentities(). A lot of german special chars like the Ä (Ä) are transfered to strange followings of an A with any sort of available accent. But it isn't replaced by Ä The

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 X

[PHP] XML Parsing

2004-04-01 Thread Nunners
Hi Folks, I've got an XML output from a website (http://tawl.holiday.co.uk/EntryPoints/TopXasXML.aspx?WebsiteGUID=E325538D-5 B1E-4EC6-B888-35EB46418DB9) and want to display it's output on one of my pages I've looked at using the PHP XML Parse functions, however, I'm not certain how to get it wo

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

[PHP] XML Parsing....

2003-11-20 Thread Scott Fletcher
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 I received. So, I'll post the script here and hope to get some feedb

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

[PHP] XMl Parsing within PHP

2003-08-14 Thread Donald Tyler
Hi, I am trying to create a Class that will parse an XML document. It all works fine as individual functions but I cant get it to work as a class. For example, when I do the following in my class: xml_set_element_handler($this->xml_parser, '$this->startElement', "$this->endE

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

[PHP] XML Parsing

2003-07-17 Thread Doug La Farge
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 into a complex, but usable data structure. We've been a

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

[PHP] xml parsing

2002-10-17 Thread Michael Ransburg
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 structure (usually a tree or an array) and when I change something in the structure I can later "write out" the structure again into a xml

[PHP] xml parsing (while loop question)

2002-09-05 Thread Kristopher Yates
Hi, I have Marc Robards article on XML Parsing with PHP (wirelessdevnet.com).. which talks about parsing an XML FILE. My XML is from a remote server (used curl to get it back to PHP as a variable). How do I change the following while to read from variable instead of file without getting thes

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 --

[PHP] xml parsing

2002-05-18 Thread Gerard Samuel
I got this example from Beginning PHP 4. Unfortunately, I cant get to wrox's site to see if there were any errata updates for this piece of code, but for the life of me, I dont know whats wrong with it. All its displaying is '-'. If anyone could direct me to where its broken, Ill be very gr

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
mp;". > > HTH > > Matt. > > -----Original Message- > From: Ben Gollmer [mailto:[EMAIL PROTECTED]] > Sent: 01 January 2002 00:23 > To: [EMAIL PROTECTED] > Subject: [PHP] XML Parsing Problem > > > Hi all - > > I'm experimenting with PHP&

RE: [PHP] XML Parsing Problem

2002-01-02 Thread Matthew Clark
rom: Ben Gollmer [mailto:[EMAIL PROTECTED]] Sent: 01 January 2002 00:23 To: [EMAIL PROTECTED] Subject: [PHP] XML Parsing Problem Hi all - I'm experimenting with PHP's XML parser for an application that maps XML tags to MySQL database fields. As a test for my parsing program, I

[PHP] XML Parsing Problem

2001-12-31 Thread Ben Gollmer
Hi all - I'm experimenting with PHP's XML parser for an application that maps XML tags to MySQL database fields. As a test for my parsing program, I've been grabbing XML from the Slashdot news feed (http://www.slashdot.org/slashdot.xml) and inserting it into a database. This is very simple da

Re: [PHP] PHP & XML Parsing

2001-05-23 Thread Peter Dudley
> Interesting.. So to be consistent with proper XML formatting, > should the server hosting the XML file convert the & into > & ? It depends on the situation, I believe. The server that sends you XML should indeed provide you well-formed XML, which it's not doing. Probably what should happen i

Re: [PHP] PHP & XML Parsing

2001-05-22 Thread Mike Gifford
Hello Peter, Peter Dudley wrote: > The problem is in your link URL, where you pass CGI parameters. When XML > sees the & character, it assumes it's a special character thing such as > & or ", so it's expecting a semicolon. replacing it with & fixed the XML error. Thanks! > http://cupe.ca/ne

Re: [PHP] PHP & XML Parsing

2001-05-22 Thread Mike Gifford
e > ampersand ... > - Original Message - > From: "Mike Gifford" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, May 18, 2001 12:24 PM > Subject: [PHP] PHP & XML Parsing > > > >> Hello, >> >> In looking for a good script

Re: [PHP] PHP & XML Parsing

2001-05-18 Thread Fabian Raygosa
for xml you have to escape certain characters in the file, one is the ampersand ... - Original Message - From: "Mike Gifford" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 18, 2001 12:24 PM Subject: [PHP] PHP & XML Parsing > Hello, > &

Re: [PHP] PHP & XML Parsing

2001-05-18 Thread Peter Dudley
The problem is in your link URL, where you pass CGI parameters. When XML sees the & character, it assumes it's a special character thing such as & or ", so it's expecting a semicolon. http://cupe.ca/news/cupenews/showitem.asp?ID=2823&cl=1 Just yesterday I discovered a program called XML Spy whi

[PHP] PHP & XML Parsing

2001-05-18 Thread Mike Gifford
Hello, In looking for a good script to parse XML files I stumbled across the following tutorial (which looks very good): http://www.wirelessdevnet.com/channels/wap/features/xmlcast_php.html I have set this script up here: http://www.airdiv-cupe.org/portal/newsfeed_new_parser.php

Re: [PHP] XML Parsing

2001-04-30 Thread Fabian Raygosa
: "Michael Conley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 30, 2001 3:21 PM Subject: [PHP] XML Parsing > I am posting information to a credit card processing server. This is done > over HTTPS (with cURL) and seems to work fine. I get the response t

[PHP] XML Parsing

2001-04-30 Thread Michael Conley
I am posting information to a credit card processing server. This is done over HTTPS (with cURL) and seems to work fine. I get the response that I want from the server, which consists of an XML doc with about 20 tags and their corresponding values. I have gone through the mailing list and manua

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

[PHP] xml parsing

2001-03-14 Thread Jon A
please help me... I'm working with some simple xml parsing. in my xml document i have a tag like this: which holds the path of a picture. in the xml parser i'm trying to output it as an tag, but nothing seems to work. some of the things i have tried: case "BILLEDE": p

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

[PHP] XML Parsing - what's wrong?

2001-02-19 Thread Sascha Andres
hi, i try to parse an xml document. but the function characterData which should process the found data is never called. startElement and endElement are called. it does not fails opening it and it gets te correct number of stories.u can have a look on the output at http://www.programmers-world.n

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

[PHP] XML parsing without the PHP4 XML functions

2001-02-14 Thread Stefen Lars
Hello all I have recently been assigned the task of parsing an xml file and format the contents of the file in HTML. The xml file lies on another server. Our web space provider does not provide the XML functions (nor is he willing to install them) :-gr. I am sure that I am not the only who ha

[PHP] XML parsing problems..

2001-02-13 Thread Michael McGlothlin
I didn't see any responses to this the other day when I asked so this time I'll include source.. just cutting and pasting so hopefully nothing gets clobbered.. When I parse this lil bit of raw data it parses properly. You can trace it and see that it opens and closes the tags properly and that

[PHP] XML Parsing through Proxy

2001-02-13 Thread Steve Haemelinck
Hi Anybody got an idea? I am sitting behind a proxy and I want to able to parse an XML. So I have to use fsockopen() to get through my firewall and get the page. So far, everything goes wel, but I am not able to parse the file, because I think it is not in XML format if I use "GET http:// " D

FW: [PHP] XML Parsing The Sequel II

2001-02-12 Thread Steve Haemelinck
-Original Message- From: Steve Haemelinck [mailto:[EMAIL PROTECTED]] Sent: maandag 12 februari 2001 21:52 To: 'Steve Haemelinck' Subject: RE: [PHP] XML Parsing The Sequel II Ok, I solved the problems with my proxy, I can get the xml but I can not get it compl

RE: [PHP] XML Parsing The Sequel II

2001-02-12 Thread Steve Haemelinck
:[PHP] XML Parsing The Sequel II Ok, yesterday I had problems parsing an XML from Nasdaq. Thx to Matt these problems have been solved and I am know able to parse any XML without problems (I hope). But I have one question: In order to parse an XML you have to tell your parser where to find the

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

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
parser can work from a variable, then just pass the read variable to your parser. Dave -Original Message- From: Steve Haemelinck [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 11, 2001 5:13 AM To: PHP Mailing Listl (E-mail) Subject: [PHP] XML Parsing The Sequel II Ok, yesterday

[PHP] XML Parsing The Sequel II

2001-02-11 Thread Steve Haemelinck
Ok, yesterday I had problems parsing an XML from Nasdaq. Thx to Matt these problems have been solved and I am know able to parse any XML without problems (I hope). But I have one question: In order to parse an XML you have to tell your parser where to find the document: $xml_file = ''test.xml';

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

[PHP] XML Parsing with PHP

2001-02-04 Thread Steve Haemelinck
Where can I find some info on parsing XML with PHP? I am not looking for functions, but examples and explanations ! Thx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrat