Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder MrBiggZ's Avatar
    Join Date
    Apr 2005
    Location
    Indianapolis IN
    Posts
    342
    Thanks
    44
    Thanked 2 Times in 2 Posts

    Question about validating html/xhtml

    Greetings!

    In my webpage I call in some rss feeds. It seems that some are html transitional and some are xhtml transitional. Granted I cannot get a clean validation.

    Is there anyway to tell the validator to exclude the outside sources?

    If not I guess I no reason to throw the valid html 4.0 or valid xhtml stamp on my page.

    Does it matter?

    Hope somebody can answer my question. Many thank way in advance!

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You can try using php's dom functions to validate the xml according to its doctype or perhaps you can pull the doctype from the xml and if its not what you want don't display it.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by MrBiggZ View Post
    Greetings!

    In my webpage I call in some rss feeds. It seems that some are html transitional and some are xhtml transitional. Granted I cannot get a clean validation.

    Is there anyway to tell the validator to exclude the outside sources?

    If not I guess I no reason to throw the valid html 4.0 or valid xhtml stamp on my page.

    Does it matter?

    Hope somebody can answer my question. Many thank way in advance!
    rss is xml, is not html or xhtml but often the authors include in feed specific formating. Why? because want to be pritty, It's a mess but that's it,
    I guess, but this apply only for a given feed, you can transform it and reformat before insertion in your page using server side scripting.

    About validation process, no you can't make the validator to ignore some parts, but this is not important because the pourpuse of validation is only to be sure that browser render correct the page and help you with developement.

    regards


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •