xpath & namespace
-
i introduced a namespace into the XML document and all the Xpath construct did not work. It was working before i introduced the namespace. what is wrong? something 1 something 2 selectNodes(_bstr_t(_T("//TEST")); // working with namespace something 1 something 2 selectNodes(_bstr_t(_T("//TEST")); // error i added the namespace cos i am doing xml schema validation using MSXML4 which turned out to be ok. but with the xmlns..., all the xpath expressions failed. This is my first encountered with namespace in xml document appreciate any help advise. thanks meng
-
i introduced a namespace into the XML document and all the Xpath construct did not work. It was working before i introduced the namespace. what is wrong? something 1 something 2 selectNodes(_bstr_t(_T("//TEST")); // working with namespace something 1 something 2 selectNodes(_bstr_t(_T("//TEST")); // error i added the namespace cos i am doing xml schema validation using MSXML4 which turned out to be ok. but with the xmlns..., all the xpath expressions failed. This is my first encountered with namespace in xml document appreciate any help advise. thanks meng
You need to specify the namespace as well. Read this: *bighugemsaddr*/frlrfsystemxmlxmlnodeclassselectnodestopic1.asp[^]
Shog9 ------
And on the pedestal, these words appear: "My name is Ozymandias, King of Kings, Look on my Works, ye Mighty, and despair!" Nothing beside remains.
-
You need to specify the namespace as well. Read this: *bighugemsaddr*/frlrfsystemxmlxmlnodeclassselectnodestopic1.asp[^]
Shog9 ------
And on the pedestal, these words appear: "My name is Ozymandias, King of Kings, Look on my Works, ye Mighty, and despair!" Nothing beside remains.
-
IMXNamespaceManager
, i think... that said, i've no idea how to use it. However, take a look at this: reallylongmslink/xml2nd_pro_v4_0tyr.asp[^]Shog9 ------
And on the pedestal, these words appear: "My name is Ozymandias, King of Kings, Look on my Works, ye Mighty, and despair!" Nothing beside remains.