Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In IE, an XML document does not implement the same document object model as an HTML document; in particular, XML <code>Node</code> objects don't have the <code><a href="https://developer.mozilla.org/En/DOM/Element.children" rel="noreferrer">children</a></code> property, which is non-standard.</p> <p>You should use the <code><a href="http://msdn.microsoft.com/en-us/library/ms757053(VS.85).aspx" rel="noreferrer">childNodes</a></code> collection instead. However be aware that in Firefox and other browsers - and, IIRC, under very specific circumstances in IE - this collection will also include text nodes that contain only whitespace, such as line breaks in the original XML file. So you will need to check the <code><a href="http://msdn.microsoft.com/en-us/library/ms753745(VS.85).aspx" rel="noreferrer">nodeType</a></code> property: if it has the value 1, it is an Element, and will have properties such as <code>tagName</code>.</p> <p>Furthermore, as MSXML implements <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/" rel="noreferrer">DOM Level 1</a>, whereas Firefox implements <a href="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/" rel="noreferrer">DOM Level 3</a>, you won't be able to use the <code>textContent</code> property, which was introduced in Level 3. Instead, you will have to iterate over the <code>childNodes</code> of <code>nodeType</code> === 3 and concatenate their <code><a href="http://msdn.microsoft.com/en-us/library/ms756022(VS.85).aspx" rel="noreferrer">nodeValue</a></code> properties, and probably then will want to trim any leading or trailing whitespace. Alternatively, if you know that there will only ever be textNodes in there, call the <code><a href="http://msdn.microsoft.com/en-us/library/ms759154(VS.85).aspx" rel="noreferrer">normalize</a></code> method of the element first to make sure it only has one text node child.</p> <p>Nobody ever said this stuff was supposed to be easy :-(</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload