[Zope-xml] DOM implementation view within the ZMI
Eric Roby
Eric.Roby at noaa.gov
Wed Feb 13 13:16:13 EST 2002
I have experimented with a couple docs (FGDC Metadata standard) and am
not sure if this is a side-effect or what...
XML clip:
<timeperd>
<timeinfo>
<rngdates>
<begdate>19990916</begdate>
<begtime>20461500</begtime>
<enddate>19990929</enddate>
<endtime>21044000</endtime>
</rngdates>
</timeinfo>
</timeperd>
When I view the DOM, I see the following:
- timeperd
#text
- timeinfo
#text
- rngdates
#text
- begdate
#text
- begtime
#text
- enddate
#text
- endtime
#text
#text
#text
#text
And, when I try to walk the dom with url traversal, the elements that
are
accessable are odd-numbers only. I understand the #text references for
begdata, begtime, enddate & endtime but am baffled but the #text
references for the others. If I edit one of those #text elements, it
just hangs it out there above the other sub-elements. And if I try and
delete the text I added,
it gives me an error. The DOM view isn't handling compound elements
quite like I had expected.
I guess what I expected to see when I view the DOM (expanded) is the
following:
- timeperd
- timeinfo
- rngdates
- begdate
#text
- begtime
#text
- enddate
#text
- endtime
#text
Eric
More information about the Zope-xml
mailing list