camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramon Buckland (JIRA)" <j...@apache.org>
Subject [jira] Created: (CAMEL-1184) Add a new Dataformat - tidyMarkup - which allows us to unmarshal bad HTML to good (XML) Html.
Date Thu, 11 Dec 2008 13:43:05 GMT
Add a new Dataformat - tidyMarkup - which allows us to unmarshal bad HTML to good (XML) Html.
---------------------------------------------------------------------------------------------

                 Key: CAMEL-1184
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1184
             Project: Apache Camel
          Issue Type: New Feature
            Reporter: Ramon Buckland
            Assignee: Ramon Buckland
            Priority: Minor
             Fix For: 1.5.1, 2.0.0
         Attachments: patchfile.txt

Using TagSoup, a competent 'bad html' to good well formed (xml) Html, we can create a new
dataformat such that ..


   from("direct:fromSomeHttpSite")
       .unmarshal().tidyMarkup()
       .setBody().xpath("//table/tr/td[1]")
   .to("direct:foo")

we get to turn the nasty HTML into goody HTML which can go through XSLT components and be
xpathed and all the goodness we love.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message