> Why doesn't the SAXReader class has a "read(String xmldoc)"!?
> Sometimes it's necessary to read a string which contains a XML document.
> I had a project that needed this functionality and got the work done
> inventing a little.
> But with a method like this it would have been "one line simple".


Howsabout:

        reader.read( new java.io.StringReader( xmlDoc ) );

Still 1 line.

        -bob


----------------------------------------------------------------------------
                   Bringing you mounds of caffeinated joy
                      >>>     http://thinkgeek.com/sf    <<<

_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to