[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: New RAX with write capabilities + Website
Sean, what about some other functionality like these methods? * Reading the previous record rec = RAX.readPrevRecord( ) There would be an option in the open command to have it opened for forward and reverse read. The penalty for reverse read is that all of the records read would need to be buffered. * Getting the raw XML of a record or field in UTF-8 encoding record.getXML( ) record.getXML( fieldname ) That way you can get the raw XML that makes up a single record, then feed it into another RAX object... this would allow records within records. If you specify a field name, the XML would be that of the field. I have actually already implemented this on the record level in an unreleased version of XML::RAX for Perl. * Accessing attribute values record.getAttr( field, attrname ) So that you can get attribute data. I figure that these allow for greater flexibility without taking away from the simplicity of the interface. I also assume that allowing users to write to fields would take away the advantage of having the data streaming... maybe there should be an option on the open statement to open for read-forward-only, read-write, and read-forward-reverse? Robert ----- Original Message ----- From: Sean McGrath <digitome@i...> > I have put RAX (Record API for XML) on the Web at > > http://www.digitome.com/rax.html > > I have added writing capabilities so you can now use RAX as > a "pull API" for read/write XML applications. Simply put, > you can read records, modify them and write them out again > as XML. > > RAX is intended to present programmers with a drop-dead easy API for > processing record-oriented XML. The reference implementation > is Python but it should be very easy to port it to > other languages. > > Contributions to the evolution of RAX and contributions > in other languages are hereby solicited! > > >From the docstring:- <snip> *************************************************************************** This is xml-dev, the mailing list for XML developers. To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev List archives are available at http://xml.org/archives/xml-dev/ ***************************************************************************
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|