From: Tatu S. <cow...@ya...> - 2006-11-21 05:16:38
|
--- Paul Tomsic <pt...@gm...> wrote: > On 11/19/06, Tatu Saloranta <cow...@ya...> > wrote: > > Perhaps better question is do you really have to do it? > > I must admit I do not quite understand your use > case > > yet. Perhaps you do need it from schema, or perhaps > > my use case is embedding HTML in a node and > retrieving it as such. > > so, > > <foo><em>emphasis</em> and then some <b>bold</b> > text as well</foo> > > I'd be looking to retrieve everything within the foo > element, as is. Well, for that you don't really need schema; you can just see if there is mixed content. Schema tells you if that's theoretically possible (schemas basically define document classes), but instance tells you if there is actual mixed content. As to getting all contents under specific element, that's something VTD-XML gives efficient and quite straight-forward methods to do (just need start/end offsets of start/end tags involved, and can do straight copy). Perhaps that's all you need? -+ Tatu +- ____________________________________________________________________________________ Sponsored Link Online degrees - find the right program to advance your career. www.nextag.com |