Re: [PHP-XML-DEV] html entities

[email protected] (Kevin Waterson)
Newsgroups php.xml.dev
Organization Oceania
Message-ID <[email protected]>
This one time, at band camp, Derick Rethans <[email protected]> wrote:

> It's mostly the sign of the start of a two-byte Unicode character. Did 
> you set the output encoding to UTF-8?

ahh, this must be it, it is set in the xsl, I assumed it would be default with
the new dom. This is what I have...

  // create new xsltprocessor
  $proc = new xsltprocessor();
  // create new domDocument
  $dom = new domDocument;
  // create new domDocument
  $dom2 = new domDocument;
  // load domDocument from string
  $dom2->loadxml($xmlstring);
  // load domDocument from string
  $dom->load('my.xsl');                                                                                              
  // import stylesheet from domDocument
  $proc->importStylesheet($dom);
  // create domDocument from transformation (returns domDocument)
  $result = $proc->transformToDoc($dom2);
  // output domDocument xml to string
  print $result->savexml();


Kind regards
Kevin
-- 
 ______                              
(_____ \                             
 _____) )  ____   ____   ____   ____ 
|  ____/  / _  ) / _  | / ___) / _  )
| |      ( (/ / ( ( | |( (___ ( (/ / 
|_|       \____) \_||_| \____) \____)
Kevin Waterson
Port Macquarie, Australia
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.