Posted by CptDondo on 12/05/06 18:45
CptDondo wrote:
> Does anyone know how to specify the format for the domxml->dump_file
> method?
>
> I am at a loss; my document is being dumped as one great big long line,
> and I want to insert line breaks and spaces so that it is human readable.
OK, more file xml file ops Q:
When I open the file, I use:
$dom = domxml_open_file("/tmp/test.conf",
DOMXML_LOAD_PARSING + //0
DOMXML_LOAD_COMPLETE_ATTRS + //8
DOMXML_LOAD_SUBSTITUTE_ENTITIES + //4
DOMXML_LOAD_DONT_KEEP_BLANKS //16
);
But that keeps leading and trailing blanks on the entries. Is there a
way to automagically trim leading and trailing whitespace?
I am using PHP4.
Thanks,
--Yan
[Back to original message]
|