hi,

i am trying to convert a node to string. i am using
the following code


ByteArrayOutputStream out = new
ByteArrayOutputStream();
try{
  Transformer t =
TransformerFactory.newInstance().newTransformer();
  t.transform(new DOMSource(node), new
StreamResult(out));
}catch....

String xmlString = out.toString();

it works fine without a problem. but it adds xml
heading. eg. if i have a node <node1>abcd</node1>

it creates String
<?xml version="1.0" encoding="UTF-8"?>
<node1>abcd</node1>

i need to create string as '<node1>abcd</node1>'.

how is it possible?

thanks

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to