alhalayqa wrote:
how can distinguish between XML Node and HTML Node, using attributes or
method ..
In the XML DOM nodes do not have an id property or a className property
while in the HTML DOM nodes do have those properties.
On the other hand there are specializations of the XML DOM like the SVG
DOM where id or className are properties too. Thus if you parse XML with
namespaces with browsers like Mozilla or Opera the parser recognizes
namespaces like the XHTML 1 namespace or the SVG namespace and you get
XHTML elements or SVG elements having id and className properties.
What exactly is it that you want to achieve?
--
Martin Honnen
http://JavaScript.FAQTs.com/