DOM problem: How to parse a string

Hey i am developing a distributed application in which servers pass on a request in XML format.....However this request is passed in the form of a string....I am using DOM to parse the xml. It is a fairly small string with like 7-9 lines of code. However the problem with DOM is that it allows me to parse the files not the strings......anyidea how to do that.....i cannot create temp files.....because there will be a huge number of requests so ..............or should i use another parse........if yes then tell me which is the easiest approach......i just wanna add or remove some tags at each server and then pass the request to the next

[648 byte] By [muneeb] at [2007-9-30 22:00:00]
# 1
parse(new InputSource(new StringReader(yourString)))
DrClap at 2007-7-7 3:27:31 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
thanx but the problem is not solved.........i am importing java.xml.parsers.sax.InputSource..........Now when i use this thingy..........i get a SAX based exception saying that there is no root node..........however for the same file if i put the file name i get the code working
muneeb at 2007-7-7 3:27:31 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
my mistake ,...............got it...............code error..........
muneeb at 2007-7-7 3:27:31 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...