|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Problem
<p><pre><font color=#008000><xmp>
?xml version= |
|
#2
|
|||
|
|||
|
Re: Problem
Some admin had better put the code between
Code:
and |
|
#3
|
|||
|
|||
|
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) |
|
#4
|
|||
|
|||
|
It's a test
Uma xopa na lombeta de todo mundo q ta lendo isso!!!
hehehe! |
|
#5
|
|||
|
|||
|
Re: It's a test
Isto q vc teclou is so beautifull!!!
|
|
#6
|
|||
|
|||
|
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? |
|
#7
|
|||
|
|||
|
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 |
|
#8
|
|||
|
|||
|
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. |
|
#9
|
|||
|
|||
|
So I've finally found the discription in French
http://www.php.net/manual/fr/ref.domxml.php
Maybe this may help! |
|
#10
|
|||
|
|||
|
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> |
|
#11
|
|||
|
|||
|
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... |
|
#12
|
|||
|
|||
|
Re: So I've finally found the discription in French
Thank you !
|
|
#13
|
|||
|
|||
|
Re: Error using DOM
I have exactly the same problem. Do you know how to resolve it ?
|
|
#14
|
|||
|
|||
|
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 |
|
#15
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Other > Development Articles > Using PHP with XML (part 2) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|