[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
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
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
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
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
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
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
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
[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
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
[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
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
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
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
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
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
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
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');
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
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
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
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
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
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
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
[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
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
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
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
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
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
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
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
--
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
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
.
-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
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&
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
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
> 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
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
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
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,
>
&
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
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
: "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
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
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
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
-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
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
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
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
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
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
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
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
-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
:[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
-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
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
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
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
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';
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
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
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
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
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
69 matches
Mail list logo