Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   xml schema question (http://www.velocityreviews.com/forums/t584524-xml-schema-question.html)

Mag Gam 01-14-2008 01:23 PM

xml schema question
 
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

Joseph Kesselman 01-14-2008 02:58 PM

Re: xml schema question
 
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

usenet@tech-know-ware.com 01-14-2008 04:16 PM

Re: xml schema question
 
On 14 Jan, 13:23, Mag Gam <magaw...@gmail.com> 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


All times are GMT. The time now is 10:49 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.