Re: Special characters problem while writing XML files using JAXP DOM Parser

2009-12-04 Thread Benson Margulies
I (mis?)understood the original poster to have a strong opinion on the lexical surface form of the XML. On Fri, Dec 4, 2009 at 8:23 AM, Michael Glavassevich wrote: > Sure, lexically but CDATA is just syntactic sugar. An entity reference > (<) or character reference (< or <) would also work fine.

Re: Special characters problem while writing XML files using JAXP DOM Parser

2009-12-04 Thread keshlam
/ Leslie Fish ( http://www.ovff.org/pegasus/songs/threes-rev-11.html) Benson Margulies 12/04/2009 07:13 AM Please respond to j-users@xerces.apache.org To j-users@xerces.apache.org cc Subject Re: Special characters problem while writing XML files using JAXP DOM Parser If you need a less th

Re: Special characters problem while writing XML files using JAXP DOM Parser

2009-12-04 Thread Michael Glavassevich
Sure, lexically but CDATA is just syntactic sugar. An entity reference (<) or character reference (< or <) would also work fine. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla...@apache.org Benson Margulies wrote on 12/04/2009 07:13:06 AM:

Re: Special characters problem while writing XML files using JAXP DOM Parser

2009-12-04 Thread Benson Margulies
If you need a less than, you need to put it all in a CDATA. On Fri, Dec 4, 2009 at 12:25 AM, nagineni wrote: > > Hi, > > I'm creating xml file using JAXP DOM parser.While writing text data to a > node parser is writing special characters.Below is the example. > > > >          naga >          f

Re: Special characters problem while writing XML files using JAXP DOM Parser

2009-12-03 Thread Mukul Gandhi
it seems, you are not writing the built in entity reference for character, "<" appropriately. you are not writing a semicolon, after <. The parsing of the document you have posted, would likely fail with this particular error. The Xerces-J sax.Counter sample gives following error, while parsing t