|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Get a node as an InputSource?Last time I asked a question along these lines, it was embarrassingly
obvious. Let's see if I can make a fool of myself again :-) I can use node.asSource() to get an XdmNode as a Source. Is there an equally straightforward way to get one as an InputSource? I need to pass it to another API that only accepts InputSources. Be seeing you, norm -- Norman Walsh <ndw@...> | A man can believe a considerable deal http://nwalsh.com/ | of rubbish, and yet go about his daily | work in a rational and cheerful | manner.--Norman Douglas ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
|
|
Re: Get a node as an InputSource?No, there's no magic answer to this one.
You can get Saxon to stream the contents of a node to a SAX ContentHandler by calling copy() on the NodeInfo object, and supplying a ContentHandlerProxy as the Receiver. But you will need to supply your own implementation of XMLReader that invokes this copy() method when its parse() method is called, and put this XMLReader in the InputSource. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: saxon-help-bounces@... > [mailto:saxon-help-bounces@...] On Behalf > Of Norman Walsh > Sent: 25 August 2008 13:03 > To: saxon-help@... > Subject: [saxon] Get a node as an InputSource? > > Last time I asked a question along these lines, it was > embarrassingly obvious. Let's see if I can make a fool of > myself again :-) > > I can use node.asSource() to get an XdmNode as a Source. Is > there an equally straightforward way to get one as an > InputSource? I need to pass it to another API that only > accepts InputSources. > > Be seeing you, > norm > > -- > Norman Walsh <ndw@...> | A man can believe a considerable deal > http://nwalsh.com/ | of rubbish, and yet go about his daily > | work in a rational and cheerful > | manner.--Norman Douglas > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
| Free Forum Powered by Nabble | Forum Help |