Click here to Skip to main content
15,888,984 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: XML / CSL Macros Pin
led mike7-May-09 4:35
led mike7-May-09 4:35 
Questionchange attributes whitin XML Pin
Member 37528166-May-09 4:50
Member 37528166-May-09 4:50 
QuestionFinding an assembly redirection in app.config Pin
mav.northwind5-May-09 0:40
mav.northwind5-May-09 0:40 
AnswerRe: Finding an assembly redirection in app.config Pin
mav.northwind5-May-09 1:37
mav.northwind5-May-09 1:37 
QuestionSAXModelBuilder vs DOM Parser Pin
Josh Owen4-May-09 9:57
Josh Owen4-May-09 9:57 
AnswerRe: SAXModelBuilder vs DOM Parser Pin
led mike4-May-09 11:09
led mike4-May-09 11:09 
GeneralRe: SAXModelBuilder vs DOM Parser Pin
Josh Owen4-May-09 11:17
Josh Owen4-May-09 11:17 
GeneralRe: SAXModelBuilder vs DOM Parser Pin
led mike5-May-09 4:51
led mike5-May-09 4:51 
Josh Owen wrote:
Do you think that example does actually use the same amount of memory as a DOM parser would?


I don't know, it is certainly possible. I don't understand the significance of that. The authors point, and it is a well known one, is that SAX parsers use less memory and are faster than DOM parsers. I have never studied the implementation of these parsers but the significant difference is that a DOM parser generates a DOM where a SAX parser does not. It is this generation of a DOM that consumes so much more memory and requires more processor instructions.

However if you use a SAX parser to create the same information as a Document Object Model does then you would be re-creating the DOM parser scenario at which point there is no benefit in using SAX. The authors point is, if your model does not need the entire document structure then using SAX to generate your own model will be faster (and use less memory) than generating a DOM and pulling the information out of it to build your model.

Does that help?
GeneralRe: SAXModelBuilder vs DOM Parser Pin
Josh Owen5-May-09 4:57
Josh Owen5-May-09 4:57 
QuestionProblem in parsing xml to html Pin
Gokul.P29-Apr-09 21:02
Gokul.P29-Apr-09 21:02 
AnswerRe: Problem in parsing xml to html Pin
George L. Jackson30-Apr-09 1:56
George L. Jackson30-Apr-09 1:56 
QuestionDegree symbol ° in xml Pin
Gokul.P29-Apr-09 21:01
Gokul.P29-Apr-09 21:01 
AnswerRe: Degree symbol ° in xml Pin
George L. Jackson30-Apr-09 1:54
George L. Jackson30-Apr-09 1:54 
QuestionXml special character Pin
Soundman32.228-Apr-09 5:14
Soundman32.228-Apr-09 5:14 
AnswerRe: Xml special character Pin
Murugesan G29-Apr-09 0:53
Murugesan G29-Apr-09 0:53 
AnswerRe: Xml special character Pin
Member 37528166-May-09 20:08
Member 37528166-May-09 20:08 
QuestionGenerate-id Pin
LordLothar26-Apr-09 4:48
LordLothar26-Apr-09 4:48 
QuestionPhp parameter to xslt Pin
LordLothar25-Apr-09 4:15
LordLothar25-Apr-09 4:15 
QuestionImproving XML read/load performance Pin
Ekjon21-Apr-09 9:16
Ekjon21-Apr-09 9:16 
QuestionRe: Improving XML read/load performance Pin
led mike21-Apr-09 11:05
led mike21-Apr-09 11:05 
AnswerRe: Improving XML read/load performance Pin
Ekjon21-Apr-09 13:09
Ekjon21-Apr-09 13:09 
QuestionForce XML end tag to be on same line with start tag when InnerText is null [modified] Pin
grichard20-Apr-09 9:55
grichard20-Apr-09 9:55 
AnswerRe: Force XML end tag to be on same line with start tag when InnerText is null Pin
George L. Jackson20-Apr-09 11:07
George L. Jackson20-Apr-09 11:07 
GeneralRe: Force XML end tag to be on same line with start tag when InnerText is null Pin
grichard22-Apr-09 8:26
grichard22-Apr-09 8:26 
GeneralRe: Force XML end tag to be on same line with start tag when InnerText is null Pin
George L. Jackson22-Apr-09 12:56
George L. Jackson22-Apr-09 12:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.