NCIP version 2+ only has a schema. NCIP version 1 has a DTD or a
schema. To make the code comment relevant to NCIP version 2, which
we implement here, I change the sample code to validate with a
schema.
Signed-off-by: Jason Stephenson <jason@sigio.com>
return;
};
- # we could validate against the dtd here, might be good?
- # my $dtd = XML::LibXML::Dtd->parse_string($dtd_str);
- # $dom->validate($dtd);
+ # we could validate against the schema here, might be good?
+ # my $schema = XML::LibXML::Schema->new(string => $schema_str);
+ # eval { $schema->validate($dom); }
# perhaps we could check the ncip version and validate that too
return 1;
}