S
Stan R.
Hello, I have xmllint and xsltproc installed and running on both my
linux and win32 platforms, all seems good.
I have a couple questions though.
1) If I have an external dtd file, which is included in my xml file,
like
<!DOCTYPE userlist SYSTEM "test.dtd">
xmllint automatically uses that dtd when I do
$ xmllint --valid --noout test.xml
But, if I want to use a scheme (xsd), with the declaration in the xml
file as so
<test
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="test.xsd">
...
...
...
</test>
It doesn't seem to use the xsd file (in this case, test.xsd.) I have
to add
`--schema test.xsd` to the command line arguemnts, eg
$ xmllint --valid --noout test.xml --schema test.xsd
Is there a way to make xmllint jsut use what's declared in the xml
document?
2) Just one more question I can't really find any info on. Is there a
way (hopefuly with xmllint) to do a quick check for any errors in a DTD
or XSD file, to make sure I didn't mistype something or otherwise
syntatical blunder?
Thanks for any help.
linux and win32 platforms, all seems good.
I have a couple questions though.
1) If I have an external dtd file, which is included in my xml file,
like
<!DOCTYPE userlist SYSTEM "test.dtd">
xmllint automatically uses that dtd when I do
$ xmllint --valid --noout test.xml
But, if I want to use a scheme (xsd), with the declaration in the xml
file as so
<test
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="test.xsd">
...
...
...
</test>
It doesn't seem to use the xsd file (in this case, test.xsd.) I have
to add
`--schema test.xsd` to the command line arguemnts, eg
$ xmllint --valid --noout test.xml --schema test.xsd
Is there a way to make xmllint jsut use what's declared in the xml
document?
2) Just one more question I can't really find any info on. Is there a
way (hopefuly with xmllint) to do a quick check for any errors in a DTD
or XSD file, to make sure I didn't mistype something or otherwise
syntatical blunder?
Thanks for any help.