> Is there a (or where is the) method in the xerces implementation that is > used to introduce escape characters in raw text? > > i.e. somewhere in the DOM implementation this string: " m&m " is converted > into " m&m ". Where is the method that does this?
Are u trying to serialize the DOM ? org.apache.xml.serialize.XMLSerializer has protected method " getEntityRef(int:ch):String " and u can over-ride its behavior, i am not very confident here but i think that changed behavior will be reflected in all occurences of that predefined enity in DOM. So, u have to be careful here that u dont produce invalid XML document , say if u change the behavior, "<" being returned for '<' than "lt" , your output will be <foo><text</foo> than <foo><text</foo> which is invalid XML document. -- Neeraj B. Sun Microsystems, inc. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
