[Home] [By Thread] [By Date] [Recent Entries]

  • From: Sean McGrath <sean@d...>
  • To: Matt Sergeant <matt@s...>
  • Date: Mon, 06 Nov 2000 10:17:22 +0000

At 08:12 PM 11/4/00 +0000, Matt Sergeant wrote:

>By procedural I
>mean something that says:
>
>foreach foo element
>         output "foo: "
>         foreach bar element child of foo
>                 output " = "
>                 foreach text child of bar
>                         output the text
>
>Mapping that model to mixed content is, umm, difficult, to say the least.

Using the Pyxie Python library the code would look like this:

for f in T.Elements("foo"):
         T.Seek(f)
         print "\nfoo = "
         for b in T.Children("bar"):
                 T.Seek("bar")
                 print T.JoinData()


What is difficult about that? (Or have I misunderstood you?)

Sean


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member