Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

Re: [jdom-interest] How to create a JDOM document from a String

jmt

2006-07-04

Replies:

On Tuesday 04 July 2006 13:53, S??ren Faltz wrote:
> I have a string that i got from a JMS queue.
>
> How do i convert this String into a JDOM document???
>
> thanx guys :)
> S??ren

use a SAXBuilder :

SAXBuilder sb=new SAXBuilder();

Document doc=sb.build(string);

hth

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.