Unfortunately not. Other than via using the API itself...

Element element = factory.createElement( "foo" );
element.addText( "blah" );
...

James
-------
http://radio.weblogs.com/0112098/
----- Original Message -----
From: "Jonathan Locke" <[EMAIL PROTECTED]>
To: "Dom4j-User (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, September 17, 2002 6:54 PM
Subject: RE: [dom4j-user] DocumentFragments



Actually, I guess I'm really trying to answer this higher level question:
Is there a lighter weight way to create an Element from an XML fragment
String than:

        String text = "<person> <name>James</name> </person>";
        Document document = DocumentHelper.parseText(text);

Thanks

     Jon

-----Original Message-----
From: Jonathan Locke
Sent: Tuesday, September 17, 2002 10:28 AM
To: Dom4j-User (E-mail)
Subject: [dom4j-user] DocumentFragments



DOM4J has some of the plumbing to do DocumentFragments, but the DOMDocument
implementation says this:

    public org.w3c.dom.DocumentFragment createDocumentFragment() {
        DOMNodeHelper.notSupported();
        return null;
    }

does this mean that DOM4J does not actually support DocumentFragments or is
there
some other way to construct one?

Thanks!!

     Jon



-------------------------------------------------------
This SF.NET email is sponsored by: AMD - Your access to the experts
on Hammer Technology! Open Source & Linux Developers, register now
for the AMD Developer Symposium. Code: EX8664
http://www.developwithamd.com/developerlab
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user


-------------------------------------------------------
This SF.NET email is sponsored by: AMD - Your access to the experts
on Hammer Technology! Open Source & Linux Developers, register now
for the AMD Developer Symposium. Code: EX8664
http://www.developwithamd.com/developerlab
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to