How to declare escape character as DTD Entities in external file and import in XML files

前端 未结 1 1796
臣服心动
臣服心动 2020-12-20 01:40

In a web project, I have a lot of XML files with non-escaped characters. I declare these characters as DTD Entities and include the list of declaration internally in each XM

1条回答
  •  时光取名叫无心
    2020-12-20 02:09

    Normally you would use a parameter entity...

    XML File

    
    %ents;
    ]>
    
    ...

    Entity File (you could have multiple files)

    
    
    

    However, most browsers will not resolve an external entity reference so you're stuck with having the entity declarations directly in the internal subset (between [ and ] in your doctype declaration).

    0 讨论(0)
提交回复
热议问题