[libxml-devel] Status of Patch #7758?

Paul Dlug paul at aps.org
Tue Nov 27 23:41:22 EST 2007


On Nov 27, 2007, at 3:26 PM, Dan Janowski wrote:

> I see the merit in this kind of approach but it cannot conflict with
> the libxml work flow. I.e.:
>
> instead of XML::Document.parse(xml) => Document
> XML::Parser.parse(xml) => Document
>
> If you want to update the patch for the current code base, I am
> willing to apply and eval it.

I updated the original patch from Tobias to work with the current  
subversion trunk (220). I made the suggested modification above so  
it's XML::Parser.parse(xml) rather than XML::Document.parse -- though  
I do think XML::Document.parse is a little bit of a cleaner API.

I also found a bug with namespace assignments, if you assign a  
namespace to a node not associated with a document it segfaults:

doc = XML::Document.new
node = XML::Node.new('root')
node.namespace = "t:test"

I'm not sure what the best way to fix this is since I'm not the  
familiar with the namespace code at this point.


Thanks,
Paul

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libxml-patched.tar.gz
Type: application/x-gzip
Size: 5214 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/libxml-devel/attachments/20071127/552b3363/attachment.gz 
-------------- next part --------------




> On Nov 27, 2007, at 13:48, Paul Dlug wrote:
>
>> I see patch #7758 hasn't been worked on or updated since submission
>> (long ago):
>> http://rubyforge.org/tracker/index.php?
>> func=detail&aid=7758&group_id=494&atid=1973
>>
>> This seems like a great idea and the new parse method solves
>> eliminates the need for part of the patch I submitted   (#15807). Is
>> there any interest in getting this into the current library? I would
>> be happy to modify the patch to bring it up to date with the current
>> trunk version. This would certainly create a much more user friendly
>> API than what currently exists.
>>
>>
>> Thanks,
>> Paul
>> _______________________________________________
>> libxml-devel mailing list
>> libxml-devel at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/libxml-devel
>
> _______________________________________________
> libxml-devel mailing list
> libxml-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/libxml-devel
>



More information about the libxml-devel mailing list