Re: How to get reference to an object



Is an html document. DOM is a tree that can contain different nodes, like
Elements, Attr, Comments, DocumentFragment and Text. I know the name or ID
for the node I need but I dont know how to reference the node by ID since
there's no GetNodeByID function....just GetElementByID


"Martin Honnen" <mahotrash@xxxxxxxx> wrote in message
news:uyoRNikiGHA.4896@xxxxxxxxxxxxxxxxxxxxxxx


Alex D. wrote:
but I need to be able to get all kind of DOM nodes and not only Elements.
I also need Comments, Attr, Text...etc

What is the name of a comment or text node in your understanding?
Are you searching in a HTML document or in an XML document (where the
latter might allow XPath searches)?

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/


.



Relevant Pages

  • Re: How to get reference to an object
    ... I also need Comments, Attr, Text...etc ... Are you searching in a HTML document or in an XML document? ...
    (microsoft.public.scripting.jscript)
  • Re: SQL for presentation
    ... It's yet common in web application to have an internal tree representing the "hierarchic tag scheme". ... Some web template systems also create this tree, then transform it to it's textual representation. ... So, yes, an HTML document is a structure. ... note easy to express in a SQL DBMS (BTW, if anyone has a usable SQL schema for a HTML document, I'd be very interested). ...
    (comp.databases.theory)
  • Re: dereferencing hashes
    ... If I'm understanding this right each tag of the tree is ... put inside the tree as a hash reference with hash references inside ... i need to be able to pull data out ... in the same place in the HTML document, but this is a little risky if ...
    (perl.beginners)
  • Re: html as xml document on IE
    ... opera and safari the html document ... inherits their XML document methods. ... IE does not implement W3C DOM Level 2 for the most part. ...
    (comp.lang.javascript)
  • Re: libxml: is it possible not to use doctype declaration?
    ... thanks for the suggestion. ... The document is not an HTML document. ... an XML document. ... resolve it. ...
    (comp.lang.ruby)