---
title: "When constructing an XML DTD, how do you create an external entity reference in an attribute value?"  
description: "When constructing an XML DTD, how do you create an external entity reference in an attribute value?"  
author: "Anonymous User"  
published: 2011-05-18  
updated: 2020-09-24  
canonical: https://www.mindstick.com/interview/941/when-constructing-an-xml-dtd-how-do-you-create-an-external-entity-reference-in-an-attribute-value  
category: "xml"  
tags: ["xml"]  
reading_time: 1 minute  

---

# When constructing an XML DTD, how do you create an external entity reference in an attribute value?

Every interview session should have at least one trick question. Although possible when using SGML, XML DTDs don't support defining external entity references in attribute values. It's more important for the candidate to respond to this question in a logical way than than the candidate know the somewhat obscure answer.

## Answers

### Answer by Anonymous User

Every interview session should have at least one trick question. Although possible when using SGML, XML DTDs don't support defining external entity references in attribute values. It's more important for the candidate to respond to this question in a logical way than than the candidate know the somewhat obscure answer.


---

Original Source: https://www.mindstick.com/interview/941/when-constructing-an-xml-dtd-how-do-you-create-an-external-entity-reference-in-an-attribute-value

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
