Code:
(defun XML()
(if (not xmlc-NODE_ATTRIBUTE)
(code:importlibrary "c:\\windows\\system32\msxml2.dll" "xml")
)
(setq objXMLDoc (vlax-get-or-create-object "MSXML2.DOMDocument"))
;;; (xmlp-put-async objXMLDoc :vlax-false)
;;; (xmlp-put-validateonparse objXMLDoc :vlax-false)
;;; (xmlp-put-resolveExternals objXMLDoc :vlax-false)
(xmlm-load objXMLDoc (findfile "C:\\XML File\\ENGG.xml"))
;;; (setq objNode(vlax-invoke objXMLDoc "selectSingleNode" "l//DrawingInfo//"))
;;; (setq objNodeList(xmlp-get-childnodes objNode))
;;; (while (setq objNode (xmlm-nextnode objNodeList))
;;; (princ (strcat "nodeName: "
;;; (vl-prin1-to-string (xmlp-get-nodeName objNode))
;;; " Value: "(vl-prin1-to-string (xmlp-get-Text objNode)))))
my dear friends, i used these code to get the node name and value
But ,how i can get the attribute name and value from the xml file