[prev in list] [next in list] [prev in thread] [next in thread]
List: odtug-webdev-l
Subject: RE: Validating HTML?
From: "Finn Ellebaek Nielsen" <finn.ellebaek.nielsen () changegroup ! dk>
Date: 2003-03-12 10:34:13
[Download RAW message or body]
Hi Pete.
Not necessarily, depending on how you write your HTML. For instance, </li>
and </p> is often omitted and browsers accept that.
HTH.
Ciao,
Finn
---------------------------------------------------------------------------
Finn Ellebaek Nielsen ChangeGroup ApS
Product Manager, Principal Consultant, Partner Kronprinsessegade 54, 4.
E-mail: finn.ellebaek.nielsen@changegroup.dk DK-1306 Koebenhavn K
Mobile: +45 20 32 49 25 Denmark
Phone: +45 33 32 77 78 http://www.changegroup.dk
---------------------------------------------------------------------------
"Where do you want to GPF today?"
-----Original Message-----
Lorenzen
Sent: Wednesday, 12 March, 2003 11:14
To: Multiple recipients of list ODTUG-WEBDEV-L
Hi Finn,
OK, good point. But as long as i just want to validate tags like <b> <ul>
<ol> <li> it should be ok?
Regards,
Pete
----- Original Message -----
To: "Multiple recipients of list ODTUG-WEBDEV-L"
<ODTUG-WEBDEV-L@fatcity.com>
Sent: Wednesday, March 12, 2003 12:18 AM
> Hi Pete.
>
> I believe that it is too cool. Seen that HTML isn't well-formed (XML and
> XHTML are) I'm not sure you will succeed with this solution. I would think
> that you would need to use a HTML validator as I suggested.
>
> Cheers,
>
> Finn
>
> --------------------------------------------------------------------------
-
> Finn Ellebaek Nielsen ChangeGroup ApS
> Product Manager, Principal Consultant, Partner Kronprinsessegade 54, 4.
> E-mail: finn.ellebaek.nielsen@changegroup.dk DK-1306 Koebenhavn K
> Mobile: +45 20 32 49 25 Denmark
> Phone: +45 33 32 77 78 http://www.changegroup.dk
> --------------------------------------------------------------------------
-
> "Where do you want to GPF today?"
>
> -----Original Message-----
> Sent: Tuesday, 11 March, 2003 20:38
> To: Multiple recipients of list ODTUG-WEBDEV-L
>
>
> This sounds to cool to be true;) Thanks.
>
> Regards
> Pete
> ----- Original Message -----
> To: Multiple recipients of list ODTUG-WEBDEV-L
> Sent: Monday, March 10, 2003 9:18 PM
>
>
>
> How about wrapping it in a root tag and validate it as well-formed XML
using
> XDK for PL/SQL.
>
> Something along the lines:
>
> /* based on the xml pagkage from Steve Muench's: Building Oracle XML
> Application */
> CREATE OR REPLACE FUNCTION wellformed(xml VARCHAR2) RETURN BOOLEAN IS
> parse_error EXCEPTION;
> PRAGMA EXCEPTION_INIT(parse_error,-20100);
> parser xmlparser.Parser;
> BEGIN
> parser:=xmlparser.newParser;
> xmlparser.parseBuffer(parser,xml);
> xmlparser.freeParser(parser);
> RETURN TRUE;
> EXCEPTION
> WHEN parse_error THEN
> xmlparser.freeParser(parser);
> RETURN FALSE;
> END;
> /
>
> declare
> str VARCHAR2(32767);
> begin
> str:='<root>'||'text entered by <i>them</i> users'||'</root>';
> if wellformed(str) then
> dbms_output.put_line('OK');
> else
> dbms_output.put_line('PLEASE CHECK YOUR TAGS');
> end if;
> str:='<root>'||'text <b>badly<b> entered by <i>them</i> users'||'</root>';
> if wellformed(str) then
> dbms_output.put_line('OK');
> else
> dbms_output.put_line('PLEASE CHECK YOUR TAGS');
> end if;
> end;
> /
>
>
> Regards,
> Michael Garfield Sørensen, CeDeT
>
> ----- Original Message -----
> To: Multiple recipients of list ODTUG-WEBDEV-L
> Sent: 10. marts 2003 20:25
>
>
> Hi,
>
> I have an application where end users (super end users;) can change some
> standard texts (HTML). Normally just text with <b> <ul> <ol> <li> tags.
The
> problem is that they often make small mistakes like forgetting an end tag.
> This messes their text and the rest of the page up. I would like to
> parse/validate the little snips of HTML they input. Anybody got any ideas?
I
> was thinking about writing the validations for these simple tags using the
> OWA_PATTERN package. I have never used this package, but it should be an
> implementation of regular expressions, so I should be possible.
>
> Regards,
> Pete Lorenzen
>
>
> --
> Join us at Loews Miami Beach, Florida on June 22-27, 2003 for our best
> ODTUG Conference yet! Details and registration at: http://www.odtug.com
> --
> Author: Finn Ellebaek Nielsen
> INET: finn.ellebaek.nielsen@changegroup.dk
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ODTUG-WEBDEV-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>
>
--
Join us at Loews Miami Beach, Florida on June 22-27, 2003 for our best
ODTUG Conference yet! Details and registration at: http://www.odtug.com
--
Author: Peter Lorenzen
INET: oracle@theHeat.dk
Fat City Network Services -- 858-538-5051 http://www.fatcity.com
San Diego, California -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ODTUG-WEBDEV-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
--
Join us at Loews Miami Beach, Florida on June 22-27, 2003 for our best
ODTUG Conference yet! Details and registration at: http://www.odtug.com
--
Author: Finn Ellebaek Nielsen
INET: finn.ellebaek.nielsen@changegroup.dk
Fat City Network Services -- 858-538-5051 http://www.fatcity.com
San Diego, California -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ODTUG-WEBDEV-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic