Results 1 to 4 of 4

Thread: My XML File..

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2003
    Location
    Auckland
    Posts
    1,139

    My XML File..

    Currently i'm getting news data from an XML file the user data from another etc Was thinking about have a file such as

    <ApplicationData>
    <News>
    <NewsItem>aaaa<NewsItem>
    <NewsItem>bbbb<NewsItem>
    <NewsItem>cccc<NewsItem>
    <NewsItem>dddd<NewsItem>
    <News>
    <Users>
    <UserItem>zzzz</UserItem>
    <UserItem>xxxx</UserItem>
    <UserItem>yyyy</UserItem>
    </Users>
    </ApplicationData>

    Would this be okay? can anyone see any issues with it?

  2. #2
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    2,802

    Re: My XML File..

    will something be uniquely identifying the different nodes? or are you planning on searching for something in your xml by looping through everything? you've sorta limited your xpath queries.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2003
    Location
    Auckland
    Posts
    1,139

    Re: My XML File..

    Each node will be saved in a Database.. there is more than just what you see, inside newsitem there will <ID> <Title> <Date> and useritem will have <ID> <Username> etc, just check on the format of different node types going from news to then users etc

  4. #4
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    2,802

    Re: My XML File..

    looks fine to me, except of course that should be </News>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width