Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3451612
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:09:51+00:00 2026-05-18T09:09:51+00:00

I need to print the html transformed output of my php script in a

  • 0

I need to print the html transformed output of my php script in a div element at another php script. How do I do. I tried to do it by include but it raises xml parser error. The error it raises if I include any echo statement in the file. Here is a test file that raises error:

<?php
include "callHier.php";
echo'test';

print $xslt->transformToXML($save);

?>

erro

XML Parsing Error: not well-formed Location: http://127.0.0.1/test.php
Line Number 1, Column 5:

Here is my output code:

$xslt = new XSLTProcessor();
$XSL = new DOMDocument();
$XSL->load( 'msg.xsl');
$xslt->importStylesheet( $XSL );
header('Content-Type: application/xml');
//print $xslt->transformToXML($save);
?>

It builds an unordered list which I need to display in a dive in another php script.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T09:09:51+00:00Added an answer on May 18, 2026 at 9:09 am

    You need to include this script to the page you want it to appear. Then you can echo the results at any location in the page you want.

    <?php include "yourXslSriptHere.php"; ?>
    ...
    <div id="theDivYouWantToWriteItTo">
    <?php echo $xslt->transformToXML($save); ?>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to print real datbase type name from DbParameter.DbType , but when I
I need to print last 20 characters of string, but only whole words. Delimiter
i need print this url: http://mysite.com/hello-world-product.html i use this: echo $this->getUrl('hello-world-product.html') and that return
I'm trying to create a pretty-print html page. I need to force a page-break,
I need to print one part of a html page in one list and
My code builds an xml output from mysql dataset. Then I need to transform
I need to print an HTML file that will ask for a password, and
I'm creating a printer class that will need to print both HTML strings and
I need to print out csv file into html or put a numeric data
Here I need to send one mail with mailto(html) or mail_to(rails) function. But the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.