Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > xml schema question

Reply
Thread Tools

xml schema question

 
 
Mag Gam
Guest
Posts: n/a
 
      01-14-2008
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
 
Reply With Quote
 
 
 
 
Joseph Kesselman
Guest
Posts: n/a
 
      01-14-2008
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
 
Reply With Quote
 
 
 
 
usenet@tech-know-ware.com
Guest
Posts: n/a
 
      01-14-2008
On 14 Jan, 13:23, Mag Gam <(E-Mail Removed)> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
web.xml / XML schema issue, why do some XML schema attributes disappear asciz@starmail.com Java 3 02-20-2007 09:56 AM
Validation with XSD using XML::LibXML::Schema, and XML::Validator::Schema huntingseasonson@gmail.com Perl Misc 5 11-29-2006 12:37 PM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM
XML Schema to XML Schema Conversion Hari Om XML 1 03-02-2004 09:04 PM
XML schema regular expressions question and recommended XML Schema book Fred Smith XML 1 02-05-2004 11:12 AM



Advertisments