|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: What's the point of customizing element tags?
I'll interpret your question as: since an XML element can be accessed by its position in an XML document tree, isn't the element name inconsequential? The answer is no. Your example is similar to DOM processing (use of "ChildNode"), which is only one of multiple methods of processing an XML document - so the notion of one accessing/not accessing contents in one single way would not be correct. And even if this were the only way to process an XML document, can one access a given element by assuming that its position in the XML document tree will always be the same in every scenario? Kind Regards, Joe Chiusano Booz | Allen | Hamilton Jeffrey Fitzgerald wrote: > > > Obviously a question from an XML newbie... > > But what is the point of custom naming xml elements when they are not > accessed in an OOP manner? > Here is what I mean: > > <newbie> > <question> > <whatsUp>Whats the point</whatsUp> > </question> > </newbie> > > My understanding is that you don't access the contents using syntax like: > newbie.question.whatsUp.value, but rather an obscure > childNodes[0].childNodes[0].childNodes[0].nodeValue (not even sure if that > is right). But in any case, if you don't use the custom names > then why not do: > > <blah> > <blah> > <blah>... > > Thanks for enlightening me :-)... > > ----------------------------------------------------------------- > The xml-dev list is sponsored by XML.org <http://www.xml.org>, an > initiative of OASIS <http://www.oasis-open.org> > > The list archives are at http://lists.xml.org/archives/xml-dev/ > > To subscribe or unsubscribe from this list use the subscription > manager: <http://lists.xml.org/ob/adm.pl> begin:vcard n:Chiusano;Joseph tel;work:(703) 902-6923 x-mozilla-html:FALSE url:www.bah.com org:Booz | Allen | Hamilton;IT Digital Strategies Team adr:;;8283 Greensboro Drive;McLean;VA;22012; version:2.1 email;internet:chiusano_joseph@b... title:Senior Consultant fn:Joseph M. Chiusano end:vcard
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








