I have a xml file, where some of the paragraphs do have
I am trying to echo the requested strings but the nodeValue ignores the
tag and the string is echoed without a break.
This is the teaser from the xls file:
<xml version="1.0" encoding="UTF-8"?>
<p>-This is the first part of the string.
<br/>-This is the second part of the string
And here is my php script:
$xmlDoc = new DOMDocument();
$searchNode = $xmlDoc->getElementsByTagName( "p" );
foreach( $searchNode as $searchNodik )
$dialogue = $searchNodik->nodeValue;
And this echoes me only the strings in one line, ignoring the break tag, like"
-This is the first part of the string.-This is the second part of the string
I have spent a couple of days by browsing the net in order to find some solution, but without success.
Any hint how to solve this, please?