Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / October 2004

Tip: Looking for answers? Try searching our database.

streaming "for xml" to sax xslt-transformation

Thread view: 
clogwog - 19 Oct 2004 02:15 GMT
hello,

i'm wondering if anybody can point me to an example how to stream the
resultset (containing XML) to a SAXParser ? the query gets returned
with: "FOR XML RAW" so the xml is broken up into multiple records.

for example:

record1:
<row UNIQUEID="53380601" a="53" /> (.... heaps more of these records
...)<row UNIQUEID="5311111"

record2:
a="125" /> <row UNIQUEID="5660101" a="165" />

and i can't seem to figure out how to combine the records together in
a streaming way (i know i can just collect the complete xml by
appending them to a StringBuffer, but that might get realy realy big)

any idea's are very welcome.
regards,
tom
Mikhail Danilov - 28 Oct 2004 08:52 GMT
> hello,
>
> i'm wondering if anybody can point me to an example how to stream the
> resultset (containing XML) to a SAXParser ? the query gets returned
> with: "FOR XML RAW" so the xml is broken up into multiple records.

Hello,
You can use ByteArrayStream.
For example, you receive at the start the total lenght of data, after this
you store received data in byte array. Then all data is received you can
create ByteArrayStream and translate it to SAXParser...

Regards, Michael


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.