07-28-2013 09:02 PM - edited 07-28-2013 09:04 PM
Bob_Schor wrote: However, if you don't "take a chance of making a fool of yourself", you are not likely to learn (as fast) from your mistakes!
I wholeheartedly agree. Humility is not only a desirable quality, it empowers you to learn.
"Experience: that most brutal of teachers. But you learn, my God do you learn." C. S. Lewis
08-29-2013 03:44 PM
I highly recommend using the LibXML libraries that Troy created in the previously linked article. For large files, I'm seeing an over 500x speed improvement.
08-29-2013 05:19 PM
I remember reading some XML files and having slow performance. It boiled down to String subset when extracting the tags (it was no XML vi's just string handling), so i shift registered the offset of last read and used the original string with different offsets instead of recreating the string. If was a BIG difference.
/Y
09-03-2013 06:43 PM
Here's our updated version of the LibXML LabVIEW wrappers that Troy posted. They're updated for naming conventions, connectors, icons, a little documentation, and some additional wrappers have been created for functionailty in the LibXML DLL's that I needed for my particular applicaton. There are surely many more functions that others might find useful.
09-04-2013 02:15 AM
Impressive difference, well done!
/Y
08-10-2022 08:53 AM - edited 08-10-2022 08:55 AM
Hi together,
I have the same problem parsing or generating XML with the NI.lib (DOMUserDefRef.dll).
NI will not fix this issue in the near future, so I have to use Libxml2 or another toolkit.
Have you ever tried MS LINQ to XML ?
Documentation is here: https://docs.microsoft.com/en-us/dotnet/standard/linq/linq-xml-overview?
I tried this .Net Implemenation quickly and it looks also much better than the NI solution 🙂
So I´m not sure what is the best solution.
08-11-2022 07:27 AM
@-Helmut- wrote:
Hi together,
I have the same problem parsing or generating XML with the NI.lib (DOMUserDefRef.dll).
NI will not fix this issue in the near future, so I have to use Libxml2 or another toolkit.
Have you ever tried MS LINQ to XML ?
Documentation is here: https://docs.microsoft.com/en-us/dotnet/standard/linq/linq-xml-overview?I tried this .Net Implemenation quickly and it looks also much better than the NI solution 🙂
So I´m not sure what is the best solution.
DOMUserDefRef.dll is published by the World Wide Web Consortium (W3C) and NI could not change it if they wanted too. NI merely implements the dll exactly like every other platform does that uses eXtensible Mark-up Language to exchange data. Since there are only so many lines on a data bus, DOMUserDefRef.dll has not been made threadsafe and each call is blocking.
That is one factor you need to consider when choosing a file format. XML is not the fastest but does have wide cross Platform applications since everything is in 1 dll.