xmllint --noout your_test_file.xml
Example 1 -
$xmllint --noout silent.xml
silent.xml:53: parser error : XML declaration allowed only at the start of the document
<?xml version="1.0" encoding="UTF-8"?>
^
Example 2 -
xmllint --valid --encode utf-8 silent.xml
silent.xml:53: parser error : XML declaration allowed only at the start of the document
<?xml version="1.0" encoding="UTF-8"?>
- Srikanth Govada
No comments:
Post a Comment