How get specific element in XMLDocument?

  • Thread starter Thread starter Ronald S. Cook
  • Start date Start date
R

Ronald S. Cook

This XML works fine:

XmlNodeList _XmlNodeList = _XmlDocument.GetElementsByTagName("Path");


However, I want only the particular "Path" element that is nested here:

DeploymentData/AvailableTemplates/FormatTemplate/BackgroundUrl/Path


This doesn't work:

XmlNodeList _XmlNodeList =
_XmlDocument.GetElementsByTagName("DeploymentData/AvailableTemplates/FormatTemplate/BackgroundUrl/Path");


Any idea what does?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top