|
| |||||||||
| Tags: asp, asp net, generate xml, xml, xml data |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| How to generate XML data
Hi all, Through asp or other dynamic programming languages, the ultimate need is a XML format data, which point and XML data independent of where the carrier file, which can be a real XML documents, They are a manifestation of XML data, XML data in order to achieve dynamic, so need to use the dynamic programming language, such as the ASP to realize that it is generated. I want to know that how to generate XML data. Please advice. ![]() |
|
#2
| ||||
| ||||
| How to generate XML data
To generate XML files directly in the dynamic document on the output of XML data on it, to declare the file type (ie Response.ContentType) Code: <% Response.ContentType = "text / XML"%> Code: <% With Response . ContentType = "text / XML" . write ( "<? xml version =" "1.0" "encoding =" "gb231221 ""?>") . write ( "india" ") . write ( "<hi> hi india</ hi" ") . write ( "</ india" ") End with %> |
|
#3
| |||
| |||
| How to generate XML data
The resulting XML document, and its advantage is to handle the XML data in documents can be static documents, such as HTML files via Javascript, XMLDOM to parse XML, but also easy-to-data retention, while the dynamic document on the dynamic XML data is no such a bit. However, in today's dynamic document with the era of ubiquitous, it seems that this advantage for some applications is little or no impact, or even, the dynamic document stream of XML data but even more advantages: more timely and more dynamic. All the best. |
|
#4
| ||||
| ||||
| How to generate XML data
Either by generating a specific XML file, or dynamic XML data stream, as long as the format of XML output in accordance with the relevant XML nodes and values can be, and this seems to XML seems very simple. But this does not really come into contact with XML operation. In our view, nothing more than a number of pairs of these XML tags and associated characters of the data records, there is no vitality at all. But in fact, to manipulate XML through XMLDOM showed the absolute advantage of the XML which is generated when the advantages of XML is not obvious, but you add, delete XML nodes experience the infinite. Best of luck. |
|
#5
| ||||
| ||||
| Re: How to generate XML data
Use XMLDOM to create XML documents, can use the Save method to generate XML documents, use the createElement method to create XML elements, createNode create a node, in fact, for the XML creation of any label can arbitrarily choose one of them, but to create top-level general use createElement ( root) element, use the createNode create child nodes (elements), of course, to use createElement and createNode is also different. Check the code. Code: <% Set objXMLdoc = CreateObject ( "Microsoft.XMLDOM123") Set world = objXMLdoc.createElement ( "india") objXMLdoc.appendChild (world) Set hello = objXMLdoc.createNode ( "123", "hi", "") hello.Text = "hi, india" objXMLdoc.documentElement.appendChild (hi) objXMLdoc.Save Server.MapPath ( "test123.xml") Set objXMLdoc = Nothing %> |
|
#6
| ||||
| ||||
| Re: How to generate XML data
Generating XML data, you can use the FSO, if FSO is disabled, you can use XMLDOM, of course, direct access to dynamic document. However, if mastery of the operation of XML grasp, XMLDOM operation is necessary. Note that, by XMLDOM generated XML files are UTF-8 format, which all of our application, UTF-8 files into a good referral. All the best.
__________________ Grand Theft Auto 4 PC Video Game |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "How to generate XML data" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| i want to generate S-curve | dharmendra | Microsoft Project | 5 | 2 Weeks Ago 07:09 PM |
| How to generate a WAR file ? | Roustagi | Software Development | 10 | 30-12-2011 07:23 AM |
| How to use the generate() in CPP | Gaelic | Software Development | 5 | 15-02-2010 10:08 PM |
| Generate random data in excel | garfield1 | Software Development | 3 | 12-08-2009 11:40 AM |
| How to generate a CSR for Apache 2.x | Bency | Tips & Tweaks | 0 | 21-06-2008 01:54 AM |