Hi,
I am using the following code to load a php page, in which there may be some content (fget $handle echo $buffer)from a html file. So the $content may not be always correctly formatted. I have filtered out most of the html tags. But sometimes, there is still an error.
Am I right in loading a php page?
Is there any other way to load a php page not with xml format? Then it may not need to meet the xml format.
Anybody who can help me figure out what is the problem would be greatly appreciated.
<script id="xml_content" type="application/backbase+xml">
<div id="middle-content" />
</script>
...
<script type="application/backbase+xml"
xmlns:e="http://www.backbase.com/2006/xel"
xmlns:c="http://www.backbase.com/2006/command">
<e:handler event="load">
<c:load url="story.php?story=1" destination="id('middle-content')" mode="replaceChildren" />
</e:handler>
</script>
<div id="middle-content" />
</script>
...
<script type="application/backbase+xml"
xmlns:e="http://www.backbase.com/2006/xel"
xmlns:c="http://www.backbase.com/2006/command">
<e:handler event="load">
<c:load url="story.php?story=1" destination="id('middle-content')" mode="replaceChildren" />
</e:handler>
</script>

GENERIC: XML Parsing Error: not well-formed should have semicolo
25 February, 2008 - 11:11 — yudiHi jjiao,
You should put your destination in one place with c:load XEL command otherwise it won't work.
xmlns="http://www.w3.org/1999/xhtml"
xmlns:e="http://www.backbase.com/2006/xel"
xmlns:c="http://www.backbase.com/2006/command">
<xi:include href="../../bindings/config.xml" /> <!--Your config xml path-->
<e:handler event="load">
<c:load url="story.php" destination="id('middle-content')" mode="replaceChildren" />
</e:handler>
<div id="middle-content" />
</script>
Instead of loading php file in the running time, you also can put your PHP code directly in the index.html