There is a small nifty utility called xmlwf that can check your xml documents to see if they are well formed.
sudo yum install expat
Once installed, simply use :
xmlwf
Need more details, just check the man page 🙂
Related articles
- Assigning ID to Objects transmitted in XML document (stackoverflow.com)
- removing characters from php output in xml (stackoverflow.com)
- C# XML parsing using XElement and child contents (stackoverflow.com)
Hey thanks for this one! Really helpful
Hi Amit,
this is Jai Shanker.
How can i access the doc from any api in linux.
Then convert that using base64 into xml for parsing.
And howto store that parse data into variable.
Plz suggest me some commands and script.
Not sure what you mean by doc, do you mean word document or odf document or plain text document.
I have a variable and I want to store its value in a file on another machine in a new file or existing file.
plz reply
The simplest would be to do “echo $variable >file”
ssh
The simplest would be to do
ssh “echo $variable >file”
Not sure what you mean by doc, do you mean word document or odf document or plain text document.
Hi Amit Sir,
I want to know the command or shell script, to check the memory usage by a client request when access my apache server.
Not sure, what you mean by that. Can you explain your problem statement in little more detail.
Actually is it possible to check, how much time and memory and cpu consumption by a request when it is made for apache server. Let I open my apache request for(http://172.16.1.158). So how much time will take response this request and how much memory it will take to be processed.
I am not sure if there is a direct way. I can think of atlease 2 thing:
1) If there is a new thread spawned then you can monitor for that in a for loop OR
2) You can monitor all the process and check the differences while the query is being made.
Hi sir,
I have a web site with username and password.
I want to login on this site using bash shell script.
I am using this code but I cann’t login
=============================
curl -c /tmp/cookie.txt –cookie-jar /tmp/cookie.txt –silent –post302 –location “https://www.nyc.gov/BEServices/login?loginUrl=/portal/site/businessexpress/template.LOGIN/action.process/&realm=realm1&logon=rossaaron@juno.com&password=boomking1” > /tmp/logon.html
=====================================================
and i have also this code:
=====================================================
curl -A “Mozilla/4.73 [en] (X11; U; Linux 2.2.15 i686)”
–cookie /tmp/cjar.txt –cookie-jar /tmp/cjar.txt
–data “loginUrl=/portal/site/businessexpress/template.LOGIN/action.process/”
–data “realm=realm1”
–data “logon=rossaaron@juno.com”
–data “password=boomking1”
–silent –post302 –location “https://www.nyc.gov/BEServices/login” > /tmp/tmp.html
=====================================================
But I couldn’t login with this. have u any solution plz rply me with the codes.
First off, never post your password on any site – for your safety. Secondly in the second code, use the URL where you will be finally re-directed, that is in you case “http://www.nyc.gov/portal/site/businessexpress/”
For security reasons, I have removed your password from the post.
Still I have problem it doesn’t work, I cann’t login with this one.
I tried that and got the result correctly. Can you try without redirection in your second command and check what you are getting.
yes, I got it thanks sir.
Hello sir,
Is there any tool to extract table from HTML code.
If any then provide me the name.@
I dont know of any, but I think you could use sed 🙂
HI Sir,
I want to exclude only dirs and files with given locations using rsync. ie.
I have these dir trees and use this command.
But I want to exclude only public, images, temporary and database.php and abc using given path /home/jai/htdocs but while runnig the given command it include the file in destination dir.
I am waiting for your response to shoot this problem, thanks in advance.@17a0554e12f681475f4738817099f796:disqus
use “–exclude” option.