How to Include an unparsed external entity value in a XML?

TheobSog

New Member
I have an xml syntax error with this example :\[code\]<?xml version="1.0"?><!DOCTYPE foo [ <!ENTITY rules SYSTEM "file://data.txt">]><extract> <data>&rules;</data></extract>\[/code\]where data.txt contains :\[code\]1 <150242 >15023\[/code\]But of course I have syntax error because there are wml special chars in the text file ( < > ). So how can I include these data as unparsed data ?I hope to have something like this result :\[code\]<?xml version="1.0"?><extract> <data><![CDATA[1 <150242 >15023]]></data></extract>\[/code\]
 
Back
Top