So I have an XML that contains a bunch of tables that I’m turning into an HTML.
Problem is, I have no idea how to deal with this:
[code]<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE cstgschema SYSTEM "a.dtd" [ ]>&a;
more stuff
</xml>
[/code]
Whenever I simplexml load the file, I get errors for all the &a references. Namely errors like this:
[code]Warning: simplexml_load_file() [function.simplexml-load-file]: &a; in C:\location\file.php on line 8[/code]
Line 8 of course being
[php]$xml = simplexml_load_file('../a/b.xml');[/php]
with b.xml being the file with the code at the top in it.
How do I deal with these entity references? I am new to PHP so I don't really know where to start. It seems that I might need to use a different parser like DOM... Is this the case? If so, how do I deal with these entity references in DOM?