Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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:
  #1  
Old June 26th, 2001, 07:27 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Problem

<p><pre><font color=#008000><xmp>
?xml version=

Reply With Quote
  #2  
Old June 26th, 2001, 08:51 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Problem

Some admin had better put the code between
Code:
 and 
:)

Reply With Quote
  #3  
Old July 10th, 2001, 07:00 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
so where is the error

ok there is an error in the script when it comes to create the $dom object with an external file ($dom = xmldocfile($file);)
I am a newby, i am not able to find the error, where does it comes from ? The .xml file ?
Thank you for an answer
thomas
(french speaker)

Reply With Quote
  #4  
Old July 12th, 2001, 10:46 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
It's a test

Uma xopa na lombeta de todo mundo q ta lendo isso!!!

hehehe!

Reply With Quote
  #5  
Old July 12th, 2001, 10:47 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: It's a test

Isto q vc teclou is so beautifull!!!

Reply With Quote
  #6  
Old July 26th, 2001, 07:12 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
HTML in XML??

Is there anyway to store HTML in XML?

<BOOK>
<TITLE>title</TITLE>
<WEBSITE><a href=http:/www.website.com</a></WEBSITE>

When I try to parse the XML in PHP, it gives me errors. I could see why this is, just wondering if anyone has had to solve this problem before?

Reply With Quote
  #7  
Old August 3rd, 2001, 09:43 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Error using DOM

Hello,

I tried to parse XML string using the DOM methode

All I got is an error:

Fatal error: Call to a member function on a non-object in ...

on: $root = $dom->root();

I don't know why, I'm running under WIN2K and the domxml extension is loaded...

any idea??

Thanks in advance,

Xavier

Reply With Quote
  #8  
Old August 5th, 2001, 06:20 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
PHP function xmldocfile () ...does it exists?

>ok there is an error in the script when it
>comes to create the $dom object with an
>external file ($dom = xmldocfile($file);)

xmldocfile(),xmldoc(), xmltree()

There are not such functions in PHP 4.0
manual.
There are not such functions in
"Professional PHP programming".

That's why the paragraph from

http://www.devshed.com/Client_Side/XML/XMLwithPHP2/page2.html

"PHP offers three functions to do this: the xmldoc() and xmltree() functions accept a string containing XML data as argument, and build a tree structure from that string, while the xmldocfile() function accepts a filename as argument, and builds a DOM tree after reading the data in the file."


sounds confusing to me.

And I would like some clarification on the existence of these functions.

Reply With Quote
  #9  
Old August 5th, 2001, 07:02 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
So I've finally found the discription in French

http://www.php.net/manual/fr/ref.domxml.php

Maybe this may help!

Reply With Quote
  #10  
Old August 8th, 2001, 09:25 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: HTML in XML??

I've got a similar problem with both URLs and Mailto: links. If you find a solution, I'd appreciate knowing about it.

I've tried various things such as XSL attributes, various formattings of the embedded HTML, all with no result.

I've asked in several forums, but with little or no useful response so far.

Alan S>

Reply With Quote
  #11  
Old August 10th, 2001, 09:38 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: HTML in XML??

I found a partial answer, using XSL Style Sheets to do the transformation (at last!), in the XSL-List archives:

<xsl:if test="WEB[.!='']">
<a>
<xsl:attribute name="href">http://<xsl:value-of select="WEB"/>
</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
<xsl:value-of select="WEB"/></font></li>
</a>
</xsl:if>

But this does require that the XML data only has the stuff after the 'http://'

It works for me...

Reply With Quote
  #12  
Old August 21st, 2001, 01:39 PM
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

Thank you !

Reply With Quote
  #13  
Old August 30th, 2001, 09:00 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Error using DOM

I have exactly the same problem. Do you know how to resolve it ?

Reply With Quote
  #14  
Old August 30th, 2001, 09:04 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Error using DOM

Nope I didn't solve the problem...I think I'll install the sablotron extension on my server to use PHP, XML and XSLT...

but if someone has the answer I'd be interesed !!

thx in advance

Reply With Quote
  #15  
Old August 30th, 2001, 09:27 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Error using DOM

Xavier,

everybody around the web seems to have the same pb as us.

I already installed xslt extension and xml sax. It works fine.

Reply With Quote
Reply

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


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT