U
user
Hi,
I am fairly new to XML, and would like some pointers on the following :
I need to validate a _part_ of an xml file with a schema, and do not
care what is there above/below that chunk. I will be using Perl for this.
The approach I can think of would be to validate against a schema with
everything above/below the required part as optional.
Or, I could parse the XML, extract that into a temporary file so that
the required xml is now a root node, and validate with a schema
containing only information related to that.
However, I was just wondering if there is any other simpler way to do it
(with Perl)? I have heard og XPath and the XML::Twig modules, but am not
sure if those will make my design simpler or more complex ?
Suggestions ?
TIA
Am
I am fairly new to XML, and would like some pointers on the following :
I need to validate a _part_ of an xml file with a schema, and do not
care what is there above/below that chunk. I will be using Perl for this.
The approach I can think of would be to validate against a schema with
everything above/below the required part as optional.
Or, I could parse the XML, extract that into a temporary file so that
the required xml is now a root node, and validate with a schema
containing only information related to that.
However, I was just wondering if there is any other simpler way to do it
(with Perl)? I have heard og XPath and the XML::Twig modules, but am not
sure if those will make my design simpler or more complex ?
Suggestions ?
TIA
Am