Re: Implementation difference of DOMParser and DocumentBuilderFactoryImpl in XercesJ

2008-12-11 Thread Michael Glavassevich
Hi Clarence, They are part of the same implementation. DocumentBuilderFactory creates DocumentBuilders and the DocumentBuilder implementation in Xerces wraps a DOMParser. Not sure what more you're expecting to get from DOMParser. Arguably the DocumentBuilder has more capability (e.g. setSchema(ja

Implementation difference of DOMParser and DocumentBuilderFactoryImpl in XercesJ

2008-12-11 Thread Ng, Clarence
Hi. We have been using the documentbuilderfactory interface, which defaults to java's implementation of dom parser (com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactory). We are planning to upgrade it to xerces-j 2.8.1. However we found the interfaceImpl (org.apache.xerces.jaxp.Docum

Re: How to preserve an empty text node?

2008-12-11 Thread ravikanth
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 <[EMAIL PROTECTED]> wrote: > Hi everyone, > I need to create XML that looks like th

RE: XQuery question

2008-12-11 Thread Steve Carton
Look at Saxon -- Michael Kay has a good implementation of XQuery. Steve http://tractare.blogspot.com From: Michael Glavassevich [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2008 10:39 AM To: j-users@xerces.apache.org

Re: XQuery question

2008-12-11 Thread Michael Glavassevich
Probably would have been more appropriate to ask this question on the Xalan mailing list, though as far as I know there is no solution in Apache. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] ajay bhadauria <[EMAIL PROTECTED]> wrot

Re: XQuery question

2008-12-11 Thread Elliotte Harold
ajay bhadauria wrote: Hi, I need to use Xquery in my application. I do not know whether xalan supports XQuery implementations ? If xalan does not support XQuery then what are options I have ? No, Xalan does not. Saxon is likely your best option for a standalone XQuery processor. -- Ellio

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();

XQuery question

2008-12-11 Thread ajay bhadauria
Hi, I need to use Xquery in my application. I do not know whether xalan supports XQuery implementations ? If xalan does not support XQuery then what are options I have ? If I need to implement Xquery processor, is there any source which I could read and can write my own XQuery processor. Th