Working with Inline tags |
In the HTML and XML specification, pre-defined tags are used to represent text attributes such as bold, italic and underline. The sentence below shows how a statement containing some bold and italic text may be represented in XML using inline tags such as <bold> and <italic>.
Consider the sentence:
A Brave New World was written by Huxley! |
This is represented in XML as follows:
A <bold>Brave New World</bold>was written by <italic>Huxley!</italic> |
When ezParse processes this sentence, it will break it into 4 segments, each delimited by a tag boundary:
A |
|
Brave New World |
|
was written by |
|
Huxley! |
If you define <bold> and <italic> as inline tags, ezParse will process this sentence and store it as one segment. It will display this segment in the Translators Toolbar as follows:-
For more information, see Defining XML Rules.