• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 165
  • Last Modified:

How to generate XML having a Field / Value pair of data and DTD

Hey Friends
  I have some bunch of data in Field/Value pair
now i want to generate an XML using a DTD
Can someone plz help me with an example
I am new to XML and looking for a simple program.

Thanks in advance

Regards
0
vikrant_kpr
Asked:
vikrant_kpr
  • 5
  • 2
1 Solution
 
Shiju SasidharanCommented:
can u place the sample data u have?
in which language u need the program ?
0
 
vikrant_kprAuthor Commented:
i want the program in C++
Can it be some generic ?

Data is like

Location
Addr1  Value
Addr2  Value

Location
Addr1  Value
Addr2  Value

Location
Addr1  Value
Addr2  Value
0
 
Shiju SasidharanCommented:
here is a sample algorithm
start
      declare : xmldata, field, value
      
      xmldata = "<Root>"
      
      while read:from memory
      {
            field= content from Address1
            value= content from Address2
            xmldata += "<" + field + ">" + value + "</"+field+">" + newline
            read: next value
      }
      xmldata += "</Root>"
      Save:xmldata to a file with extension xml
end
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
vikrant_kprAuthor Commented:
Thanks for the update
but is there something from Microsoft to read the DTD file , get data and generate XML ?
0
 
Shiju SasidharanCommented:
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now