CharacterPosition (XmlParseError property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (match syntax table to syntax template, tags and edits)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Template:XmlParseError:CharacterPosition subtitle}}
#REDIRECT [[XmlParseError class#CharacterPosition property|CharacterPosition property]]
This readOnly property returns a number that indicates the position within the input character stream (starting with 1) at or before which the error was detected.


==Syntax==
[[Category:XmlParseError methods|CharacterPosition property]]
{{Template:XmlParseError:CharacterPosition syntax}}
===Syntax terms===
<table class="syntaxTable">
<tr><th>%number</th>
<td>The position at or before which the error was detected.</td></tr>
<tr><th>xmlParsError</th>
<td>A reference to an instance of an <var>[[XmlParseError_class|XmlParseError]]</var> object.
</td></tr>
</table>
 
==Usage notes==
<ul>
<li>The number of bytes that constitute a character depends on the type of string that causes the exception:
<ul>
<li>If EBCDIC, one byte corresponds to one character.
<li>If Unicode, two bytes correspond to one character.
<li>If UTF-16, two bytes correspond to one character.
<li>If UTF-8, the relationship between bytes and characters is variable, depending on the code points.
</ul>
</ul>
 
==See also==
{{Template:XmlParseError:CharacterPosition footer}}

Latest revision as of 19:55, 10 May 2011