xmlwf – Is your xml document well formed?

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 :


Need more details, just check the man page 🙂

Enhanced by Zemanta

About Amit Agarwal

21 Comments on “xmlwf – Is your xml document well formed?”

  1. Jshanker Verma

    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.

  2. Jshanker Verma

    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.

      1. Jshanker Verma

        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( So how much time will take response this request and how much memory it will take to be processed.

        1. Amit Agarwal

          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.

  3. Jshanker Verma

    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&[email protected]&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 “[email protected]
    –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.

    1. Amit Agarwal

       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/”

  4. Jai Shanker Verma

    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