Re: Reverse Parser destroys existing documents
Archie Campbell <[email protected]> Mon, 30 May 2005 14:53:00 +0100
| Newsgroups | gmane.comp.php.cowiki.cvs |
|---|---|
| Message-ID | <[email protected]> |
function testHeadingVariable2()
{
$inputString = "+ %TITLE%\nmore text";
$outputString = "<h1>\n<var name=\"TITLE\">\n</var>\n</h1>\n<p>more
text</p>";
//$this->assertEquals($outputString, $this->p->parse($inputString));
$this->assertEquals(trim($inputString),
trim($this->r->parse($outputString)));
}
The above works alright, now. Previously had been doing something with
whitespace in the xmldoc. Now ignoring it as should.
Yours,
Archie
Daniel T. Gorski wrote:
>On 29 May 15:39, [email protected] wrote:
>
>
>The ReverseParser destroys existing documents:
>
>Given (old) document:
>
><?xml version="1.0" encoding="ISO-8859-1" ?>
>
> <document title="an other document" docid="6" parentid="1" webid="1">
>
> <h1>
> <var name="TITLE">
> </var>
> </h1>
>
> </document>
>
>Expected result:
>
>+ %TITLE%
>
>Current result:
>
>+
>%TITLE%
>
>
>dtg
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [email protected]
>For additional commands, e-mail: [email protected]
>
>
>
>
>