Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - xerces serializing < [Thread Next] Re: xerces serializing <To: NULL Date: 11/6/2005 11:16:00 PM shaun roe wrote: > a follow up with new problems from my previous post: > > I have xml encoded in a string with elements like <myElement/> > > e.g > > <codeFragment> <myElement>some text</myElement> > </codeFragment> That isn't XML. It's text that happens to have character entities in it. > I parse this in Xerces and I can see it has done the correct thing, > but now I want to serialize the output so it **looks** like valid xml, > i.e. > <codeFragment> <myElement>someText</myElement> </codeFragment> > > this doesnt happen; instead I get > > <codeFragment> <myElement>someText </myElement> </codeFragment> > > I dont want to change the DOM model, I just want the serializer to > output text which has the "<" in it. Is there some way of stopping it > escaping the "<" ? > > note: unfortunately I am restricted to simple text in the node, I > cannot insert a CDATA. (not sure this would solve it anyway). See the FAQ: http://xml.silmaril.ie/authors/html/ ///Peter | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
