Jean-Baptiste,

You only need to use DocumentContainer if the XML is loaded lazily from
a file or a URL.  In all other cases you simply use the DOM/JDOM
document or element itself without wrapping it into a
DocumentContainer. The document/element can be the root of the tree,
supplied to JXPath as the argument of the newContext() method, or it
can be a value of a property, variable etc.

I hope this helps.

- Dmitri Plotnikov


--- Jean-Baptiste REURE <[EMAIL PROTECTED]> wrote:
> Hi all,
> A quick question from a newbie here.
> I wanted to use JXPath in my application and I was looking for a way
> to use
> Containers on dynamic data.
> The only way to use a DocumentContainer now is to provide a URL of
> the xml
> file containing the data.
> I wanted to know if it was possible (maybe it is hidden somewhere...)
> to
> provide a stream of some kind or a String as the xml data.
> My application is generating XML data dynamically and the use of
> JXPath
> could be very useful for me in this case. Right now, I have
> implemented the
> saving of the dynamic data in a temporary file and use a
> DocumentContainer
> object. It works fine but is a bit heavy.
> 
> Thanks for your response,
> 
> Jean-Baptiste REURE
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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

Reply via email to