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

Inputting XML tags into existing xml

Status
Not open for further replies.

jfrost10

Programmer
Jun 3, 2001
2,004
CA
Hey guys,

I have some html that becomes the inner text of a
<paragraph>
</paragraph>
tag set.

What I want to do is parse through the html, and change any html tags like <em> or <u> to xml tags.

The problem I'm running into is that the tags always show up as &gt/&lt in the actual text instead of the tags. Does anyonek now of a way I can do this and get valid xml?

Thanks,

Jack
 
What do you mean by &quot;changing the HTML tags to XML tags&quot;?

Html is actually a subset of XML... And can you give a sample of the output you get? [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal...
once stated: methane@personal.ro
 
I'm using FOP Nos. I don't think the fop's pdf converter recognizes html tags, which is why I want to put in xml tags that I can flag in the xsl, and use FOP to get the display I want.

Jack
 
Sigh...please excuse my newbieness.

You're right Nos, it was alot easier than I thought to load the XML doc with the HTML (and even easier to convert the values to my FOP needs than I thought too).

Thanks for the heads up.
:)

Jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top