Wouldn't this work with the Scala XML parser?

<xml:group>
<h2>Welcome</h2>
<p>Put welcome details here.</p>
</xml:group>
On 25/06/2009, at 1:08 AM, Nolan Darilek wrote:

>
> On 06/24/2009 09:40 AM, Derek Chen-Becker wrote:
>> Wait a second. I have plenty of templates that have multiple elements
>> in them. What exactly is the problem you're seeing here?
>>
> Using 1.1, I have the following in templates-hidden/welcome.html:
>
> <h2>Welcome</h2>
>
> <p>Put welcome details here.</p>
>
> Running mvn test gives me the following failure report:
>
> -------------------------------------------------------------------------------
> Test set: info.thewordnerd.therascribe.AppTest
> -------------------------------------------------------------------------------
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.8  
> sec
> <<< FAILURE!
> testXml(info.thewordnerd.therascribe.AppTest)  Time elapsed: 1.474 sec
> <<< FAILURE!
> junit.framework.AssertionFailedError: Malformed XML in 1 file:
> src/main/webapp/templates-hidden/welcome.html
>     at junit.framework.Assert.fail(Assert.java:47)
>     at info.thewordnerd.therascribe.AppTest.testXml(AppTest.scala:72)
> ..
>
> From the surefire report:
>
> <system-out>Malformed XML in 1 file:
> src/main/webapp/templates-hidden/welcome.html
> </system-out>
> <system-err>:3:70: document must contain exactly one element
>                                                                      ^
> </system-err>
>
> Surrounding it in a div fixes that. Must be a new addition in 1.1?
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to