www.webdeveloper.com
Results 1 to 2 of 2

Thread: Formatting Script and XML File

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Posts
    21

    Formatting Script and XML File

    Is there a way to format XML so that a script will write a file like this:

    Code:
    <product>
          <category name="category 1">
                <model name="Item 1"/>
          </series>
    </product>
    Code:
    instead of like this:
    <product><category name="category 1"><item name="Item 1"/></series></product>
    It drives me nuts when I open an XML file and there's a long set of data with no line breaks or indenting.

  2. #2
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,278
    That's going to be specific to the XSL processor that you are using. Check your documentation.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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