Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOtherDevelopment Articles

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #16  
Old September 19th, 2001, 02:48 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
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 />

Reply With Quote
  #17  
Old October 8th, 2001, 03:59 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
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

Reply With Quote
  #18  
Old October 8th, 2001, 04:06 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
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

Reply With Quote
  #19  
Old October 8th, 2001, 04:08 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
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

Reply With Quote
  #20  
Old December 14th, 2001, 11:19 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
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.

Reply With Quote
  #21  
Old December 14th, 2001, 11:23 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
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.

Reply With Quote
  #22  
Old January 10th, 2002, 10:10 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
a

a

Reply With Quote
  #23  
Old January 14th, 2002, 12:07 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
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

Reply With Quote
  #24  
Old January 14th, 2002, 12:48 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
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

Reply With Quote
  #25  
Old January 28th, 2002, 06:56 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:

Reply With Quote
  #26  
Old February 22nd, 2002, 04:00 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:

Reply With Quote
  #27  
Old August 8th, 2002, 10:27 AM
jomelia jomelia is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 1 jomelia User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
  #28  
Old March 10th, 2003, 03:05 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
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

Reply With Quote
  #29  
Old May 29th, 2003, 10:52 AM
Ducani
Guest
Dev Shed Newbie (0 - 499 posts)
 
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 .

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > Using PHP with XML (part 2)

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap