Re: Files unformatted
Brought to you by:
bs_php,
nigelswinson
From: Nigel S. <nig...@us...> - 2002-07-22 21:36:45
|
> Now i tested the skipWhitespace option. The default option is FALSE to make > the parser work faster i think. If i set it TRUE the files are pretty > printed BUT the problem i get is that line breaks are no longer recognized > by the parser... "line breaks are no longer recongnized by the parser" ? I don't understand... > I dont know what white space skip has together with pretty printig If you "skip white spaces" then on input, whitespace is junked, and on output it is pretty printed. If skip white spaces is off, then an import/export should produce basically an identical file. > but i > think there should be another option to toggle what independent from white > space skip toggles pretty printing. I don't understand what it is that you are asking for :o( > By the way: PHP.XPath v2.2 does it that > way. It was pretty printing the text even with white space skip... Any change between 2.2 and 3.0 in this area is unintentional. I thought that in 2.2 an import/export without skipping whitespace would produce identical output to the input. A concise example of the input you are using to see this behaviour, and the output it generates would help to make this discussion concrete. Cheers, Nigel |