T
Tim Mavers
I am looking for ways of replacing tags a user has entered in Word and saved
to XML. Basically the user can enter all these tags marked with a special
token I look for. These fields are then replaced by data from a database.
It's a little more complicated than I explain, but this the basic concept.
This happens through a user-initated call from a web application. The
server uses C# (ASP.NET) to load up the Word doc and then uses the Word
interop libraries to search and replace. This is very, very slow.
I am looking for alternatives, namely with XML. The document itself is
considered a "template" and stored in the system as XML (saved from Word).
I can parse through the XML with an XML parser, but content seems to be
chunked out and thus my custom tags could be separated between two WML tags
(i.e. @MYTAG@ may be broken up between the Y and T preventing be for
searching for the exact phrase MYTAG).
Are there efficient ways to transform these documents without needed to
actually load Word?
Thanks,
to XML. Basically the user can enter all these tags marked with a special
token I look for. These fields are then replaced by data from a database.
It's a little more complicated than I explain, but this the basic concept.
This happens through a user-initated call from a web application. The
server uses C# (ASP.NET) to load up the Word doc and then uses the Word
interop libraries to search and replace. This is very, very slow.
I am looking for alternatives, namely with XML. The document itself is
considered a "template" and stored in the system as XML (saved from Word).
I can parse through the XML with an XML parser, but content seems to be
chunked out and thus my custom tags could be separated between two WML tags
(i.e. @MYTAG@ may be broken up between the Y and T preventing be for
searching for the exact phrase MYTAG).
Are there efficient ways to transform these documents without needed to
actually load Word?
Thanks,