Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: programming: SAX and get content between open and close tag? [Thread Next] Re: programming: SAX and get content between open and close tag?To: NULL Date: 7/6/2006 10:22:00 AM rui.maciel@g... wrote: > It would be a lot simpler if it was possible to extract the original > content which is enclosed by certain tags. The parser has to grovel through all the bytes anyway, to make sure it has found the correct matching close-tag. And this is a relatively uncommon case. Normally if folks are reading an XML document at all, it's because they want its meaning, not its markup. (For example, note that the meaning of the text is indeterminate without knowing what namespace declarations it inherits from its surrounding context.) There are special cases where this could be useful... but SAX is designed for the most general cases. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
