Last post Feb 19, 2012 01:03 AM by Decker Dong - MSFT
Feb 17, 2012 09:11 AM|YugJMallik|LINK
One of my xml element is <StoreID><StoreID/>. And I am using DTD to validated the XML.
Now i want, the xml element valud shoud not be null/empty. It should alway contain some value eg <StoreID>any value<StoreID/>.
How to specify in DTD??
Feb 19, 2012 01:03 AM|Decker Dong - MSFT|LINK
As far as I see，I don't think you can use DTD to validate elements' values directly……；Maybe you can check this：
var result = from e in XDocument.Load("xxx.xml").Descedants("StoreID")
foreach(XElement ele in result)