Re: [xml] ignore undefined namespaces during parsing

2009-09-05 Thread Daniel Veillard
On Fri, Sep 04, 2009 at 05:26:41AM -0700, mini thomas wrote: > Yes I have used xerces. But now I need to use libxml2 and the main road block > is strict namespace validation. So waiting for Daniel's response. I would not suggest to ignore namespace errors in general but if you're trying to rtet

Re: [xml] ignore undefined namespaces during parsing

2009-09-04 Thread Liam R E Quin
On Fri, 2009-09-04 at 05:26 -0700, mini thomas wrote: > Yes I have used xerces. But now I need to use libxml2 and the main > road block is strict namespace validation. So waiting for Daniel's > response. Thanks > Why do you need this? Can you fix the XML? That's usually the best approach. Lia

Re: [xml] ignore undefined namespaces during parsing

2009-09-04 Thread mini thomas
Yes I have used xerces. But now I need to use libxml2 and the main road block is strict namespace validation. So waiting for Daniel's response.   Thanks Mini --- On Fri, 9/4/09, Michael Ludwig wrote: From: Michael Ludwig Subject: Re: [xml] ignore undefined namespaces during parsing To

Re: [xml] ignore undefined namespaces during parsing

2009-09-04 Thread Michael Ludwig
mini thomas schrieb: How to parse with namespace turned off ?? Be aware that this means: How to go back a decade? http://xmlsoft.org/namespaces.html The libxml2 library [...] does namespace lookup automatically when building the DOM tree. I'm not sure this is supported in LibXML2; maybe

Re: [xml] ignore undefined namespaces during parsing

2009-09-04 Thread mini thomas
  Thanks a lot for the quick replies.   How to parse with namespace turned off ??   Thanks, Mini     ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml

Re: [xml] ignore undefined namespaces during parsing

2009-09-04 Thread Michael Ludwig
mini thomas schrieb: So what you are saying is "there is no way to get the xml document serialized with namespaces if it is not namespace-well-formed " ? Have you ever managed to turn water into wine? If it is not namespace-well-formed, parsing it with namespaces turned on yields a syntax err

Re: [xml] ignore undefined namespaces during parsing

2009-09-03 Thread mini thomas
  So what you are saying is "there is no way to get the xml document serialized with namespaces if it is not namespace-well-formed " ?   Thanks Mini    --- On Thu, 9/3/09, Michael Ludwig wrote: From: Michael Ludwig Subject: Re: [xml] ignore undefined namespaces during parsi

Re: [xml] ignore undefined namespaces during parsing

2009-09-03 Thread Michael Ludwig
mini thomas schrieb: std::string s2 = "" xmlDocPtr myDoc = xmlParseDoc((const unsigned char*)s2.c_str()); This is not namespace-well-formed. Not even well-formed. I get the error "namespace error .. namespace prefix nmspace on test1 is not declared" Is it possible to suppress this error ?

[xml] ignore undefined namespaces during parsing

2009-09-03 Thread mini thomas
version used libxml2-2.7.3 platform - windows XP   I am parsing the following  string   std::string s2 = ""  xmlDocPtr myDoc =  xmlParseDoc((const unsigned char*)s2.c_str());   I get the error "namespace error .. namespace prefix nmspace on test1 is not declared"   Is it possible to suppress this