|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Creating a XML page from a Access .mdb
howzit,
i have an access database which i want to turn into a XML doc. how do it fo this? at the moment im reading the database values like normal with ASP, and then just : response.write("<xml>") rs("value1") response.write("</xml>") but im not sure whether this is the best way of going about. help please??
__________________
"Morgoth i Cried All Hope is Gone But i Swear REVENGE Hear my Oath!!" |
|
#2
|
|||
|
|||
|
Creating xml as a string isn't a very good solution, if your recordset contains any "<" characters then you won't generate valid xml. Have a look at the MSXML2.DomDocument object, you can loop througn your recordset creating child nodes for each record then save the xml to disk or to the response object.
|
|
#3
|
|||
|
|||
|
yeah... i just readt through the record set and wrote the needed fields between the needed tags.. works like a charm.
![]() |
|
#4
|
|||
|
|||
|
Object Dataset is usefull for converting data from DB to XML and vice versa.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Creating a XML page from a Access .mdb |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|