10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello Forum,
I'm issuing a one line bash command to look for the version of an installed application and saving the result to a variable like so:
APP=application --version
But if the application is not installed I want to return to my variable that the Application is not installed. So I'm... (2 Replies)
Discussion started by: greavette
2 Replies
2. Shell Programming and Scripting
Hi,
I have a direcory as mentioned below:
/development/arun/cycdt/
unser the above i have directories
/2013
/2012
/2011
......
.....
/2000
I need to write a script which can delete the nth version of the directories.
as in if n=10 then the script should arrange the directories in... (2 Replies)
Discussion started by: Arun Mishra
2 Replies
3. Ubuntu
Hi,
I am trying to downgrade the version of rsyslog to the older version (i.e) and when i issue the below command to check the packages i dont see the required package (i.e)
and when i try to install it is complaining about package not found.
Please advise on how to install the... (1 Reply)
Discussion started by: prash358
1 Replies
4. Shell Programming and Scripting
Hi,
I want to know what version of the java is installed?
Please let me know the command or process to identify the installed java version in sun solaris box.
Thanks in advance for all your support. (3 Replies)
Discussion started by: sridhardwh
3 Replies
5. Shell Programming and Scripting
When I am trying to use below code of for loop on older version of ksh
it not working,and I just want to use only FOR loop
-----------------
for i in (1..5)
do
echo $i
done
-----------------
please suggest.it really stoping me.
FYI: i want to do this only by for loop (2 Replies)
Discussion started by: RahulJoshi
2 Replies
6. Shell Programming and Scripting
This should be a simple script, but can't find one with google search.
I just need to find the file that is in many directories, then overwrite that file with a newer version i.e.
find file.jar then overwrite with /root/file.jar
All I get in searches is substitute text with new test inside... (1 Reply)
Discussion started by: haircat
1 Replies
7. Shell Programming and Scripting
To find all the files in your home directory that have been edited in some way since the last tar file, use this command:
find . -newer backup.tar.gz
Is anyone familiar with an older solution?
looking to identify files older then 15mins across several directories.
thanks,
manny (2 Replies)
Discussion started by: mr_manny
2 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
.profile has been replaced with a new one. I need to know the variables used in the older version of .profile. I have a session opened using the old .profile.
Is there a way that I can get the exact file.
I had some luck by using set command. But is there any way that I can get the... (5 Replies)
Discussion started by: shash
5 Replies
9. Shell Programming and Scripting
Hi,
With the command perl -v i can see the perl version, but it's like a text file..
is there a command which could give me just the perl version number?
i.e.: "5.8.1"
thanks!! (6 Replies)
Discussion started by: kfad
6 Replies
10. UNIX for Advanced & Expert Users
Hi,
I wanted to know how can I get the version of underlying HP-OS installed on a HPUX workstation. The output required is "June 2001" version or "March 2003" version etc whatever OS is present.
Thanx in advance for your help.
Regards,
Pankaj (3 Replies)
Discussion started by: pankschawla
3 Replies
xmlparsing(3) Coin xmlparsing(3)
NAME
xmlparsing - XML Parsing with Coin For Coin 3.0, we added an XML parser to Coin. This document describes how it can be used for generic
purposes.
Why another XML parser, you might ask? First of all, the XML parser is actually a third-party parser, expat. Coin needed one, and many
Coin-dependent projects needed one as well. We therefore needed to expose an API for it. However, integrating a 3rd-party parser into Coin,
we can not expose its API directly, or other projects also using Expat would get conflicts. We therefore needed to expose the XML API with
a unique API, hence the API you see here. It is based on a XML DOM API we use(d) in a couple of other projects, but it has been tweaked to
fit into Coin and to be wrapped over Expat (the original implementation just used flex).
The XML parser is both a streaming parser and a DOM parser. Being a streaming parser means that documents can be read in without having to
be fully contained in memory. When used as a DOM parser, the whole document is fully parsed in first, and then inspected by client code by
traversing the DOM. The two modes can actually be mixed arbitrarily if ending up with a partial DOM sounds useful.
The XML parser has both a C API and a C++ API. The C++ API is just a wrapper around the C API, and only serves as convenience if you prefer
to read/write C++ code (which is tighter) over more verbose C code.
The C API naming convention may look a bit strange, unless you have written libraries to be wrapped for scheme/lisp-like languages before.
Then you might be familiar with the convention of suffixing your functions based on their behaviour/usage meaning. Mutating functions are
suffixed with '!', or '_x' for (eXclamation point), and predicates are suffixed with '?', or '_p' in C.
The simplest way to use the XML parser is to just call cc_xml_read_file(filename) and then traverse the DOM model through using
cc_xml_doc_get_root(), cc_xml_elt_get_child(), and cc_xml_elt_get_attr().
See also:
XML related functions and objects, cc_xml_doc, cc_xml_elt, cc_xml_attr
Version 3.1.3 Wed May 23 2012 xmlparsing(3)