[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Using XSL or SAX to create a DOM object

Subject: Using XSL or SAX to create a DOM object
From: Matt Heckel <matt_heckel@xxxxxxxxx>
Date: Tue, 12 Dec 2006 11:51:45 -0800 (PST)
how to create dom object
The application I work on receives XML messages that
are used instantiate DOM objects for editing before
storing in an XML database.  It works fine if the
inbound messages are relatively small.  But for large
messages there is too much overhead from creating a
DOM object on the whole message and performance is
problem.

I'm trying to come up with a way to improve
performance.

The inbound messages contain <transaction> tags which
in turn contain <document> tags.  There can be upto
100 <transaction> tags which can each contain upto 100
<document> tags.  Business logic processing is
performed by the application on each individual
<document> tag.

Currently, a DOM object is created for the entire
message and then used to access each of the <document>
tags.  I'm thinking it would be more efficient to
parse the message some other way and create a DOM
object for each of the <document> tags.

Can XSL or SAX be used to 'chunk down' the message to
the <document> tag level and then instantiate DOM
objects for each of the tags?  If so, briefly, what
steps would be involved or could you provide a
reference.  Thanks~




 
____________________________________________________________________________________
Have a burning question?  
Go to www.Answers.yahoo.com and get answers from real people who know.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.