From evan at rdny.com Fri Apr 3 11:04:07 2009 From: evan at rdny.com (Evan Sherwood) Date: Fri, 3 Apr 2009 11:04:07 -0400 Subject: [libxml-devel] XML Formatting on File Updates Message-ID: <98D5DEC2-4608-4A98-A1E6-0A04815CD3DA@rdny.com> Hello, libxml-ruby doesn't seem to honor indent spacing when updating/saving to an existing XML file. I posted a full description of the problem on StackOverflow: http://stackoverflow.com/questions/711051/ruby-libxml-ruby-and-adding-nicely-formatted-sibling-nodes Could you tell me what I might be doing wrong? Thanks. ------------------------------ Evan Sherwood Webmaster / Technical Support evan at rdny.com (212) 807-1414 ext. 230 www.rdny.com From r.timmermans at voormedia.com Thu Apr 16 07:12:38 2009 From: r.timmermans at voormedia.com (Rolf Timmermans) Date: Thu, 16 Apr 2009 13:12:38 +0200 Subject: [libxml-devel] Frequent crashes of libxml-ruby with Ruby 1.9.1 Message-ID: Hi all, Currently we're building a Rails application that uses libxml-ruby (1.1.3) to parse some documents and loop over its contents with xpath expressions. When running the application with Ruby 1.8.7-p72, everything works flawlessly. With Ruby 1.9.1-p0, however, we get frequent double-linked list errors, like the one below. Is this is a known issue? If not, some pointers that may help us isolate the issue would be very welcome. Thank you! Rolf Timmermans r.timmermans at voormedia.com *** glibc detected *** ruby: corrupted double-linked list: 0x0a3686b8 *** ======= Backtrace: ========= /lib/libc.so.6[0x5760f6] /lib/libc.so.6[0x577a98] /lib/libc.so.6(cfree+0x90)[0x57b1e0] /usr/lib/libxml2.so.2(xmlFreeNodeList+0x11d)[0x3c4fdad] /usr/lib/libxml2.so.2(xmlFreeNodeList+0x96)[0x3c4fd26] /usr/lib/libxml2.so.2(xmlFreeNodeList+0x96)[0x3c4fd26] /usr/lib/libxml2.so.2(xmlFreeDoc+0xcb)[0x3c4fb4b] /usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3/lib/ libxml_ruby.so(rxml_document_free+0x23)[0x2fd0b3] ruby[0x805f6c0] ruby[0x805f81c] ruby[0x805fa2e] ruby(rb_thread_execute_interrupts+0x12a)[0x811e65a] ruby[0x810e9ff] ruby[0x8110ed4] ruby[0x81150d5] ruby[0x811719a] ruby(rb_funcall+0x15d)[0x81175ed] ruby(rb_class_inherited+0x57)[0x8134927] ruby[0x8113b01] ruby[0x81150d5] ruby(rb_iseq_eval+0xf5)[0x8115385] ruby(rb_load+0x14c)[0x81484dc] ruby[0x81485f9] ruby[0x810c506] ruby[0x810e7a8] ruby[0x8110ed4] ruby[0x81150d5] ruby[0x811719a] ruby(rb_funcall+0x15d)[0x81175ed] ruby[0x80f9d6c] ruby[0x8113d04] ruby[0x81150d5] ruby(rb_iseq_eval+0xf5)[0x8115385] ruby(rb_load+0x14c)[0x81484dc] ruby[0x81485f9] ruby[0x810c506] ruby[0x810e7a8] ruby[0x8110ed4] ruby[0x81150d5] ruby[0x811719a] ruby(rb_funcall+0x15d)[0x81175ed] ruby[0x80f9d6c] ruby[0x808048c] ruby[0x810c506] ruby[0x810e7a8] ruby[0x8110ed4] ruby[0x81150d5] ruby[0x81156f8] ruby(rb_yield+0x47)[0x8115e77] ruby(rb_ary_each+0x3a)[0x812523a] ruby[0x810e7a8] ruby[0x8110ed4] ruby[0x81150d5] ruby[0x81156f8] ruby(rb_vm_invoke_proc+0x81)[0x8115ac1] ruby[0x805ce94] ruby[0x810c506] ruby[0x810e7a8] ruby[0x8110ed4] ruby[0x81150d5] ruby[0x81156f8] ruby(rb_yield+0x47)[0x8115e77] ruby(rb_ary_each+0x3a)[0x812523a] ======= Memory map: ======== 00110000-00112000 r-xp 00000000 03:02 30082450 /usr/local/lib/ruby/ 1.9.1/i686-linux/etc.so 00112000-00113000 rwxp 00001000 03:02 30082450 /usr/local/lib/ruby/ 1.9.1/i686-linux/etc.so 00113000-00117000 r-xp 00000000 03:02 30082454 /usr/local/lib/ruby/ 1.9.1/i686-linux/strscan.so 00117000-00118000 rwxp 00003000 03:02 30082454 /usr/local/lib/ruby/ 1.9.1/i686-linux/strscan.so 00118000-0011c000 r-xp 00000000 03:02 30082458 /usr/local/lib/ruby/ 1.9.1/i686-linux/iconv.so 0011c000-0011d000 rwxp 00003000 03:02 30082458 /usr/local/lib/ruby/ 1.9.1/i686-linux/iconv.so 0011d000-0012f000 r-xp 00000000 03:02 29329995 /usr/lib/libz.so.1.2.3 0012f000-00130000 rwxp 00011000 03:02 29329995 /usr/lib/libz.so.1.2.3 00130000-00186000 r-xp 00000000 03:02 30214086 /usr/local/lib/ruby/ gems/1.9.1/gems/rmagick-2.9.1/lib/RMagick2.so 00186000-00188000 rwxp 00056000 03:02 30214086 /usr/local/lib/ruby/ gems/1.9.1/gems/rmagick-2.9.1/lib/RMagick2.so 00188000-0018f000 r-xp 00000000 03:02 29333957 /usr/lib/libgomp.so. 1.0.0 0018f000-00190000 rwxp 00006000 03:02 29333957 /usr/lib/libgomp.so. 1.0.0 00192000-0019b000 r-xp 00000000 03:02 117178408 /lib/ libnss_files-2.5.so 0019b000-0019c000 r-xp 00008000 03:02 117178408 /lib/ libnss_files-2.5.so 0019c000-0019d000 rwxp 00009000 03:02 117178408 /lib/ libnss_files-2.5.so 0019d000-002ba000 r-xp 00000000 03:02 117179776 /lib/libcrypto.so. 0.9.8b 002ba000-002cd000 rwxp 0011c000 03:02 117179776 /lib/libcrypto.so. 0.9.8b 002cd000-002d0000 rwxp 002cd000 00:00 0 002d0000-002e7000 r-xp 00000000 03:02 29333922 /usr/lib/libICE.so. 6.3.0 002e7000-002e8000 rwxp 00016000 03:02 29333922 /usr/lib/libICE.so. 6.3.0 002e8000-002ea000 rwxp 002e8000 00:00 0 002ea000-0030b000 r-xp 00000000 03:02 30213745 /usr/local/lib/ruby/ gems/1.9.1/gems/libxml-ruby-1.1.3/lib/libxml_ruby.so 0030b000-0030c000 rwxp 00021000 03:02 30213745 /usr/local/lib/ruby/ gems/1.9.1/gems/libxml-ruby-1.1.3/lib/libxml_ruby.so 00312000-00314000 r-xp 00000000 03:02 30082418 /usr/local/lib/ruby/ 1.9.1/i686-linux/enc/encdb.so 00314000-00315000 rwxp 00001000 03:02 30082418 /usr/local/lib/ruby/ 1.9.1/i686-linux/enc/encdb.so 00315000-0032c000 r-xp 00000000 03:02 30213535 /usr/local/lib/ruby/ gems/1.9.1/gems/sedna-0.4.0/lib/sedna.so 0032c000-0032e000 rwxp 00017000 03:02 30213535 /usr/local/lib/ruby/ gems/1.9.1/gems/sedna-0.4.0/lib/sedna.so 0032e000-00339000 r-xp 00000000 03:02 117178419 /lib/ libgcc_s-4.1.2-20080102.so.1 00339000-0033a000 rwxp 0000a000 03:02 117178419 /lib/ libgcc_s-4.1.2-20080102.so.1 0033a000-00344000 r-xp 00000000 03:02 30082465 /usr/local/lib/ruby/ 1.9.1/i686-linux/bigdecimal.so 00344000-00345000 rwxp 00009000 03:02 30082465 /usr/local/lib/ruby/ 1.9.1/i686-linux/bigdecimal.so 00345000-0034f000 r-xp 00000000 03:02 30082449 /usr/local/lib/ruby/ 1.9.1/i686-linux/socket.so 0034f000-00350000 rwxp 00009000 03:02 30082449 /usr/local/lib/ruby/ 1.9.1/i686-linux/socket.so 00350000-003a6000 r-xp 00000000 03:02 29329996 /usr/lib/libtiff.so. 3.8.2 003a6000-003a8000 rwxp 00056000 03:02 29329996 /usr/lib/libtiff.so. 3.8.2 003b1000-003b9000 r-xp 00000000 03:02 29331820 /usr/lib/libSM.so.6.0.0 003b9000-003ba000 rwxp 00007000 03:02 29331820 /usr/lib/libSM.so.6.0.0 003ba000-004b9000 r-xp 00000000 03:02 29332805 /usr/lib/libX11.so. 6.2.0 004b9000-004bd000 rwxp 000ff000 03:02 29332805 /usr/lib/libX11.so. 6.2.0 004bd000-004d1000 r-xp 00000000 03:02 30082411 /usr/local/lib/ruby/ 1.9.1/i686-linux/enc/trans/single_byte.so 004d1000-004d4000 rwxp 00013000 03:02 30082411 /usr/local/lib/ruby/ 1.9.1/i686-linux/enc/trans/single_byte.so 004ec000-00506000 r-xp 00000000 03:02 117178386 /lib/ld-2.5.so 00506000-00507000 r-xp 00019000 03:02 117178386 /lib/ld-2.5.so 00507000-00508000 rwxp 0001a000 03:02 117178386 /lib/ld-2.5.so 0050a000-0050c000 r-xp 00000000 03:02 29333638 /usr/lib/libXau.so. 6.0.0 0050c000-0050d000 rwxp 00001000 03:02 29333638 /usr/lib/libXau.so. 6.0.0 0050f000-0064c000 r-xp 00000000 03:02 117178393 /lib/libc-2.5.so 0064c000-0064e000 r-xp 0013d000 03:02 117178393 /lib/libc-2.5.so 0064e000-0064f000 rwxp 0013f000 03:02 117178393 /lib/libc-2.5.so 0064f000-00652000 rwxp 0064f000 00:00 0 00654000-00656000 r-xp 00000000 03:02 117178399 /lib/libdl-2.5.so 00656000-00657000 r-xp 00001000 03:02 117178399 /lib/libdl-2.5.so 00657000-00658000 rwxp 00002000 03:02 117178399 /lib/libdl-2.5.so 0065a000-0067f000 r-xp 00000000 03:02 117178407 /lib/libm-2.5.so 0067f000-00680000 r-xp 00024000 03:02 117178407 /lib/libm-2.5.so 00680000-00681000 rwxp 00025000 03:02 117178407 /lib/libm-2.5.so 00683000-00696000 r-xp 00000000 03:02 117178409 /lib/libpthread-2.5.so 00696000-00697000 r-xp 00012000 03:02 117178409 /lib/libpthread-2.5.so 00697000-00698000 rwxp 00013000 03:02 117178409 /lib/libpthread-2.5.so 00698000-0069a000 rwxp 00698000 00:00 0 0069c000-006b2000 r-xp 00000000 03:02 117178425 /lib/libselinux.so.1 006b2000-006b4000 rwxp 00015000 03:02 117178425 /lib/libselinux.so.1 006c2000-006c4000 r-xp 00000000 03:02 30082409 /usr/local/lib/ruby/ 1.9.1/i686-linux/enc/trans/transdb.so 006c4000-006c5000 rwxp 00001000 03:02 30082409 /usr/local/lib/ruby/ 1.9.1/i686-linux/enc/trans/transdb.so 006c5000-006ff000 r-xp 00000000 03:02 30082502 /usr/local/lib/ruby/ 1.9.1/i686-linux/openssl.so 006ff000-00701000 rwxp 0003a000 03:02 30082502 /usr/local/lib/ruby/ 1.9.1/i686-linux/openssl.so 00713000-0071a000 r-xp 00000000 03:02 117178417 /lib/librt-2.5.so 0071a000-0071b000 r-xp 00006000 03:02 117178417 /lib/librt-2.5.so 0071b000-0071c000 rwxp 00007000 03:02 117178417 /lib/librt-2.5.so 00735000-00745000 r-xp 00000000 03:02 29332068 /usr/lib/libbz2.so. 1.0.3 00745000-00746000 rwxp 00010000 03:02 29332068 /usr/lib/libbz2.so. 1.0.3 00748000-00779000 r-xp 00000000 03:02 29345038 /usr/lib/liblcms.so. 1.0.15 00779000-0077a000 rwxp 00030000 03:02 29345038 /usr/lib/liblcms.so. 1.0.15 0077a000-0077d000 rwxp 0077a000 00:00 0 007a1000-007a2000 r-xp 007a1000 00:00 0 [vdso] 007a2000-007e3000 r-xp 00000000 03:02 117179782 /lib/libssl.so.0.9.8b 007e3000-007e7000 rwxp 00040000 03:02 117179782 /lib/libssl.so.0.9.8b 007e7000-00822000 r-xp 00000000 03:02 117178421 /lib/libsepol.so.1 00822000-00823000 rwxp 0003a000 03:02 117178421 /lib/libsepol.so.1 00823000-0082d000 rwxp 00823000 00:00 0 00859000-0085d000 r-xp 00000000 03:02 117178406 /lib/libnss_dns-2.5.so 0085d000-0085e000 r-xp 00003000 03:02 117178406 /lib/libnss_dns-2.5.so 0085e000-0085f000 rwxp 00004000 03:02 117178406 /lib/libnss_dns-2.5.so 008fa000-0090d000 r-xp 00000000 03:02 117179777 /lib/libnsl-2.5.so 0090d000-0090e000 r-xp 00012000 03:02 117179777 /lib/libnsl-2.5.so 0090e000-0090f000 rwxp 00013000 03:02 117179777 /lib/libnsl-2.5.so 0090f000-00911000 rwxp 0090f000 00:00 0 00913000-00918000 r-xp 00000000 03:02 29332053 /usr/lib/libXdmcp.so. 6.0.0 00918000-00919000 rwxp 00004000 03:02 29332053 /usr/lib/libXdmcp.so. 6.0.0 00921000-0092a000 r-xp 00000000 03:02 117179772 /lib/libcrypt-2.5.so 0092a000-0092b000 r-xp 00008000 03:02 117179772 /lib/libcrypt-2.5.so 0092b000-0092c000 rwxp 00009000 03:02 117179772 /lib/libcrypt-2.5.so 0092c000-00953000 rwxp 0092c000 00:00 0 00a36000-00a39000 r-xp 00000000 03:02 30082386 /usr/local/lib/ruby/ 1.9.1/i686-linux/digest.so 00a39000-00a3a000 rwxp 00002000 03:02 30082386 /usr/local/lib/ruby/ 1.9.1/i686-linux/digest.so 00a3c000-00a3d000 r-xp 00000000 03:02 30082446 /usr/local/lib/ruby/ 1.9.1/i686-linux/digest/sha1.so 00a3d000-00a3e000 rwxp 00000000 03:02 30082446 /usr/local/lib/ruby/ 1.9.1/i686-linux/digest/sha1.so 00a4f000-00a50000 r-xp 00000000 03:02 30082445 /usr/local/lib/ruby/ 1.9.1/i686-linux/digest/md5.so 00a50000-00a51000 rwxp 00000000 03:02 30082445 /usr/local/lib/ruby/ 1.9.1/i686-linux/digest/md5.so 00a72000-00a81000 r-xp 00000000 03:02 29333071 /usr/lib/libXext.so. 6.4.0 00a81000-00a82000 rwxp 0000e000 03:02 29333071 /usr/lib/libXext.so. 6.4.0 00a84000-00a93000 r-xp 00000000 03:02 117179780 /lib/libresolv-2.5.so 00a93000-00a94000 r-xp 0000e000 03:02 117179780 /lib/libresolv-2.5.so 00a94000-00a95000 rwxp 0000f000 03:02 117179780 /lib/libresolv-2.5.so 00a95000-00a97000 rwxp 00a95000 00:00 0 00a99000-00a9b000 r-xp 00000000 03:02 117179781 /lib/libcom_err.so.2.1 00a9b000-00a9c000 rwxp 00001000 03:02 117179781 /lib/libcom_err.so.2.1 00a9e000-00aa0000 r-xp 00000000 03:02 117179778 /lib/libkeyutils-1.2.so 00aa0000-00aa1000 rwxp 00001000 03:02 117179778 /lib/libkeyutils-1.2.so 00b19000-00b1e000 r-xp 00000000 03:02 30082457 /usr/local/lib/ruby/ 1.9.1/i686-linux/stringio.so 00b1e000-00b1f000 rwxp 00004000 03:02 30082457 /usr/local/lib/ruby/ 1.9.1/i686-linux/stringio.so 00bd8000-00c05000 r-xp 00000000 03:02 29343114 /usr/lib/ libgssapi_krb5.so.2.2 00c05000-00c06000 rwxp 0002d000 03:02 29343114 /usr/lib/ libgssapi_krb5.so.2.2 00c08000-00c2d000 r-xp 00000000 03:02 29343112 /usr/lib/ libk5crypto.so.3.1 00c2d000-00c2e000 rwxp 00025000 03:02 29343112 /usr/lib/ libk5crypto.so.3.1 00c30000-00c4f000 r-xp 00000000 03:02 117179773 /lib/libexpat.so.0.5.0 00c4f000-00c51000 rwxp 0001e000 03:02 117179773 /lib/libexpat.so.0.5.0 00c53000-00cd0000 r-xp 00000000 03:02 29336990 /usr/lib/ libfreetype.so.6.3.10 00cd0000-00cd3000 rwxp 0007d000 03:02 29336990 /usr/lib/ libfreetype.so.6.3.10 00cf4000-00cfc000 r-xp 00000000 03:02 29343111 /usr/lib/ libkrb5support.so.0.1 00cfc000-00cfd000 rwxp 00007000 03:02 29343111 /usr/lib/ libkrb5support.so.0.1 00cff000-00d8f000 r-xp 00000000 03:02 29343113 /usr/lib/libkrb5.so.3.3 00d8f000-00d92000 rwxp 0008f000 03:02 29343113 /usr/lib/libkrb5.so.3.3 00d9b000-00dbc000 r-xp 00000000 03:02 29329994 /usr/lib/libjpeg.so. 62.0.0 00dbc000-00dbd000 rwxp 00020000 03:02 29329994 /usr/lib/libjpeg.so. 62.0.0 00dca000-00df1000 r-xp 00000000 03:02 29342276 /usr/lib/ libfontconfig.so.1.1.0 00df1000-00df9000 rwxp 00027000 03:02 29342276 /usr/lib/ libfontconfig.so.1.1.0 00e7f000-00e80000 r-xp 00000000 03:02 30082389 /usr/local/lib/ruby/ 1.9.1/i686-linux/fcntl.so 00e80000-00e81000 rwxp 00000000 03:02 30082389 /usr/local/lib/ruby/ 1.9.1/i686-linux/fcntl.so 00ed0000-00eea000 r-xp 00000000 03:02 30082439 /usr/local/lib/ruby/ 1.9.1/i686-linux/syck.so 00eea000-00eeb000 rwxp 0001a000 03:02 30082439 /usr/local/lib/ruby/ 1.9.1/i686-linux/syck.so 00eeb000-010bf000 r-xp 00000000 03:02 29346612 /usr/local/lib/ libMagickCore.so.2.0.0 010bf000-01109000 rwxp 001d4000 03:02 29346612 /usr/local/lib/ libMagickCore.so.2.0.0 01109000-01121000 rwxp 01109000 00:00 0 02d1f000-02d73000 r-xp 00000000 03:02 29333116 /usr/lib/libXt.so.6.0.0 02d73000-02d77000 rwxp 00054000 03:02 29333116 /usr/lib/libXt.so.6.0.0 03c0f000-03d3b000 r-xp 00000000 03:02 29337199 /usr/lib/libxml2.so. 2.6.26 03d3b000-03d40000 rwxp 0012c000 03:02 29337199 /usr/lib/libxml2.so. 2.6.26 03d40000-03d41000 rwxp 03d40000 00:00 0 07d2e000-07eab000 r-xp 00000000 03:02 29345046 /usr/lib/libMagick.so. 10.0.3 07eab000-07ef2000 rwxp 0017d000 03:02 29345046 /usr/lib/libMagick.so. 10.0.3 07ef2000-07f0a000 rwxp 07ef2000 00:00 0 08048000-08192000 r-xp 00000000 03:02 29343788 /usr/local/bin/ruby 08192000-08195000 rw-p 0014a000 03:02 29343788 /usr/local/bin/ruby 08195000-081a5000 rw-p 08195000 00:00 0 08c8a000-0a4fd000 rw-p 08c8a000 00:00 0 b6b00000-b6b21000 rw-p b6b00000 00:00 0 b6b21000-b6c00000 ---p b6b21000 00:00 0 b6c45000-b6c46000 ---p b6c45000 00:00 0 b6c46000-b6d47000 rw-p b6c46000 00:00 0 b6d47000-b6d48000 ---p b6d47000 00:00 0 b6d48000-b6e49000 rw-p b6d48000 00:00 0 b6e49000-b6e4a000 ---p b6e49000 00:00 0 b6e4a000-b762f000 rw-p b6e4a000 00:00 0 b762f000-b7838000 rw-p b7ac6000 00:00 0 b7838000-b793d000 rw-p b7ac6000 00:00 0 b793f000-b79c0000 rw-p b793f000 00:00 0 b79c0000-b7a43000 rw-p b7ac6000 00:00 0 b7a43000-b7ac6000 rw-p b7ac6000 00:00 0 b7b08000-b7b09000 ---p b7b08000 00:00 0 b7b09000-b7c0a000 rw-p b7b09000 00:00 0 b7c0a000-b7c0b000 ---p b7c0a000 00:00 0 b7c0b000-b7c8b000 rw-p b7c0b000 00:00 0 b7c8b000-b7c8c000 ---p b7c8b000 00:00 0 b7c8c000-b7d10000 rw-p b7c8c000 00:00 0 b7d10000-b7f10000 r--p 00000000 03:02 29343096 /usr/lib/locale/ locale-archive b7f10000-b7f12000 rw-p b7f10000 00:00 0 b7f1b000-b7f1c000 rw-p b7f1b000 00:00 0 bfba8000-bfbbd000 rw-p bfba8000 00:00 0 [stack] Aborted From ast at atownley.org Mon Apr 20 19:08:43 2009 From: ast at atownley.org (Andrew S. Townley) Date: Mon, 20 Apr 2009 23:08:43 +0000 Subject: [libxml-devel] SAX callbacks with HTML Parser Message-ID: <1240268923.9992.63.camel@linna> Hi Folks, I've a situation where I really need to be able to get to the libXML2 htmlSAXParseDoc so that I can get SAX events during parsing of HTML documents. I downloaded the source for the latest ruby-libxml release, but I'm not sure if the best way is to add the SAX parser callbacks to the parser context (it looks like they're in there), or if it is to wrap the htmlSAXParseDoc function directly. I should also preface this with the statement that I've never used the C API for libxml2, but I do really need this functionality to get any further with solving my current problem. Any ideas/suggestions (or patches??? :) Cheers, ast -- Andrew S. Townley http://atownley.org From paul at aps.org Tue Apr 21 11:50:21 2009 From: paul at aps.org (Paul Dlug) Date: Tue, 21 Apr 2009 11:50:21 -0400 Subject: [libxml-devel] Updated libxslt-ruby for libxml-ruby > 1.0? Message-ID: <8E9E9A71-6747-46AE-8E59-8C56D293A5AA@aps.org> Is anyone in the process of updating the libxslt-ruby bindings for the latest libxml? The current bindings are based on 0.9.x and segfault if passed a node from libxml-ruby > 1.0. I'm happy to hack up an update if no one else is working on it. --Paul From cfis at savagexi.com Wed Apr 22 01:49:20 2009 From: cfis at savagexi.com (Charlie Savage) Date: Tue, 21 Apr 2009 23:49:20 -0600 Subject: [libxml-devel] Updated libxslt-ruby for libxml-ruby > 1.0? In-Reply-To: <8E9E9A71-6747-46AE-8E59-8C56D293A5AA@aps.org> References: <8E9E9A71-6747-46AE-8E59-8C56D293A5AA@aps.org> Message-ID: <49EEAFE0.7040200@savagexi.com> Hi Paul, > Is anyone in the process of updating the libxslt-ruby bindings for the > latest libxml? The current bindings are based on 0.9.x and segfault if > passed a node from libxml-ruby > 1.0. I'm happy to hack up an update if > no one else is working on it. Hmm, interesting, they work for me. What platform? Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3237 bytes Desc: S/MIME Cryptographic Signature URL: From alex at beautifulpixel.com Wed Apr 22 19:37:58 2009 From: alex at beautifulpixel.com (Alex Wayne) Date: Wed, 22 Apr 2009 16:37:58 -0700 (PDT) Subject: [libxml-devel] Can't seem to supress warning and errors Message-ID: I am parsing a whole of imperfectly formed HTML. In doing so, about 1600 errors are generated and dumped to the log/console every time I parse this feed. Yet it parses fine with the recover option. But the options for supressing the messages don't appear to work. Here's my code: parser = LibXML::XML::HTMLParser.string(Downloader.get (url).clean_html, :options => LibXML::XML::HTMLParser::Options::RECOVER | LibXML::XML::HTMLParser::Options::NOERROR | LibXML::XML::HTMLParser::Options::NOWARNING) page = parser.parse.root Is this the right way to declare the options for supressing errors and warnings? Why aren't they actually supressed. I would worry too much about this normally, but it appears after some profiling it appears printing and handling these errors takes about 20-40% of my total request time in my rails app, so its a fairly large performance issue.