Lists Home |
Date Index |
>I don't know. XML modellers faq:
>Q: Why are you putting stuff in attributes?
>A: I can't be arsed to code a buffer.
There is more to it than a buffer. Parsers can and do emit chunks of content
at boundaries that suit themselves. So
is not guaranteed to produce 1 data event that can be slurped into a buffer in
one go. More generally, in the presence of mixed content there will definitely
be multiple chunks. So you end up with this pattern:
buffer = ""
inFoo = 1
This rapidly gets out of hand.
Rightly, the need for this pattern drives the data-heads nuts. It would be
soo nice to
know that in the presence of data-oriented XML, the fundamental parser
emit complete PCDATA chunks.
Trouble is, there is no consensus on what data-oriented XML is and how
it could be flagged to a processor. Consequently, data-oriented APIs that
avoid that above unside-down and state-space-laden constructs
such as RAX (http://www.xml.com/pub/a/2000/04/26/rax) cannot go
An XML Features Manifest would be one way to flag it
but that never went anywhere either:-)