note 78923 added to function.dom-domdocument-save
| From: | jon at mysql dot com | Date: | Fri, 02 Nov 2007 10:38:30 +0000 |
| Subject: | note 78923 added to function.dom-domdocument-save | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-131942@lists.php.net to get a copy of this message | ||
If you're working with an existing XML file that contains an entity definition with an external
reference like this one:
[
<!ENTITY % all.entities SYSTEM "all-entities.ent">
%all.entities;
]>
Be warned that DOMDocument->save() will expand this to include all definitions in all referenced
entities file(s) when it writes the file. In other words, the same section of your saved file would
now look something like this:
<!ENTITY % all.entities SYSTEM "all-entities.ent">
<!--
This file names all the entity files needed by .xml files in the
current directory. All ENTITY declarations should be given
first, followed by references to the those entities.
--><!ENTITY % fixedchars.entities SYSTEM "../common/fixedchars.ent">
<!ENTITY % urls.entities SYSTEM "../refman-common/urls.ent">
<!ENTITY % phrases.entities SYSTEM "../common/phrases.ent">
<!ENTITY % ndb.entities SYSTEM "ndb.en.ent">
<!ENTITY minus "–"><!-- 2013 is actually Unicode for ndash -->
<!ENTITY Oslash "Ø">
<!ENTITY macr "¯">
<!ENTITY auml "ä">
[etc.]
I've not found a way to keep this from occurring.
----
Server IP: 212.63.193.10
Probable Submitter: 85.224.32.210
----
Manual Page -- http://www.php.net/manual/en/function.dom-domdocument-save.php
Edit -- https://master.php.net/note/edit/78923
Del: integrated -- https://master.php.net/note/delete/78923/integrated
Del: useless -- https://master.php.net/note/delete/78923/useless
Del: bad code -- https://master.php.net/note/delete/78923/bad+code
Del: spam -- https://master.php.net/note/delete/78923/spam
Del: non-english -- https://master.php.net/note/delete/78923/non-english
Del: in docs -- https://master.php.net/note/delete/78923/in+docs
Del: other reasons-- https://master.php.net/note/delete/78923
Reject -- https://master.php.net/note/reject/78923
Search -- https://master.php.net/manage/user-notes.php