[libxml++] Make the schema validation example program work with no arguments.
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml++] Make the schema validation example program work with no arguments.
- Date: Fri, 10 Feb 2012 19:06:45 +0000 (UTC)
commit 4d779a6345b25bb54d1ed30781445048ef3ad3f9
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date: Fri Feb 10 19:21:32 2012 +0100
Make the schema validation example program work with no arguments.
* examples/schemavalidation/main.cc: Correct the test for number of arguments.
ChangeLog | 6 ++++++
examples/schemavalidation/main.cc | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c0b6207..26ebf4e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-02-10 Kjell Ahlstedt <kjell ahlstedt bredband net>
+
+ Make the schema validation example program work with no arguments.
+
+ * examples/schemavalidation/main.cc: Correct the test for number of arguments.
+
2012-01-30 Kjell Ahlstedt <kjell ahlstedt bredband net>
Parser: Throw more detailed error messages.
diff --git a/examples/schemavalidation/main.cc b/examples/schemavalidation/main.cc
index 18023b0..6b6fb63 100644
--- a/examples/schemavalidation/main.cc
+++ b/examples/schemavalidation/main.cc
@@ -38,7 +38,7 @@ int main(int argc, char* argv[])
std::string schemafilepath("example.xsd"),
docfilepath("example.xml");
- if(argc!=0 && argc!=3)
+ if(argc!=1 && argc!=3)
std::cout << "usage : " << argv[0] << " [document schema]" << std::endl;
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]