[Home] [By Thread] [By Date] [Recent Entries]
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/
***************************************************************************
|

Cart



