String Concat vs XMLDOM

Results 1 to 2 of 2

Thread: String Concat vs XMLDOM

  1. #1
    Join Date
    Dec 1969

    Default String Concat vs XMLDOM

    Okay, so I&#039;m using ASP to pregenerate XML files from records in a database (I&#039;ve looked at using SQLXML but it doesnt seem to give me the level of customisation that I need) - basically a web service.<BR><BR>At present I&#039;m being very good and using XMLDOM to create my XML structure, but this seems to require a huge amount of code to generate even the simpliest XML. I know that, if I were just to use string concatanation to generate my XML, things would be much neater and smaller.<BR><BR>Whats the general feeling about this? Which method should I be going for?

  2. #2
    Join Date
    Dec 1969

    Default Use the DOM

    It&#039;s much easier to read... imagine the scalability problems involved with string concat. I tell you to add 50 more nodes, and then next thing you know you have 500 lines of concats.<BR><BR>The following programmer would surely murder you, and there wouldn&#039;t be a jury in the world that would convict him.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts