From: Tatu S. <cow...@ya...> - 2006-11-19 02:06:20
|
--- Jimmy Zhang <cra...@co...> wrote: > Interesting comments... > > A few years back when I posted to new groups about > an XML question, > I was told not to use mixed-content.... but wasn't > offered any reasons for > that... I think more accurate guideline would be to say that mixed content is good for textual markup (XHTML, DocBook), but problematic for data-oriented approach. Since VTD-XML is more geared towards latter, it probably won't be a problem that white space is by default skipped. I don't think mixed content is bad per se, just good for specific things. > how big a difference it makes to ignore the > unimportant whitespaces > for the purpose of schema validation??? I think it should never cause problems, actually... white space handling is bit murky area of xml specs, but I think that it is actually safe to ignore all-whitespace segments between (start/end) tags, when doing schema validation. It could change displaying of XHTML, and so on, but with schema (or DTD. RelaxNG), I don't think there are any constructs that would consider white space significant. -+ Tatu +- ____________________________________________________________________________________ Sponsored Link Mortgage rates near 39yr lows. $420k for $1,399/mo. Calculate new payment! www.LowerMyBills.com/lre |