logo       

Re: easy XML root question?: msg#00015

Subject: Re: easy XML root question?
Thanks ...but the question I was raising was that the document  format was
XML (not HTML)

however  it does appear that document.documentElement is the correct syntax
but there may be a timing issue.

for example .alert(
window.frames['xmldoc']..document.documentElement.tagName) does work if the
document has fully
finished loading.

the problem APPEARS to be that a document onload event  does not necessarily
mean that the document is actually ready  for returning the
documentElement.tagName





"R_O_O_K" <rook@xxxxxxxx> wrote in message
news:c5jj0i$15v7$1@xxxxxxxxxxxxxxxxxx
> Dnia 2004-04-14 14:40, U¿ytkownik rvj napisa³:
> > how do you determine the root node in an xml file?
> >
> > I seem to remember  something documentElement that did this?
> >
> > <?xml version="1.0"?>
> > <?xml-stylesheet href="xml.css" type="text/css"?>
> > <slide  xmlns:html="http://www.w3.org/1999/xhtml";  >
> > ...
> > </slide>
> >
> >
> >
> > alert(windows.frames['xml'].documentElement )  // slide !
> >
> >
>   alert(windows.frames['xml'].contentDocument.documentElement )
>
>
> nsIDOMHTMLElement.contentDocument returns a nsIDOMDocument, wchich can
> be further navigated and processed.
>
> See http://xml.coverpages.org/dom.html#DOMLevel2 (this is DOM v2
> specification by W3C). Mozilla folows that spec closely and thus it's
> the best resource for mozilla DOM programmers I know
>
> Michal Ziemski
>


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
web.pylons.gene...    hurd.l4/2002-10...    kernel.commits....    user-groups.lin...    yellowdog.gener...    java.drools.use...    security.openva...    package-managem...    linux.debian.us...    qnx.openqnx.dev...    genealogy.gramp...    file-systems.if...    voip.wengophone...    tex.context/200...    ietf.smime/2003...    audio.csound.de...    culture.region....    xfree86.devel/2...    mobile.kannel.u...    distributed.con...    education.engli...    org.user-groups...    bug-tracking.gn...    recreation.bicy...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe