Reading from an external XML file. - InfoPath Dev Sign in | Join | Help in Newbie Questions 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 » Newbie Questions » Reading from an external XML file. Reading from an external XML file. Last post 06-14-2007 08:11 AM by davidair. 18 replies. Page 2 of 2 (19 items) < Previous 1 2 Sort Posts: Oldest to newest Newest to oldest Previous Next 06-14-2007 07:40 AM In reply to seadsead Joined on 06-12-2007 Ottawa, Ontario, Canada Posts 14 Re: Reading from an external XML file. Mark as Not AnswerMark as Answer... Reply Contact Very Helpfull, thankswould there be a reason why, I can't use ReadLine in a Loop statement??ex:tmpTxt = SoftwareXML.ReadLine ' <-- Worksdo while true if ( (tmpTxt = "") or (tmpTxt = EOF))then Exit Do else tmpTxt = SoftwareXML.ReadLine ' <-- Doesn't Works end if loop I just want to read through the file first 06-14-2007 07:48 AM In reply to davidair Joined on 01-14-2007 Canada Posts 282 Re: Reading from an external XML file. Mark as Not AnswerMark as Answer... Reply Contact I am not sure why it does not work - have not used the FSO in a while. But maybe you could just use ReadAll() instead of ReadLine() and not worry about while loops... David Airapetyan / Software Services ArchitectQdabra® Software / Streamline data gathering to turn process into knowledge 06-14-2007 08:05 AM In reply to seadsead Joined on 06-12-2007 Ottawa, Ontario, Canada Posts 14 Re: Reading from an external XML file. Mark as Not AnswerMark as Answer... Reply Contact good point, lol, I think I'm losing it...... I just find it rediculous that, To read XML, you have to convert to text then back to XML, Why do we have to have a middle man??anyways it works, THANKS A BUNCH 06-14-2007 08:11 AM In reply to davidair Joined on 01-14-2007 Canada Posts 282 Re: Reading from an external XML file. Mark as Not AnswerMark as Answer... Reply Contact Hey, you're welcome! I think the reason why these contorsions are needed is because there is some obscure bug with reading the XML directly. David Airapetyan / Software Services ArchitectQdabra® Software / Streamline data gathering to turn process into knowledge Page 2 of 2 (19 items) < Previous 1 2 Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Very Helpfull, thanks
would there be a reason why, I can't use ReadLine in a Loop statement??
ex:
tmpTxt = SoftwareXML.ReadLine ' <-- Works
do while true if ( (tmpTxt = "") or (tmpTxt = EOF))then Exit Do else tmpTxt = SoftwareXML.ReadLine ' <-- Doesn't Works end if loop
I just want to read through the file first
good point, lol, I think I'm losing it......
I just find it rediculous that,
To read XML, you have to convert to text then back to XML, Why do we have to have a middle man??
anyways it works,
THANKS A BUNCH
Hey, you're welcome! I think the reason why these contorsions are needed is because there is some obscure bug with reading the XML directly.