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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie ques.: passing html tags through xml

Status
Not open for further replies.

akqleocmde

Technical User
Jul 23, 2006
2
US
hi, i'm fairly new to xml so this may be an easy question.. however, i've been searching for an answer but i can't seem to find one..

how do i pass html tags through an xml doc? for example:

<xmltag1>
<xmltag2>This should be a link: <a href="#">click here</a></xmltag2>
</xmltag1>

is this something specific to the parser? or is there a solution that will work regardless of what technology is parsing it (php, jsp, etc.)?

thanks..

 
Only if you work with an xlink-aware application/browser, such as moz.
[tt]
<xmltag2>This should be a link: <a xmlns:xlink=" xlink:type="simple" xlink:href="#">click here</a></xmltag2>
[/tt]
 
thanks for the reply but that is a very limited solution. what about:

<xmltag1>
<xmltag2>This should be <strong>bolded</strong> and this is a <div class="cssclass">div tag</div>.</xmltag2>
</xmltag1>

also, will it work in ie, opera, safari?
 
What do mean by work? The xlink has a very specific functionality to accomplish, despite it needs xlink-aware host. You new line mean what? It is a valid xml document and that seems to be all. So what is the question?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top