Sir and Dame Scalahads,

i was attempting to do something really simple-minded with scala.xml._ and
it didn't perform according to Burak's tutorial. So, any clues about the
following would be greatly appreciated.


   - When i type the following into Scala version 2.7.2.final repl, it all
   works

scala>
scala.xml.Elem(null,"fu",null,scala.xml.TopScope,scala.xml.Elem(null,"bar",null,scala.xml.TopScope,scala.xml.Text("5")))
res9: scala.xml.Elem = <fu><bar>5</bar></fu>

scala>

   - But when i attempt to compile a similar expression in Scala version
   2.7.3, it doesn't.

[WARNING]
/Users/lgm/work/src/projex/bobj/dspace/src/main/scala/com/sap/dspace/model/othello/render.scala:26:
error: type mismatch;
[WARNING]  found   : scala.xml.TopScope.type (with underlying type object
scala.xml.TopScope)
[WARNING]  required: scala.xml.MetaData
[WARNING]       TopScope,
[WARNING]       ^

   - Where do i go to see the new api?

It would be cooler if i could do something like
<{computeTag(context)}>{computeTagContents(context)}</{computeTag(context}>

but i think that might be a parsing nightmare and so i'm guessing this isn't
supported. i'd love to know if i'm wrong.

Best wishes,

--greg

-- 
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105

+1 206.650.3740

http://biosimilarity.blogspot.com

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

Reply via email to