WhiteSpace between XML tags and TextNodes - InfoPath Dev Sign in | Join | Help in Code InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Code » WhiteSpace between XML tags and TextNodes WhiteSpace between XML tags and TextNodes Last post 06-17-2008 04:15 PM by Greg Collins. 1 replies. Page 1 of 1 (2 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 06-17-2008 10:05 AM brew1994 Joined on 10-04-2006 Posts 1 WhiteSpace between XML tags and TextNodes Reply Contact If anyone could advise me on what could be happening here and how to programmatically deal with it, it would be appreciated. I have made a form from the schema construct below and I am trying to perform an enumeration of it. The code works as planned and allows me to iterate through the list; however, text nodes are getting introduced where there is whitespace between XML nodes. During the iteration using nodeName.ToString() method, the text nodes show as #text. When I get rid of the whitespace between the elements, there are no more text nodes. I have tried setting the DOM preservewhitespace property to false, but to no avail. <mainbody infopath related namespaces > <section> <admin_data> </admin_data> <para > </para> </section> </mainbody> Thanks J 06-17-2008 04:15 PM In reply to Greg Collins Joined on 08-08-2006 Posts 2,126 Re: WhiteSpace between XML tags and TextNodes Mark as Not AnswerMark as Answer... Reply Contact What code are you using to enumerate? Its most likely a problem there. The whitespace should not be affecting you if your XPath is set up correctly. Please Visit:BraintroveGreg's Paintings Page 1 of 1 (2 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Thanks
J
What code are you using to enumerate? Its most likely a problem there. The whitespace should not be affecting you if your XPath is set up correctly.