CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2007
    Posts
    1

    Smile <country>INDIA</country>Country Name : How i create a element like this?

    Showing the country name with in the tags of "COUNTRY" and also have to show the Field Description so that user can understand easily.

    sometimes have to show


    <country>INDIA</country> Country Name

    <ID>12345</ID> Record Number.

    <TOTAL>6789</TOTAL> Total No. of . Cases



    like this.....

    pls suggest

  2. #2
    Join Date
    Jul 2007
    Location
    Sweden
    Posts
    331

    Re: <country>INDIA</country>Country Name : How i create a element like this?

    You can either do this:
    Code:
    <country>India</country><!-- Country name -->
    <id>12345</id><!-- Record number -->
    <total>6789</total><!-- Total number of cases -->
    Or this (if the comments are considered part of the data):
    Code:
    <country remark="Country name">India</country>
    <id remark="Record number">12345</id>
    <total remark="Total number of cases">6789</total>

  3. #3
    Join Date
    Oct 2004
    Posts
    107

    creating elements with text description

    What tools are you using? XSLT? C#? .NET? PHP?

    andreasblixt has provided a good way of laying out the data if that's what you were asking for.

    You might also consider putting that type of documentation in a schema, eg in an <annotation> node.

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

Featured