The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Other
> Development Articles
|
Page 2 -
Using PHP with XML (part 2)
Page 2 - Discuss Using PHP with XML (part 2) in the Development Articles forum on Dev Shed. Using PHP with XML (part 2) Development Articles forum discussing articles and tutorials located at http://www.devshed.com. See what our authors have created for your viewing pleasure.
|
|
 |
|
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

September 19th, 2001, 02:48 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Re: HTML in XML??
I use the xml_set_processing_instruction_handler call to include HTML in my XML file
<br />
|

October 8th, 2001, 03:59 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Re: So I've finally found the discription in French
iam not able to get output usin dom parser any body can help me please.preferable in english
|

October 8th, 2001, 04:06 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Re: So I've finally found the discription in French
iam not able to get output usin dom parser any body can help me please.preferable in english
|

October 8th, 2001, 04:08 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Re: So I've finally found the discription in French
iam not able to get output usin dom parser any body can help me please.preferable in english
|

December 14th, 2001, 11:19 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Solution ? to error in recipe program
I haven't figured out why but the problem seems to be in how the recipe.xml file is formed. The parser thinks it has no root node. I put <cookbook> before <recipe> and </cookbook> after </recipe> and the error goes away. Now the output is a little off but that's another problem.
|

December 14th, 2001, 11:23 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
can't use brackets in post
So imagine brackets around these. What I said was that I put a cookbook tag before the recipe tag and an end cookbook tag after the end recipe tag and that fixed the error.
|

January 10th, 2002, 10:10 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
a
a
|

January 14th, 2002, 12:07 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Can't compile libxml on OS X? This might help.
In trying to recompile php with the --with-dom attribute, I found that I had to install libxml2, which I tried doing.
That's when I hit a wall because I was getting errors compiling libxml2.
Thankfully, I wasn't alone. Here's a post I found that details the exact same problem I had. And a hack around it:
http://archive.davin.ottawa.on.ca/axdtk/2001-11/msg00108.phtml
|

January 14th, 2002, 12:48 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Can't compile libxml on OS X? This might help.
In trying to recompile php with the --with-dom attribute, I found that I had to install libxml2, which I tried doing.
That's when I hit a wall because I was getting errors compiling libxml2.
Thankfully, I wasn't alone. Here's a post I found that details the exact same problem I had. And a hack around it:
http://archive.davin.ottawa.on.ca/axdtk/2001-11/msg00108.phtml
|

January 28th, 2002, 06:56 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|

February 22nd, 2002, 04:00 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|

August 8th, 2002, 10:27 AM
|
|
Junior Member
|
|
Join Date: Aug 2002
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
caching xml data
I'm relatively new to php and very new to XML, but I was able to follow this tutorial and used it to place stock quotes on a web site. The service I use for this allows a limited amount of hits per day and suggested I cached the data coming in for short periods to reduce the number of requests. I'm not sure how to go about that. I'm calling a url for the stock data, and not sure how to cache all the resulting data. Any help? Thanks.
|

March 10th, 2003, 03:05 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
caching xml
If you receiving XML data from COM object you should be able to cache the xml string in an Application variable. You could write some simply ASP code to check the date and the time and determine if it should reload the XML string or if it should use the XML string in the Application variable. If your not using the XML string in the APP variable then you should call your component to get the new XML data. caching will speed up your web site for sure and it is a good use of the web servers memory. The overall implementation of caching involves the use of Application variables.
BYE
|

May 29th, 2003, 10:52 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Using PHP with XML (part 2)
Using PHP with XML \(part 2\)
PHP offers two methods of parsing an XML document. You've already seen how SAX works; in this article, find out how to use PHP's DOM functions to traverse an XML tree, and also learn about important differences between the two approaches. Read full article .
Please discuss this article in this thread. You can read the article here .
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|