Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 644
  • Last Modified:

SABLOTRON Error when parsing XML with XSL - 500pts

Hey,
What is the source of this error and how can I fix it?
"Warning: Sablotron error on line 1: XML parser error 4: not well-formed (invalid token) in home.php on line 30"

        <?php
            $xh = xslt_create();
            $myResult = xslt_process($xh, 'http://yookkoo.com/Forum/rss.php?f=1', 'http://www.yookkoo.com/Website/TransNews.xsl');
            echo $myResult
            xslt_free($xh);
        ?>

$myResult = ... is line 30

Liam
0
Liam2k3
Asked:
Liam2k3
  • 5
  • 4
  • 3
  • +1
1 Solution
 
Richard QuadlingSenior Software DeverloperCommented:
What version of PHP are you using and what OS?
0
 
TeRReFCommented:
I've found this interesting  discussion about your problem.
There is a possible solution at the bottom of the document...
http://bugs.php.net/bug.php?id=16193
0
 
Liam2k3Author Commented:
The solution you gave did not work.  It only left me with a blank space where the transformed document would go, without any errors.  I'm running PHP 4.x (I believe it could be 4.1, I'll find out later) and Linux.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
JB04Commented:
The error means your document has incorrect syntax, you should look for invalid tags or extra white space on the end/beginning of the document
0
 
Richard QuadlingSenior Software DeverloperCommented:
Both of those XML files reported as valid by Tidy and look OK when downloaded and viewed as source.

0
 
TeRReFCommented:
Exactly, that's why I think it's 'the bug' decribed in my earlier entry...
0
 
Liam2k3Author Commented:
Could it be that there is no Schema for the XML document?  If not Is there another way to achieve what I would like to do?

Liam
0
 
TeRReFCommented:
Answer to you first question:
No.

Your second question:
Good change your error will disappear when you upgrade PHP to a newer version (say the latest 4.x version).
 
0
 
Liam2k3Author Commented:
Apparently my server runs PHP version 4.4.1
0
 
Liam2k3Author Commented:
If my servers running 4.4.1 this should be sufficiently new enough not to cause that problem.  So what else can I try?
0
 
Richard QuadlingSenior Software DeverloperCommented:
What extenstion are you using for the XML?
0
 
Richard QuadlingSenior Software DeverloperCommented:
What PHP extenstion are you using for the XML?
0
 
Liam2k3Author Commented:
I've managed to get that first sollution to work.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 5
  • 4
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now