Re: ergi---XML_PARSE

From: Date: Wed, 15 Nov 2000 18:22:45 +0000
Subject: Re: ergi---XML_PARSE
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25483@lists.php.net to get a copy of this message
On Wed, 15 Nov 2000, callen wrote: > Ignacio Vazquez-Abrams wrote: > > > > > Just off the top of my head, I'd say your missing the < at the beginning > > of the closing tag. > > > Thanks Ignacio, such a simple mistake, fortunately that was it! > > On another note has anyone used the _xml_ related functions built into > php4? > I am parsing a chunk of xml that I get from another server and I want to > strip all tags and replace the tag name with a variable name of that > same name. > > In essence take all children of the parent and variablize each child > --giving them the appropiate value that is assigned to them > in the xml. > > I could go line by line using ereg, but since I just switched from > php3->php4 I wanted to take full use of the functionality....... > > Thanks! > Wooncha just know! I've taken a look at it, and it's nice, but expects 100% compliant XML and acts in a strange way on a closeless tag. Other than that, it works like a charm. Take a look at the docs, and anything you can't figure out, just ask. -- Ignacio Vazquez-Abrams <ignacio@openservices.net>

« previous php.general (#25483) next »