Re: Convert String to XML safe String
merg <[email protected]> Thu, 18 Sep 2003 21:11:12 +0200
| Newsgroups | gmane.comp.java.enhydra.xmlc |
|---|---|
| Message-ID | <[email protected]> |
Hello Jacob, Haven't experienced problems with XMLC. We use a toXML() method on our business logic value objects, and their we want to check that the content gets properly escaped to proper xml. (So it's not a real XMLC topic, but I will take a look at the DOMFormatter source.) Regards, Merg > > The DOMFormatter should do this for you unless you send markup through > as a CDATA section. What special characters are you having troubles > with? Have you tried them out already using XMLC find that they are > failing to be escaped? > > Jake > > At 07:50 PM 9/18/2003 +0200, you wrote: > >> A bit off-topic, but I'm sure you guys know the answer. Where can I >> find a helper method (within Xerces/XMLC) that converts a String to >> an XML safe String (e.g. escaping &, converting special chars to the >> UTF equivalent, ...) >> >> Don't want to reinvent the wheel. :-) >> >> Regards, >> Merg >> >> _______________________________________________ >> XMLC mailing list >> [email protected] >> http://www.enhydra.org/mailman/listinfo.cgi/xmlc > > > _______________________________________________ > XMLC mailing list > [email protected] > http://www.enhydra.org/mailman/listinfo.cgi/xmlc > >