simplexml


SimpleXMLElement::__construct(): Entity: line 1: parser error : Start tag expected, '<' not found


this code already have tag php
im not understand why this code have problem
im using codeigneter 3.0
require_once './pdfGenerator.php';
require_once './pdfWrapper.php';
require_once './tcpdf_ext.php';
$debug = false;
$error_handler = set_error_handler("PDFErrorHandler");
if (get_magic_quotes_gpc()) {
$xmlString = stripslashes($_POST['mycoolxmlbody']);
} else {
$xmlString = $_POST['mycoolxmlbody'];
}
//where the problem
if ($debug == true) {
error_log($xmlString, 3, 'debug_'.date("Y_m_d__H_i_s").'.xml');
}
$xml = new SimpleXMLElement($xmlString, LIBXML_NOCDATA);
$scPDF = new schedulerPDF();
$scPDF->printScheduler($xml);
function PDFErrorHandler ($errno, $errstr, $errfile, $errline) {
global $xmlString;
if ($errno < 1024) {
echo $errstr."<br>";
error_log($xmlString, 3, 'error_report_'.date("Y_m_d__H_i_s").'.xml');
exit(1);
}
}
have some idea?

Related Links

Copying CDATA between 2 xml files
PHP 7 simpleXML fatal error
SimpleXMLElement::__construct(): Entity: line 1: parser error : Start tag expected, '<' not found
Add xml attribute documentname
Pick shortest route with simpleXML
SimpleXML extract text between two tags
XML Node outside parent item
SimpleXMLElement cannot get the output
SimpleXML changing parsed decimals
can't navigate SimpleXMLElement data
PHP SimpleXML Load File with Null elements
Iterating through and editing a SimpleXML object by reference in PHP
Simplexml Insert into sub element
warning: simplexml_load_file(): I/O warning : failed to load external entity drupal [closed]
What's wrong with this code? SimpleXMLElement [closed]
Get children attributes using simplexml

Categories

HOME
sendgrid
ionic-framework
proxy
mfc
angular-material
comparison
lodash
session
getelementsbytagname
tizen-web-app
microservices
jsrender
fsm
google-project-tango
flyway4
bs4
webrequest
u-sql
zebra-printers
pc
alpine
nodatime
custom-wordpress-pages
kryo
tokenize
arabic
sqlcipher
xpages-ssjs
django-storage
info.plist
bpel
bcd
fog
perlin-noise
framemaker
gesture
neuroscience
starteam
streamreader
email-templates
firebase-admin
arena-simulation
termination
atomicity
react-scripts
veracode
brightcove
drupal-6
jxcore
carrot
boost-preprocessor
windows-mobile-6.5
qtwebview
bind9
blacklist
gnome-shell-extensions
httplistener
slicknav
fody
login-control
qpid
jwplayer7
pyke
photobucket
jfugue
srand
reactive-banana
qtableview
ruby-2.2
libressl
truevault
fscommand
jsonpickle
qpainter
gadt
tablelayout
cctv
qcodo
java-metro-framework
neolane
reactfx
mechanize-ruby
ruby-datamapper
gridcontrol
selected
labwindows
ocx
parametric-equations
windows-phone-7.1.1
spring-portlet-mvc
transactionscope
horizontal-accordion
locationlistener
radcombobox
getresponsestream
multi-tier
brewmp
iweb
thread-local-storage
scripting-languages
lzh

Resources

Encrypt Message