PHP Classes

Multiline tag content

Recommend this page to a friend!

      simple XML  >  All threads  >  Multiline tag content  >  (Un) Subscribe thread alerts  
Subject:Multiline tag content
Summary:_value returns only the last line
Messages:2
Author:Markus Möller
Date:2007-09-11 09:17:56
Update:2010-06-22 20:07:07
 

 


  1. Multiline tag content   Reply   Report abuse  
Picture of Markus Möller Markus Möller - 2007-09-11 09:17:56
Hi all,

there are tags in my xml files which contents run over several lines. For example:
<?xml version="1.0" encoding="iso-8859-1"?>
<demo>
<test>
this is a test
with more than one
line
</test>
</demo>


Now I read the content of the <test>-Tag like this:
$xml_file="demo.xml";
$xml=new XML();
$xml->file_read($xml_file);
$xml->parse();
echo($xml->demo->test->_value);


$xml->demo->test->_value doesn't return the three lines but only the last. Any solutions?

BR
Markus

  2. Re: Multiline tag content   Reply   Report abuse  
Picture of Oliver Strecke Oliver Strecke - 2010-06-22 20:07:08 - In reply to message 1 from Markus Möller
This is fixed in the actual version.

Thx 4 the feedback!