XML file format
-
Hi, I am creating an in-memory xml file using XMLDOM. Does this xml file need to be formatted with CRLFs so that each node is on a new line or does the file as a single line with all the nodes make a difference? The file has been formatted properly, with begin and end tags but the fact it is saved as one line make a difference? I feel that it should not make a difference as long as all the tags are set up properly. For example: With breaks:
/address> Without breaks
/address> Many thanks.
-
Hi, I am creating an in-memory xml file using XMLDOM. Does this xml file need to be formatted with CRLFs so that each node is on a new line or does the file as a single line with all the nodes make a difference? The file has been formatted properly, with begin and end tags but the fact it is saved as one line make a difference? I feel that it should not make a difference as long as all the tags are set up properly. For example: With breaks:
/address> Without breaks
/address> Many thanks.
Either format is okay! However, the format without breaks loads and parses faster, saves disk space, and possibly some memory. By the way, if you want to make your XML file even smaller, use attributes wherever possible.
"We make a living by what we get, we make a life by what we give." --Winston Churchill