Forum


Replies: 10   Views: 11350
Warning: domdocument::loadxml(): empty string supplied as input
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by Sven May  · 19-02-2015 - 08:32

Hello! I've an HTML content with a number list:
  1. check enabled (warning appears if length < TORA)
  2. check disabled
I do not know how I can protect special HTML TAG chars here, sry...so the code above is an ol list with li subtags...and in below too... My code is: $docx = new \Phpdocx\Create\CreateDocx(); $wf = new Phpdocx\Elements\WordFragment(); $wf->embedHTML('
  1. check enabled (warning appears if length < TORA)
  2. check disabled
); $docx->createDocx('numbering_test'); ...and I got the following Warning: Warning: DOMDocument::loadXML(): Empty string supplied as input .... CreateDocx.inc line 4054 What is wrong? This is a part of my code. In real case I am using a template...so first I thought that is the problem but when I try to run it in a clean code like above I got the same error :(