Struqtural: High level database interface library

sturlamolden sturlamolden at yahoo.no
Sat Jul 17 09:25:12 EDT 2010


On 17 Jul, 07:29, Nathan Rice <nathan.alexander.r... at gmail.com> wrote:

> Let’s push things to the edge now with a quick demo of many to many
> relationship support. For this example we’re going to be using the
> following XML:
>
> <Departments>
>     <Department>
>         <DeptNum>123</DeptNum>
>         <DeptName>Sales</DeptName>
>         <Employee>
>             <Number>143</Number>
>             <Name>Raul Lopez</Name>
>         </Employee>
>         <Employee>
>             <Number>687</Number>
>             <Name>John Smith</Name>
>         </Employee>
>         <Employee>
>             <Number>947</Number>
>             <Name>Ming Chu</Name>
>         </Employee>
>     </Department>
>     <Department>
>         <DeptNum>456</DeptNum>
>         <DeptName>Marketing</DeptName>
>         <Employee>
>             <Number>157</Number>
>             <Name>Jim Jones</Name>
>         </Employee>
>         <Employee>
>             <Number>687</Number>
>             <Name>John Smith</Name>
>         </Employee>
>         <Employee>
>             <Number>947</Number>
>             <Name>Ming Chu</Name>
>         </Employee>
>     </Department>
> </Departments>


Oh yes, I'd rather write pages of that rather than some SQL in a
Python string.






More information about the Python-list mailing list