Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: programming: SAX and get content between open and close tag?

From: Joe Kesselman <keshlam-nospam@-------.--->
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.


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent