#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    2
    Rep Power
    0

    trying to represent vector datatype in XML


    Hi,
    I have some legacy format that I need to convert to xml schema. one of the data types is vector. I have not figured out how to represent vector in XML, since vectors are an ordered list. Any suggestions?

    For example i have a vector of hostnames that go to a ping command. they have to be ordered.
  2. #2
  3. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    This may seem odd, but what about putting the one after the other in sequence?
    <urls>
    <url>http://1...</url>
    <url>http://2...</url>
    <url>http://3...</url>
    </urls>
    Through the dom you can get next/previous/first/last/item(index), which is the functionality a vector gives you.

IMN logo majestic logo threadwatch logo seochat tools logo