[plt-scheme] Re: Serializing objects as XML

From: James Thorpe (james at thorpeweb.com)
Date: Wed Feb 13 18:11:17 EST 2008

Dmitry,

This looks like a very good idea - my only initial concern is the
performance.  I will do some testing.

Thanks.

On Feb 14, 12:56 am, "Dmitry Lizorkin" <lizor... at ispras.ru> wrote:
> Hello James,
>
> Probably, the SXML library could be helpful for you (available from PLaneT).
>
> In particular,
>
> ; Obtain the SXML representation for an XML document located in the filename
> (sxml:document "filename.xml")
>
> ; Serialize SXML back into XML
> (srl:sxml->xml doc "filename")
>
> > I have an application that needs to process XML data based on its
> > content according to some arbitrary rules that will be defined at runtime.
>
> > For example: if element Type is 'ABC and element Amount is 100 then call
> > function foo.
>
> XPath ?http://www.w3.org/TR/xpath
>
> For your example, it would be something like:
> self::ABC and Amount = 100
>
> ; Sample usage
> ((if-sxpath "self::ABC and Amount = 100")
>   '(ABC (Amount 100)))
>  => true
>
> Would that be helpful for you?
>
> Dmitry
>
> _________________________________________________
>   For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme


Posted on the users mailing list.