Thank you, I added tests for all the different format constants we use. Now the code might even work with old versions of libxml2.

Fred

On 15.03.2012 23:17, Ivan Vučica wrote:
Sorry, I didn't notice Riccardo mentioned XML_SAVE_AS_XML. Ubuntu 10.04 has
issues only with XML_SAVE_WSNONSIG.

*2.7.8: Nov 4 2010*
Features: 480323 add code to plug in ICU converters by default (Giuseppe
Iuculano), *Add xmlSaveOption XML_SAVE_WSNONSIG* (Adam Spragg)

On Thu, Mar 15, 2012 at 23:13, Fred Kiefer<[email protected]>  wrote:

I found this documentation on the web:

XML_SAVE_FORMAT   = 1   # format save output            (2.6.17)
        XML_SAVE_NO_DECL  = 2   # drop the xml declaration      (2.6.21)
        XML_SAVE_NO_EMPTY = 4   # no empty tags                 (2.6.22)
        XML_SAVE_NO_XHTML = 8   # disable XHTML1 specific rules (2.6.22)
        XML_SAVE_XHTML = 16     # force XHTML1 specific rules (2.7.2)
        XML_SAVE_AS_XML = 32    # force XML serialization on HTML doc
(2.7.2)
        XML_SAVE_AS_HTML = 64   # force HTML serialization on XML doc
(2.7.2)

And 2.7.2: Oct 3 2008
I will add extra checks for older versions, but we need to come up with a
minimal version that we are going to require.

Fred

On the road

Am 15.03.2012 um 22:16 schrieb Ivan Vučica<[email protected]>:

Ditto on Ubuntu 10.04. I've temporarily disabled this portion of code in
order to test the other changes.

On Thu, Mar 15, 2012 at 14:14, Riccardo Mottola<
[email protected]>  wrote:

Hi,

on my older mingw setup, I get:

  Compiling file NSXMLNode.m ...
NSXMLNode.m: In function `-[NSXMLNode XMLStringWithOptions:]':
NSXMLNode.m:1517: error: `XML_SAVE_AS_XML' undeclared (first use in this
functio
n)
NSXMLNode.m:1517: error: (Each undeclared identifier is reported only once
NSXMLNode.m:1517: error: for each function it appears in.)
NSXMLNode.m:1520: error: `XML_SAVE_WSNONSIG' undeclared (first use in
this funct
ion)
make[4]: *** [obj/libgnustep-base.obj/**NSXMLNode.m.o] Error 1
make[3]: *** [internal-library-all_] Error 2
make[2]: *** [libgnustep-base.all.library.**variables] Error 2
make[1]: *** [internal-all] Error 2
make: *** [internal-all] Error 2

I don't have this problem elsewhere. Perhaps we do require a a more
recent libxml? Perhaps configure should check that.

Riccardo

_______________________________________________
Gnustep-dev mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to