xml schema question

Discussion in 'XML' started by Mag Gam, Jan 14, 2008.

  1. Mag Gam

    Mag Gam Guest

    I am trying to "XMLize" my NFS mount points on a client. What would be
    a good schema?

    A "df" from a client would look something like this

    edcert21.ucs.indiana.edu:/ab nfs 68510 55804 12706 81% /usr/
    share/ab
    edcert21.ucs.indiana.edu:/cd nfs 68510 55804 12706 81% /usr/
    share/cd
    edcert21.ucs.indiana.edu:/ef nfs 68510 55804 12706 81% /usr/
    share/ef

    I can use perl to create the XML, but just need help doing the
    appropriate schema for it.
    Can someone please provide a sample for the example listed above?
    TIA
     
    Mag Gam, Jan 14, 2008
    #1
    1. Advertising

  2. Mag Gam wrote:
    > I am trying to "XMLize" my NFS mount points on a client. What would be
    > a good schema?


    Create a schema that expresses the necesary data in a form where it's
    easy to create and retrieve. I don't know of a standardized schema for
    describing filesystems, in part because the details of filesystem
    information vary from platform to platform, as does what portion of that
    information is actually useful to the application(s).

    --
    Joe Kesselman / Beware the fury of a patient man. -- John Dryden
     
    Joseph Kesselman, Jan 14, 2008
    #2
    1. Advertising

  3. Mag Gam

    Guest

    On 14 Jan, 13:23, Mag Gam <> wrote:
    > I am trying to "XMLize" my NFS mount points on a client. What would be
    > a good schema?
    >
    > A "df" from a client would look something like this
    >
    > edcert21.ucs.indiana.edu:/ab  nfs    68510   55804   12706  81%  /usr/
    > share/ab
    > edcert21.ucs.indiana.edu:/cd  nfs    68510   55804   12706  81%  /usr/
    > share/cd
    > edcert21.ucs.indiana.edu:/ef  nfs    68510   55804   12706  81%  /usr/
    > share/ef
    >
    > I can use perl to create the XML, but just need help doing the
    > appropriate schema for it.
    > Can someone please provide a sample for the example listed above?
    > TIA


    You may find our XML schema tutorial useful at:

    http://www.codalogic.com/lmx/xsd-overview.html

    You might want to store the percentage just as an integer (i.e.
    without the % sign), a float or an xs:decimal depending on what you
    think is most appropriate.

    HTH,

    Pete Cordell
    Codalogic
    Visit http://www.codalogic.com/lmx/ for XML C++ data binding
     
    , Jan 14, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Markus
    Replies:
    1
    Views:
    1,545
    Markus
    Nov 23, 2005
  2. Fred Smith
    Replies:
    1
    Views:
    949
    Martin Honnen
    Feb 5, 2004
  3. Hari Om
    Replies:
    1
    Views:
    463
    Martin SChukrazy
    Mar 2, 2004
  4. Stanimir Stamenkov
    Replies:
    3
    Views:
    1,265
    Stanimir Stamenkov
    Apr 25, 2005
  5. Replies:
    3
    Views:
    2,874
Loading...

Share This Page