35 |
/** |
/** |
36 |
* Returns the version of XML used for the entity. This will |
* Returns the version of XML used for the entity. This will |
37 |
* normally be the identifier from the current entity's |
* normally be the identifier from the current entity's |
38 |
* <em><?xml version='...' ...?></em> declaration, |
* <em><?xmlversion='...'...?></em> declaration, |
39 |
* or be defaulted by the parser. |
* or be defaulted by the parser. |
40 |
* |
* |
41 |
* <p> At this writing, only one version ("1.0") is defined, but it |
* <p> At this writing, only one version ("1.0") is defined, but it |
51 |
* Returns the name of the character encoding for the entity. |
* Returns the name of the character encoding for the entity. |
52 |
* If the encoding was declared externally (for example, in a MIME |
* If the encoding was declared externally (for example, in a MIME |
53 |
* Content-Type header), that will be the name returned. Else if there |
* Content-Type header), that will be the name returned. Else if there |
54 |
* was an <em><?xml ...encoding='...'?></em> declaration at |
* was an <em><?xml...encoding='...'?></em> declaration at |
55 |
* the start of the document, that encoding name will be returned. |
* the start of the document, that encoding name will be returned. |
56 |
* Otherwise the encoding will been inferred (normally to be UTF-8, or |
* Otherwise the encoding will been inferred (normally to be UTF-8, or |
57 |
* some UTF-16 variant), and that inferred name will be returned. |
* some UTF-16 variant), and that inferred name will be returned. |