Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Displayig XML [Thread Next] Re: Displayig XMLTo: NULL Date: 8/5/2007 2:33:00 PM HSalim[MVP] wrote: > I'm using a DevExpress XtraGrid in VS2005 to display my XML document.(see > sample doc below) > problem is the grid dispalys a lot of empty nodes. > > I want just those nodes that have data - From the example below, i want to > display > only these nodes > <eConnectRMTrxNotes> > <taRMDistribution> but not <taRMDistribution_Items> > <taAnalyticsDistribution> > <taRMTransaction> > How can I suppress the "empty" nodes? That will depend on that grid control you are using. I am not familiar with that control. If you can use XPath then you can select elements with child nodes as follows //*[node()] and elements with text child nodes as follows //*[text()] -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
