openxml sdk - What exactly does the Open XML SDK v2 take care of that you would have to do manually when coding by hand with an XML library? -
this closely related question asked: is there functionality not exposed in open xml sdk v2?
i working open xml files manually. had @ sdk , surprised find looked pretty low level, quite similar in fact helper classes have created myself. question sdk v2 take care of have manually when coding hand xml library?
for example, automatically patch _rels files when deleting powerpoint slide?
in addition otaku's links, this shows example (near bottom) of navigating openxml document using io.packaging namespace versus sdk.
just microsoft states on download page sdk:
the open xml sdk 2.0 microsoft office built on top of system.io.packaging api , provides typed part classes manipulate open xml documents. sdk uses .net framework language-integrated query (linq) technology provide typed object access xml content inside parts of open xml documents.
the open xml sdk 2.0 simplifies task of manipulating open xml packages , underlying open xml schema elements within package. open xml application programming interface (api) encapsulates many common tasks developers perform on open xml packages, can perform complex operations few lines of code.
i've worked pretty sdk, example, it's nice able grab table out of word document using:
table table = wordprocessingdocument.maindocumentpart.document.body.elements<table>().first();
(i mean, assuming it's first table)
i'd sdk seeks providing sort of intuitive object-based way work documents.
as far automatically patching relationships -- no, doesn't that. , looking @ how state question, guess might (and i'm new open xml isn't gospel means) sdk2.0 doesn't offer functionality, offers more convenient way achieve same functionality. example, still need know relationships when delete element, it's lot easier deal them.
also, there's been efforts on top of sdk add more abstraction -- see, example, extrememl (excel library only. i've never used think things patching relationships).
so i'm sorry if i've rambled bit here. guess short answer is: there's not functionality, there's nice level of abstraction makes achieving functionality lot easier handle -- , if you've been doing hand until now, you'll have understanding of opc understand being abstracted.
Comments
Post a Comment