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

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
Select attribute in simplexml
Save formatted xml
SimpleXML (Zend_Config_Xml actually) and foreach : which tag am I iterating?
simplexml_load_file() error happening in only localhost/xampp
SimpleXml tar.gz
simplexml_load_file error in PHP 5.3
simplexml_load_file not a valid URI issue
Can't turn XML response into an simplexml object
Having trouble getting Fogbugz API response into a SimpleXML object

Categories

HOME
multithreading
path-finding
syntax
framework7
jsp-tags
setup-deployment
elm
sqlite3
append
node-notifier
gorm
dax
collectd
alignment
vb.net-2010
commonmark
size
flask-wtforms
clearcase-ucm
libtiff
beyondcompare
abi
sox
kudan
microsoft-r
centos6.5
quote
bcd
code-contracts
typed.js
framemaker
windows-dev-center
mmenu
nssegmentedcontrol
io-redirection
suricata
espeak
withings
webix-treetable
bootstrapper
squib
awt
unoconv
fedex
powershell-dsc
firebase-admin
reactive-cocoa-5
wptoolkit
rails-routing
idisposable
elgg
qtwebview
flutterwave
iso8601
quartz-composer
watchconnectivity
firmata
savon
azure-virtual-network
ctest
django-debug-toolbar
react-native-listview
make-install
qtableview
jms2
teamcity-8.0
atk4
tmuxinator
citrus-pay
purge
android-listview
cakephp-3.1
processmodel
camanjs
preferences
google-reader
uitouch
doskey
gnu-smalltalk
multiprocessor
oam
sitemesh
xamlparseexception
mqx
delphi-6
wsdl-2.0
path-separator
unc
twrequest
parametric-equations
subgurim-maps
f#-powerpack
horizontal-accordion
w3wp.exe
ncqrs
multi-tier
webkit.net
nintendo-ds
grid-system

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App