|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: New RAX with write capabilities + Website
Sean McGrath <digitome@i...> writes:
> I have put RAX (Record API for XML) on the Web at
>
> http://www.digitome.com/rax.html
> # Get value of "Phone" element
> x = rec.GetElement ("Phone")
> # Set phone element to "12345"
> rec.SetElement("Phone","12345")
> # Write out modified record
> R.WriteRecord (rec)
Curious, why the get/set approach rather than native accessor syntax?
Python:
x = rec.Phone
rec.Phone = "12345"
Perl:
$x = $rec->{Phone};
$rec->{Phone} = "12345";
If the answer is "you can do both", that's OK then.
-- Ken
***************************************************************************
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
|
|||||||||

Cart








