dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Mark up in an xml file

  1. #1
    Join Date
    Sep 2017
    Posts
    1

    Mark up in an xml file

    I require markup to be added to the xml file, html and inline styles so that the copy displays as readable and includes a link to an external page - is this possible in an xml file? I do not need the file to be converted, the file must remain an xml file.

  2. #2
    Join Date
    Mar 2012
    Posts
    3,961
    Hi and welcome to the site. Does anyone here still use XML? Sorry but I don't.

  3. #3
    Join Date
    Sep 2017
    Location
    Calgary
    Posts
    7
    Don't know about adding mark ups or structured data in XML file. It can be simply places with the tags on the pages. Or may be I am not getting the point.

  4. #4
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    22,214
    You can either encode it with html-entity type tags ("&lt;" for "<", for example), or just put the raw text within a CDATA element:
    Code:
    <some_xml_tag><![CDATA[<foo>Displayed as is</foo>]></some_xml_tag>
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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