PHP Development
 
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 ForumsProgramming LanguagesPHP Development

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:
  #1  
Old May 24th, 2000, 08:49 PM
mfkoo mfkoo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 65 mfkoo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
Hi, I am looking for a programming script to parse a xml file. Can PHP do it. The xml file is from other web site and i need to parse it into my html page.

Any one can help me!?Thanks.....

Reply With Quote
  #2  
Old May 24th, 2000, 11:33 PM
Vinay Vinay is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 10 Vinay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
can php parse XML .. ofcourse.. you dont need anything special to parse XML .. you can parse it without any special functions, etc.. or you can get some XML libraries, classes and use special functions to parse it. . I would use regex ...

---------------------
Kryogen WebHosting - proud to be 100% Microsoft Free

Reply With Quote
  #3  
Old May 24th, 2000, 11:56 PM
mfkoo mfkoo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 65 mfkoo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
So, can you please give some idea how to parse the code below. The xml code is from other site

** http://p.moreover.com/cgi-local/page?index_biotech+xml

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE moreovernews SYSTEM "http://w.moreover.com/xml/moreovernews.dtd">
<moreovernews>
<article id="_7262631">
<url>http://c.moreover.com/click/here.pl?x7262629</url>
<headline_text>Society discovers GM seeds in Orkney</headline_text>
<source>Ananova</source>
<media_type>text</media_type>
<cluster>Biotech news</cluster>
<tagline> </tagline>
<document_url>http://www.ananova.com/news/index.html</document_url>
<harvest_time>May 25 2000 3:12AM</harvest_time>
<access_registration> </access_registration>
<access_status> </access_status>
</article>
<article id="_7261612">
<url>http://c.moreover.com/click/here.pl?x7261610</url>
<headline_text>Is it practically possible to segregate GM and non-GM crops?</headline_text>
<source>New Scientist</source>
<media_type>text</media_type>
<cluster>Biotech news</cluster>
<tagline> </tagline>
<document_url>http://www.newscientist.com/newsdrop/</document_url>
<harvest_time>May 25 2000 12:37AM</harvest_time>
<access_registration> </access_registration>
<access_status> </access_status>
</article>
</moreovernews>

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Can PHP parsing xml code ??

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