Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml 1

Status
Not open for further replies.

tyland

Programmer
Apr 15, 2002
1
US
How do I include a wave file in an XML document?
 
You may specify a reference to the fileor insert its binary form in a section delimited by [[ and ]]. But you should know that there is no default way that a parser will actualy play that wave.

If you want somethink like that, you have to use external referencing of the file and you might chose to insert a DTD declaration like:

<!NOTATION wave SYSTEM &quot;mplayer.exe&quot;>
<!ENTITY sound1 SYSTEM &quot;waveFile.wav&quot; NDATA wave>

And, in the XML instance document, have something like:

<WaveFileReference name=&quot;sound1&quot;/>

Unfortunately, with this approach you have to modify both the DTD and the XML file when the reference to the file must be changed.
Probably the best way is to specify the DTD declaration at the begining of the XML document.

[red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal...
once stated: methane@personal.ro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top