June 26th, 2001, 06:27 AM
-
Problem
<p><pre><font color=#008000><xmp>
?xml version=
June 26th, 2001, 07:51 AM
-
Re: Problem
Some admin had better put the code between :)
July 10th, 2001, 06:00 AM
-
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)
July 12th, 2001, 09:46 AM
-
It's a test
Uma xopa na lombeta de todo mundo q ta lendo isso!!!
hehehe!
July 12th, 2001, 09:47 AM
-
Re: It's a test
Isto q vc teclou is so beautifull!!!
July 26th, 2001, 06:12 PM
-
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?
August 3rd, 2001, 08:43 AM
-
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
August 5th, 2001, 05:20 AM
-
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.
August 5th, 2001, 06:02 AM
-
So I've finally found the discription in French
http://www.php.net/manual/fr/ref.domxml.php
Maybe this may help!
August 8th, 2001, 08:25 AM
-
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>
August 10th, 2001, 08:38 AM
-
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...
August 21st, 2001, 12:39 PM
-
Re: So I've finally found the discription in French
August 30th, 2001, 08:00 AM
-
Re: Error using DOM
I have exactly the same problem. Do you know how to resolve it ?
August 30th, 2001, 08:04 AM
-
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
August 30th, 2001, 08:27 AM
-
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.