Ok this is weird. But when you say "XML tree in RAM" i think it does not make a 
difference whether you use it from a servlet or a normal Java class coz the tree will 
always be created in the RAM. 

I have a hunch that this might be some class loading problem coz your servlet and the 
container (tomcat?) might be using different/conflicting versions of the XML api. Do 
you think this could be the problem? How do you define the classpath for your server? 
Where have you placed the xml parser libs; in WEB_INF/lib? Also I assume since you 
have no problems in running the code outside the server, your XML file is formatted 
properly. Are you catching/stack-tracing all exceptions?

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED] Behalf Of h
Sent: Friday, July 09, 2004 1:19 PM
To: [EMAIL PROTECTED]
Subject: Re: Servlet which read and change xml file


I think i haven't declared it clearly!
It cant be a problem of path because, firstly, with an
openXMLAndReaditPlease() procedure,  which use the same path i can read
individually node's value of xml file . I can put out all values too.
That means i have access to file. The problem is if you call for example
document.getDocumentElement() , normally
you will get the complete XML Tree(that is what i will and later save this
as userlist2.xml)
But in this case i get only this line as result of this call --> [listeuser
: null]
you see the application try to get root element of XML file (<listeuser> is
root Element
in XML file and  has some child call <user>)
The other reason is, that with the almost same Code and same path but not in
 Servlet version
I have not at all problems.!!
It seems to be a problem with mapping of XML Tree in RAM  when i try  to use
servlet and XML together??????????

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to