• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Importing XML Data

You may also take an XML file you’ve previously created with Dreamweaver (or with any other program; see Attention!, below) and import it to use with a Dreamweaver template. The XML or item tags will become the names of editable regions. You may then add other elements such as page properties, tables, and so on to the file.

To import XML into a template:

1.
From the menu bar, select File > Import > XML into Template. The Import XML dialog box will appear (Figure 14.70).

Figure 14.70. You can import an XML file into a template.


2.
Select an XML file to use, and click Open. If the XML file does not specify a base Dreamweaver template, a warning dialog box will appear (Figure 14.71).

Figure 14.71. You’ll get this warning if the XML file does not specify a template.


If this happens, you need to reopen your XML file and specify a template within it.

3.
A new, blank HTML window will appear. Dreamweaver will merge the XML file with the template regions, and you can view the result in the Document window (Figure 14.72) and the Code inspector (Figure 14.73).

Figure 14.72. You can view a successfully imported XML file in the Document Window, in Design view...


Figure 14.73. ...and Code view.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint