Re: [xml] Memory leak problem

2019-11-26 Thread Eric Eberhard
Thank you! I will Google and see if they have an AIX version. E -Original Message- From: Lara Blatchford [mailto:lara.blatchf...@nteligen.com] Sent: Tuesday, November 26, 2019 2:34 PM To: Eric Eberhard ; 'BR Chrisman' Cc: xml@gnome.org Subject: RE: [xml] Memory leak problem

Re: [xml] Memory leak problem

2019-11-26 Thread Eric Eberhard
t back to the group when done and solved. Have a GREAT Thanksgiving, E -Original Message- From: Liam R E Quin [mailto:l...@holoweb.net] Sent: Tuesday, November 26, 2019 7:17 PM To: Eric Eberhard ; 'BR Chrisman' Cc: xml@gnome.org Subject: Re: [xml] Memory leak problem On Tue, 20

Re: [xml] Memory leak problem

2019-11-26 Thread Eric Eberhard
o:xml-boun...@gnome.org] On Behalf Of BR Chrisman via xml Sent: Sunday, November 24, 2019 12:57 PM Cc: xml@gnome.org Subject: Re: [xml] Memory leak problem On Sat, Nov 23, 2019 at 10:04 AM Eric Eberhard wrote: > > I have used libxml2 since it was libxml so I can’t believe I am having this > pr

[xml] Memory leak problem

2019-11-23 Thread Eric Eberhard
I have used libxml2 since it was libxml so I can't believe I am having this problem. I'm looking for someone smarter than me to help out. I use only the DOM (memory) parser, and an old version at that: libxml2-2.7.3 I have a program that makes many XML files. They, alone, are not a proble

Re: [xml] Research about vulnerabilities

2019-10-29 Thread Eric Eberhard
ot; before executing the application and it was easy to remove. Security is a funny issue. E -Original Message- From: Aleksey Sanin [mailto:alek...@aleksey.com] Sent: Tuesday, October 29, 2019 3:41 PM To: Eric Eberhard ; 'Webb Scales' ; 'Raphael de Carvalho Muniz' Cc: x

Re: [xml] Research about vulnerabilities

2019-10-29 Thread Eric Eberhard
I agree. I also don’t think people attack XML parsing. The sending/receiving can be done encrypted. This seems a lot like a theoretical problem, not a real-world problem. My feelings are that protecting against all possible attacks is not possible. Or stupid programming. Take the phy

Re: [xml] Recovering from errors in an XML "stream"

2019-09-24 Thread Eric Eberhard
Like I said, read into a string, then parse that. You can skip the garbage like CR/LF … in our case if it all goes into the string in one read then so what, we still parse them one at a time … Eric From: xml [mailto:xml-boun...@gnome.org] On Behalf Of Webb Scales Sent: Monday, September 09,

Re: [xml] Recovering from errors in an XML "stream"

2019-09-24 Thread Eric Eberhard
You can easily read the XML using TCP/IP yourself and find the ending tag, process, read the next document, process, etc. We do that always (much easier than other ideas). You know the ending tag from the starting tag and there are issues about blocking and non-blocking reads. We read one byt

Re: [xml] updating namespace prefix of QName

2019-08-29 Thread Eric Eberhard
In these weird cases - and I have a few - if you have the performance for your task, just load it as is (or as you created) then write to disk. Have a small C program change it. Reload it. Tacky but always works. Simple too. Slightly less performance which if that matters is a bad idea. I hav

Re: [xml] Is LIBXML_STATIC_FOR_DLL safe to use in all circumstances?

2019-08-22 Thread Eric Eberhard
Thanks for info. Why one needs static for DLL is beyond me. Why not use DLL for libxml2 if using DLL distribution - nobody will be updating your application and with a DLL they could update libxml2 . ouch. I always use static with static - like I care that the application is a little bigger and

Re: [xml] Xml Question

2019-07-05 Thread Eric Eberhard
t;cur,tmp); } >From being you original file and cur being your current little file. E -Original Message- From: xml [mailto:xml-boun...@gnome.org] On Behalf Of Eric Eberhard Sent: Friday, July 05, 2019 12:19 PM To: 'Liam R

Re: [xml] Xml Question

2019-07-05 Thread Eric Eberhard
riday, July 05, 2019 2:24 PM To: Eric Eberhard ; 'Ashjan Alsulaimani' ; xml@gnome.org Subject: Re: [xml] Xml Question On Fri, 2019-07-05 at 12:18 -0700, Eric Eberhard wrote: > Dear Ashjan, > > If it was me I'd do it the cheap way and not use the parser. Make sure to handle

Re: [xml] Xml Question

2019-07-05 Thread Eric Eberhard
Dear Ashjan, If it was me I'd do it the cheap way and not use the parser. Get the file and then read through it with your favorite language and look for starting tags you want moved, then scan until you hit the ending tag, write that out. Rinse and repeat. You can use the parser on each piece yo

Re: [xml] XInclude and in-scope namespaces

2018-10-25 Thread Eric Eberhard
I have found name spaces to be completely frustrating. Big companies (like Fedex) don't handle them "properly" in that if a namespace applies to the document they don't carry it through for each block. I finally gave up on using libxml2 namespaces (which are correct -- if the rest of the world

Re: [xml] Is there a solution to have newline delimited output for xmllint ?

2018-09-26 Thread Eric Eberhard
I have a program I pre-process and post-process all my XML. One of the main thing it does is fix CR/LF versus CR versus LF ... in some cases where people send me XML all in one string (UGLY) I simply load it and write it back out with libxml2 ... now it is formatted pretty with correct CR/LF :-)