LibXML::XML::Document.validate(LibXML::XML::Schema) fails with Segmataion fault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libxml-ruby (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Architecture: x86_64
Description: Ubuntu 9.04
Release: 9.04
libxml-ruby1.8: 0.9.4-1
When i call `ruby information_
the same xml / xsd files works with `xmllint --schema version.xsd version.xml` without any problem.
# Start of Code ####
require File.dirname(
require 'libxml'
class MylynConnector:
def setup
@controller = MylynConnector:
@request = ActionControlle
@response = ActionControlle
end
def test_version
get :version
.
.
xmldoc = LibXML:
schema = read_schema 'version'
valid = xmldoc.validate schema # produces the segmentation fault
end
protected
def read_schema name
schemapath = File.dirname(
schemadoc = LibXML:
LibXML:
end
end
# End of Code ####
The same xml / xsd files works with `xmllint --schema version.xsd version.xml` without any problem.
Shame on me, i have mistaken the methods.
I have to call validate_schema