dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: Quick Way of Closing XML Tags

  1. #1
    Join Date
    Oct 2013
    Posts
    3

    Quick Way of Closing XML Tags

    Hello,

    I am trying to develop a web app which will display an archive inventory of newsletters, books, etc. There is a program called Library Master that holds records of newsletters, books, etc. in databases. The idea is to export a database, save that information as an XML file, and then display it using a PHP/MySQL web app yet to be developed.

    To start with, we can export all the information in a database, say the Newsletters database, and save it as a txt file. The file comes out with tags like [Newsletter] [Title] [Volume], etc. I have replaced the brackets [] with <> so now I have a file with <Newsletter> <Title> <Volume>, etc. However, the file does not contain any closing XML tags such as </Volume>. I have to go line by line and place the closing XML tags. I am looking for an automated method to quickly place the closing tags. Would anyone know of a way to accomplish this?

    Note: most of the information is on a single line, but there is data that follows a <Description> opening tage which is multiple lines.

    Jesse Heath

  2. #2
    Join Date
    Oct 2013
    Posts
    3
    Here is a pastebin.org link showing an example of one of the entries I am trying to work with.

  3. #3
    Join Date
    Oct 2013
    Posts
    3
    Sorry. Here is the pastebin.org link http://pastebin.com/FuA5Qaxu

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles