xml schema question

M

Mag Gam

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
 
J

Joseph Kesselman

Mag said:
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).
 
U

usenet

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top