Lists Home |
Date Index |
Title: embedded html
wan't your XML processor to treat the HTML as markup, not as text, you'll have
to *tell* it that it's markup. So,
wrap the text into a container tag like <p>
parse the string into a JDOM
move all child nodes to your BODYTEXT element.
Forgot to tell that i was using xmlOutputter from
that in our dtd, these <a> elements are declared, so no validation
faults are given...
just add all elements to the document structure, except this one
(included in the text) but is a valid xml tag...
on one of my projects, i'm working with Jdom (old
version jan. 2000) to parse xml (when validating)
If i want to use html tags between xml tags, the tags are
replaced by "<" or ">"...
<BODYTEXT>this is just text with a
link<a href="link.html">text for link</a>text goes
the text between the bodytext is just text,
coming right out of the database. When getting the text from the database,
everything is just fine but when adding this text to the document (while
constructing the doc) and parsing it we get the "<" signs replaced by
How do i avoid the replacing of these tags
without having to extract the link data of the text and putting it between