[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
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
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
[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
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
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 XML output from a website
> (http:
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
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
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
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:
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
--
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
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
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; -
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
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
-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
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
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:[
-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
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
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
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
40 matches
Mail list logo