From: Paul T. <pt...@gm...> - 2006-11-19 14:14:46
|
since they are so hard to find (tools that provide the ability to see if a node is marked as mixed=true) then how does anyone do this? we provide a lot of content via xml files that are auto-generated, often times containing mixed content. since i couldn't find a suitable solution, then we've resorted to marking that content as CDATA. this isn't ideal, but seems to be the only viable option. the reason it's non-ideal in my opinion, is if an embedded html tag is for some reason not closed, say an open bold tag, for instance, then the CDATA marking around it doesn't care, but the contents internally would now not be balanced, and could throw off the whole front-end. On 11/18/06, Tatu Saloranta <cow...@ya...> wrote: > --- Paul Tomsic <pt...@gm...> wrote: > > > thanks for the information. any suggestions on what > > to use for this > > type of information? > > i tried w/ xerces, but the "xs" package of classes > > contains a ton of > > code, and i wasn't able to successfully do what i'm > > aspiring to do . > > Good question. I thought I saw an announcement a while > ago for something that would do it, but couldn't yet > find it by googling. Xerces definitely has such a > beast embedded, and Multi-Schema Validator (MSV) also > must have something like that. The main problem is > that they don't seem to expose it, beyond making > validator objects available. Saxon XSLT processor's > commercial version (SA) does have it, but it's not > free. JaxME seems to have some extension > (http://ws.apache.org/jaxme/xs/), labeled as "The > JaxMe parser for XML Schema" which might help, but I'm > not sure (it seems to be geared towards data binding, > and instead of having generic access to any schema, > prefers to create specific classes from schemas). > > So... there should be such tools, but they seem hard > to find. ;-/ > > -+ Tatu +- > > > > > > ____________________________________________________________________________________ > Sponsored Link > > Mortgage rates near 39yr lows. > $310k for $999/mo. Calculate new payment! > www.LowerMyBills.com/lre > |