The XPATH is working, but its the wrong XPATH.
Code:
<manifest identifier="SingleCourseManifest" version="1.1"
xmlns="..imsproject.org/xsd/imscp_rootv1p1p2"
xmlns:adlcp="..adlnet.org/xsd/adlcp_rootv1p2"
xmlns:xsi="..w3.org/2001/XMLSchema-instance"
The clue is highlighted above - your XML elements are all in the default namespace. You haven't declared this namespace in your code, nor specified a namespace in the XPATH query.
Add the following line:
Code:
nsmgr.AddNamespace("ns01", "..imsproject.org/xsd/imscp_rootv1p1p2");
and then change the XPATH expression accordingly:
Code:
XmlNodeList Nodelst = doc.SelectNodes("//ns01:item", nsmgr);
/- Sam Judson : Wrox Technical Editor -/