Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery XML parsing with namespaces
    primarykey
    data
    text
    <p>I'm new to jQuery and would like to parse an xml document.</p> <p>I'm able to parse regular XML with the default namespaces but with xml such as:</p> <pre><code>&lt;xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema"&gt; &lt;s:Schema id="RowsetSchema"&gt; &lt;s:ElementType name="row" content="eltOnly" rs:CommandTimeout="30"&gt; &lt;s:AttributeType name="ows_ID" rs:name="ID" rs:number="1"&gt; &lt;s:datatype dt:type="i4" dt:maxLength="4" /&gt; &lt;/s:AttributeType&gt; &lt;s:AttributeType name="ows_DocIcon" rs:name="Type" rs:number="2"&gt; &lt;s:datatype dt:type="string" dt:maxLength="512" /&gt; &lt;/s:AttributeType&gt; &lt;s:AttributeType name="ows_LinkTitle" rs:name="Title" rs:number="3"&gt; &lt;s:datatype dt:type="string" dt:maxLength="512" /&gt; &lt;/s:AttributeType&gt; &lt;s:AttributeType name="ows_ServiceCategory" rs:name="Service Category" rs:number="4"&gt; &lt;s:datatype dt:type="string" dt:maxLength="512" /&gt; &lt;/s:AttributeType&gt; &lt;/s:ElementType&gt; &lt;/s:Schema&gt; &lt;rs:data&gt; &lt;z:row ows_ID="2" ows_LinkTitle="Sample Data 1" /&gt; &lt;z:row ows_ID="3" ows_LinkTitle="Sample Data 2" /&gt; &lt;z:row ows_ID="4" ows_LinkTitle="Sample Data 3" /&gt; &lt;/rs:data&gt; &lt;/xml&gt; </code></pre> <p>All I really want are the <code>&lt;z:row&gt;</code>'s.</p> <p>So far, I've been doing:</p> <pre><code>$.get(xmlPath, {}, function(xml) { $("rs:data", xml).find("z:row").each(function(i) { alert("found zrow"); }); }, "xml"); </code></pre> <p>With really no luck. Any ideas? Thanks.</p>
    singulars
    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.
 

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