XML
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists XML

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old April 9th, 2008, 09:31 AM
Martin Gallagher
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Best way to create an XML document

Depends on the requirements IM

Creating via DM can advantageous if further manipulation via the DM is
required. This will remove the overhead of creating a string and the initial
parse to a DM object.

If you data source is correctly encoded and standardised you can create XML
documents more efficiently by using strings.

1) Creating a XML string by hand can become cumbersome, if XML is
huge. Maintaining the correct parent child relationship for a huge
document can be difficult, if done by hand (imagine a document of size
50 MB). This would lead to difficult debugging. Using a DM API can do
this inherently in memory.
>


Program logic can overcome the "by-hand" issue.


>

2) It's difficult to remember correct XML name conventions if done by
hand.
>

for e.g., <9abcis an invalid XML name (because it starts with a number).
>

There are more rules for XML names.
>

Using DM API does this automatically.


I guess this depends entirely on experience of the developer in regards to
XML.

3) Using DM API can check well-formedness of entities (like, &abc;
etc). Doing this by hand in a string can become difficult.


This certainly is a major benefit; like a interpretted language you get to
see where you go wrong as you're constructing the DM object.

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists XML > Best way to create an XML document


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway