Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
libxml2
Commits
5004f42f
Commit
5004f42f
authored
Nov 08, 2001
by
Daniel Veillard
Browse files
Stefan Kost provided an help command for the shell Daniel
* debugXML.c: Stefan Kost provided an help command for the shell Daniel
parent
a6825e8d
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
5004f42f
Thu Nov 8 14:52:18 CET 2001 Daniel Veillard <daniel@veillard.com>
* debugXML.c: Stefan Kost provided an help command for the shell
Wed Nov 7 14:32:55 CET 2001 Daniel Veillard <daniel@veillard.com>
* debugXML.c: Heiko Rupp pointed that the shell would crash
...
...
debugXML.c
View file @
5004f42f
...
...
@@ -1987,7 +1987,24 @@ xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input,
break
;
if
(
!
strcmp
(
command
,
"bye"
))
break
;
if
(
!
strcmp
(
command
,
"validate"
))
{
if
(
!
strcmp
(
command
,
"help"
))
{
printf
(
"
\t
base display XML base of the node
\n
"
);
printf
(
"
\t
bye leave shell
\n
"
);
printf
(
"
\t
cat [node] display node or current node
\n
"
);
printf
(
"
\t
cd [path] change directory to path or to root
\n
"
);
printf
(
"
\t
dir [path] dumps informations about the node (namespace, attributes, content)
\n
"
);
printf
(
"
\t
du [path] show the structure of the subtree under path or the current node
\n
"
);
printf
(
"
\t
exit leave shell
\n
"
);
printf
(
"
\t
help display this help
\n
"
);
printf
(
"
\t
free display memory usage
\n
"
);
printf
(
"
\t
load [name] load a new document with name
\n
"
);
printf
(
"
\t
ls [path] list contents of path or the current directory
\n
"
);
printf
(
"
\t
pwd display current working directory
\n
"
);
printf
(
"
\t
quit leave shell
\n
"
);
printf
(
"
\t
save [name] save this document to name or the original name
\n
"
);
printf
(
"
\t
validate check the document for errors
\n
"
);
printf
(
"
\t
write [name] write the current node to the filename
\n
"
);
}
else
if
(
!
strcmp
(
command
,
"validate"
))
{
xmlShellValidate
(
ctxt
,
arg
,
NULL
,
NULL
);
}
else
if
(
!
strcmp
(
command
,
"load"
))
{
xmlShellLoad
(
ctxt
,
arg
,
NULL
,
NULL
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment