From: Dan M. <dan...@gm...> - 2010-04-17 13:41:34
|
Hello Detlef, Regarding your question to the eXist list. The file from NIST, like all good standards that are namespace aware, uses a default namespace by the following attribute added to the root element. xmlns="http://scap.nist.gov/schema/feed/vulnerability/2.0" Make sure your query declares this as the default also. declare default element namespace " http://scap.nist.gov/schema/feed/vulnerability/2.0"; Or, optionally use a explicit namespace prefix: declare namespace nist = "http://scap.nist.gov/schema/feed/vulnerability/2.0 "; Then put the prefix in your query your path: nist:entry I would suggest running the XPath expressions in an XML IDE like oXygen to make sure they are correct. Those tools will give you quick feedback on the correctness of XPath expressions. Good luck! - Dan -- Dan McCreary Semantic Solutions Architect syntactica.com 952-460-1674 VOIP: 111@69.199.167.229 |