OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Elements or Attributes

[ Lists Home | Date Index | Thread Index ]
  • From: "Abhishek Srivastava" <abisheks@india.hp.com>
  • To: "xml dev mailing list" <xml-dev@ic.ac.uk>
  • Date: Mon, 22 Nov 1999 12:56:59 +0530

Hi,
 
I have the following XML doc:
 
<screen>
<height> 480 </height>
<width>  640 </width>
</screen>
 
Another way of creating the same document would be:
 <screen height="480" width="640"> </screen>
 
Is there any difference in the two approaches in terms of
1. Memory Consumption
2. Speed of Building the DOM
3. Speed of recursively searching the DOM say for value of "width".
 
How can I determine which approach is appropriate for my application.
Can anyone help me in choosing between the two.
I am using XML4C2_3_1 on HP-UX and Win NT.
 
regards,
Abhishek.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    _/               Abhishek Srivastava
   _/                Hewlett Packard ISO      
  _/_/_/   _/_/_/    -------------------  
 _/    /   _/   _/     (Work)   +91-80-2251554 x1190
_/  _/   _/_/_/      (Ip)     15.10.47.37           
        _/           (Url)    http://sites.netscape.net/abhishes/index.html                       
       _/           
                     Work like you don't need the money.
                     Dance like no one is watching.
                     And love like you've never been hurt.
                     --Mark Twain                      
                    
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS