blob: 6b303ebb53c2146fb9cbd9720ee18592b34807c9 [file] [log] [blame]
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<body>
This package contains classes and interfaces that provide a syntactic
representation of MXML as tags and attributes, without any semantic
understanding of what those tags and attributes mean in MXML.
<p>
The main class is <code>MXMLData</code>, which represents an entire MXML file.
The content of the file is represented as a list of <code>MXMLUnitData</code>
objects representing <i>MXML units</i>, but there are APIs which allows the
linear list of units to be accessed as a hierarchy of tags that contain other
tags.
<p>
</p>
There are three types of <i>MXML units</i>:
<ul>
<li>An <code>MXMLInstructionData</code> unit represents a processing instruction
such as <code>&lt;?xml version="1.0" encoding="utf-8"?&gt;</code>.</li>
<li>An <code>MXMLTagData</code> unit represents an <i>open tag</i>
like <code>&lt;Button&gt;</code>, a <i>close tag</i> like
<code>&lt;/Button&gt;</code>, or an <i>empty tag</i> like
<code>&lt;Button/&gt;</code>.
The attributes of an open tag or an empty tag are represented by
<code>MXMLTagAttributeData</code> objects.</li>
<li>An <code>MXMLTextData</code> unit represents character data such as
regular text, whitespace, a CDATA block, or a comment.</li>.
</ul>
</p>
</body>
</html>