Programming

닷넷에서 xml 처리

vicjung 2011. 11. 14. 02:30

더 있을수도 있지만 우선은

 

CHOICES

PROS

CONS

XmlTextReader

-Fastest
-Most efficient (memory)
-Extensible

-Forward-only
-Read-only
-Requires manual validation

XmlValidatingReader

-Automatic validation
-Run-time type info
-Relatively fast & efficient
(compared to DOM)

-2 to 3x slower than XmlTextReader
-Forward-only
-Read-only

XmlDocument (DOM)

-Full traversal 
-Read/write 
-XPath expressions

-2 to 3x slower than XmlTextReader/XmlValidatingReader
-More overhead than XmlTextReader/XmlValidatingReader

XPathNavigator

-Full traversal
-XPath expressions
-XSLT integration
-Extensible

-Read-only 
-Not as familiar as DOM

XPathDocument

-Faster than XmlDocument
-Optimized for XPath/XSLT

-Slower than XmlTextReader