Re: How to preserve an empty text node?

2008-12-16 Thread Ian Hummel
Thank you all for your suggestions. I will see what can be done! Regards, Ian. On Dec 16, 2008, at 5:40 PM, kesh...@us.ibm.com wrote: The other kluge-around would be a postprocessor that converted the XML into the SGML . But if the problem really is that the next stage is an SGML tool

Re: How to preserve an empty text node?

2008-12-15 Thread Ian Hummel
xerces.apache.org/xerces2-j/faq-general.html#faq-6 > > Michael Glavassevich > XML Parser Development > IBM Toronto Lab > E-mail: mrgla...@ca.ibm.com > E-mail: mrgla...@apache.org > > Ian Hummel wrote on 12/15/2008 03:08:49 PM: > > > Hi Michael, > >

Re: How to preserve an empty text node?

2008-12-15 Thread Ian Hummel
7;\t' (tab) character in it. That isn't "blank" or empty. Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla...@apache.org Ian Hummel wrote on 12/12/2008 09:21:47 AM: > Hi, I didn't really understand how that&#x

Re: How to preserve an empty text node?

2008-12-12 Thread Ian Hummel
, at 11:53 AM, ravika...@gmail.com wrote: Hi Lan, I think we can Implement by LSParser Interface. http://java.sun.com/j2se/1.5.0/docs/api/org/w3c/dom/ls/LSParser.html this link may help you. Regards, Ravikanth On Thu, Dec 11, 2008 at 7:36 PM, Ian Hummel wrote: Hi everyone, I need to creat

How to preserve an empty text node?

2008-12-11 Thread Ian Hummel
Hi everyone, I need to create XML that looks like this whenever the value of "tag" is "" (the empty string): I've tried the following: DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document d = db.newDocument();