Now, write-xml-chunk and xml-chunk>string have been removed, in favor of write-xml and xml>string, which is now generic. write-prolog is also now replaced by write-xml.
Dan On Wed, Jan 28, 2009 at 6:37 PM, Daniel Ehrenberg <[email protected]> wrote: > Hi all, > > I made some changes to the XML API that I want everyone to be aware > of. First, XML chunks are now first-class: they are still sequences, > but they're their own tuple type, defined in xml.data. This only > affects the output of string>xml-chunk and similar words; the > acceptable inputs to xml-chunk>string hasn't decreased. Second, tags > are no longer assocs of their attributes. They are only sequences of > their children. To get an attribute with a specific name, use attr ( > tag name -- string ) and to set an attribute, use set-attr ( tag value > name -- ). You can also manipulate the assoc of attributes, which is > stored in the attr slot, directly. This will all be documented very > soon. > > Dan > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
