[Simple-support] Element with both attributes and text body?
Brought to you by:
niallg
|
From: Arne C. <arn...@cl...> - 2007-03-28 16:34:56
|
I just found Simple today. Excellent work on the project. Nice, simple, small. I usually work in C#, so Simple's syntax is very comfortable to me compared to .NET's attribute driven mark-up. Of course, I've already hit a stumbling block. Is there a way to define a class that has both Attributes and body text for an Element? I.e. I'm trying to create a class to represent: <?xml version="1.0" encoding="UTF-8"?> <message guid="ABDB9C3E-31B5-09B5-6E0F-5BC5F86BF5C7" type="default" utime="1175098850078"> payload </message> The closest I've figured out is: <?xml version="1.0" encoding="UTF-8"?> <message guid="ABDB9C3E-31B5-09B5-6E0F-5BC5F86BF5C7" type="default" utime="1175098850078"> <data>payload</data> </message> thanks, arne |