[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: New RAX with write capabilities + Website

  • From: "Robert Hanson" <rhanson@b...>
  • To: <xml-dev@x...>, "Sean McGrath" <digitome@i...>
  • Date: Wed, 3 May 2000 17:31:38 -0400

read write capabilities
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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.