SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Nov 2004
    Location
    Tampa
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP and XML (DomXML)...

    I've created a PHP script that uses the domxml objects.

    http://us2.php.net/domxml/

    The script will successfully create a new XML file or open an existing file and write to it. The only problem I have is when the XML file is opened and written to it is all written in one line. This gets quite annoying when trying to edit the XML file in a text editor or something of that sort. I would like that ability to enter a new line char after each element.

    If someone has experience with these functions I would appreciate any thoughts concerning this issue.

    Remember, everything functions fine, I just want the ability to add a newline char after each element's closing tag. It is just really annoying looking at these XML tags in one LONG, LONG line!

    Thanks!
    Rob

  2. #2
    SitePoint Member
    Join Date
    Nov 2004
    Location
    Tampa
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I feel like an idiot..... aparently DOM has replaced DOM XML in php version 4.3.0..

    Time to take a look at these functions and overhaul this script.....


Bookmarks

Posting Permissions

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