Re: [xml] xmlValidateOneElement - will fill-in defaults yes?

2007-04-24 Thread Daniel Veillard
On Mon, Apr 23, 2007 at 03:24:38PM -0700, Rick Jones wrote: Another chapter in my sputtering netperf4 development :) I want to enable the users of netperf4 to build-up a configuration from an interactive netperf4 session without having to go-out and run an external XML editor to create

[xml] patch: support embed in HTML parser

2007-04-24 Thread Michael Day
Hi, Here is a patch to extend the HTML parser to support the embed element, which is not in standard HTML but is widely used on the web. It seems to work for me, but it would be good if someone could check that I got the magic numbers right in the HTML element array. Best regards, Michael

Re: [xml] patch: support embed in HTML parser

2007-04-24 Thread Daniel Veillard
On Tue, Apr 24, 2007 at 09:02:52PM +1000, Michael Day wrote: Hi, Here is a patch to extend the HTML parser to support the embed element, which is not in standard HTML but is widely used on the web. grin/ where is the limit ? In practice what were the problems except getting (rightful)

Re: [xml] an xpath segfault reproducible with xmllint

2007-04-24 Thread Pavol Rusnak
Petr Pajas wrote: Hi Daniel, All, I have experienced segfaults where just an error should be issued. After playing with the xpath for a while, I have narrowed it to the following test case: ... 5) I'm running libxml2-2.6.27, openSuSE 10.2 I created package with recent version of

[xml] Libxml2 xmlCleanupParser with C++ and Windows DLL

2007-04-24 Thread Trappel Martin
Hi all, Can someone who uses libxml2 on windows maybe comment on this: To get around the multithreading problem with xmlInitParser/xmlCleanupParser I would use a global class object in my dll that makes use uf libxml2 to do the init/cleanup: [code] class XmlInitializationClass { public:

Re: [xml] xmlValidateOneElement - will fill-in defaults yes?

2007-04-24 Thread Rick Jones
So, if I add a node (eg test in netperf DTD entity names FWIW) and if I call xmlValidateOneElement() against that node, will all the defaults from the DTD get filled-in automagically? Hum, no. Validation will not change the document, if it was doing that I would get killed immediatly by