Adobe® Flash® Platform용 ActionScript® 3.0 참조 설명서
 |  패키지 및 클래스 목록 숨기기 |  패키지  |  클래스  |  새로운 내용  |  색인  |  부록  |  영어로 표시되는 이유
필터: AIR 30.0 이하, Flash Player 30.0 이하, Flash Lite 4
Flex 4.6 이하, Flash Pro CS6 이하
필터 숨기기
flash.xml 

XMLNode  - AS3

패키지x

최상위 레벨
adobe.utils
air.desktop
air.net
air.update
air.update.events
coldfusion.air
coldfusion.air.errors
coldfusion.air.events
coldfusion.service
coldfusion.service.events
coldfusion.service.mxml
com.adobe.acm.solutions.authoring.domain.extensions
com.adobe.acm.solutions.ccr.domain.extensions
com.adobe.consulting.pst.vo
com.adobe.dct.component
com.adobe.dct.component.datadictionary
com.adobe.dct.component.datadictionaryElement
com.adobe.dct.component.dataElementsPanel
com.adobe.dct.component.toolbars
com.adobe.dct.event
com.adobe.dct.exp
com.adobe.dct.model
com.adobe.dct.service
com.adobe.dct.service.provider
com.adobe.dct.transfer
com.adobe.dct.util
com.adobe.dct.view
com.adobe.ep.taskmanagement.domain
com.adobe.ep.taskmanagement.event
com.adobe.ep.taskmanagement.filter
com.adobe.ep.taskmanagement.services
com.adobe.ep.taskmanagement.util
com.adobe.ep.ux.attachmentlist.component
com.adobe.ep.ux.attachmentlist.domain
com.adobe.ep.ux.attachmentlist.domain.events
com.adobe.ep.ux.attachmentlist.domain.renderers
com.adobe.ep.ux.attachmentlist.skin
com.adobe.ep.ux.attachmentlist.skin.renderers
com.adobe.ep.ux.content.event
com.adobe.ep.ux.content.factory
com.adobe.ep.ux.content.handlers
com.adobe.ep.ux.content.managers
com.adobe.ep.ux.content.model.asset
com.adobe.ep.ux.content.model.preview
com.adobe.ep.ux.content.model.relation
com.adobe.ep.ux.content.model.search
com.adobe.ep.ux.content.model.toolbar
com.adobe.ep.ux.content.search
com.adobe.ep.ux.content.services
com.adobe.ep.ux.content.services.load
com.adobe.ep.ux.content.services.permissions
com.adobe.ep.ux.content.services.preview
com.adobe.ep.ux.content.services.providers
com.adobe.ep.ux.content.services.query
com.adobe.ep.ux.content.services.relationships
com.adobe.ep.ux.content.services.search.lccontent
com.adobe.ep.ux.content.services.version
com.adobe.ep.ux.content.view
com.adobe.ep.ux.content.view.components.activate
com.adobe.ep.ux.content.view.components.grid
com.adobe.ep.ux.content.view.components.grid.hover
com.adobe.ep.ux.content.view.components.grid.hover.component
com.adobe.ep.ux.content.view.components.grid.renderers
com.adobe.ep.ux.content.view.components.relationships
com.adobe.ep.ux.content.view.components.review
com.adobe.ep.ux.content.view.components.search.renderers
com.adobe.ep.ux.content.view.components.searchpod
com.adobe.ep.ux.content.view.components.toolbar
com.adobe.ep.ux.content.view.components.toolbar.controlRenderers
com.adobe.ep.ux.content.view.components.version
com.adobe.ep.ux.documentsubmit.component
com.adobe.ep.ux.documentsubmit.domain
com.adobe.ep.ux.documentsubmit.skin
com.adobe.ep.ux.taskaction.component
com.adobe.ep.ux.taskaction.domain
com.adobe.ep.ux.taskaction.domain.events
com.adobe.ep.ux.taskaction.skin
com.adobe.ep.ux.taskdetails.component
com.adobe.ep.ux.taskdetails.domain
com.adobe.ep.ux.taskdetails.skin
com.adobe.ep.ux.tasklist.component
com.adobe.ep.ux.tasklist.domain
com.adobe.ep.ux.tasklist.skin
com.adobe.ep.ux.webdocumentviewer.domain
com.adobe.exm.expression
com.adobe.exm.expression.error
com.adobe.exm.expression.event
com.adobe.exm.expression.impl
com.adobe.fiber.runtime.lib
com.adobe.fiber.services
com.adobe.fiber.services.wrapper
com.adobe.fiber.styles
com.adobe.fiber.util
com.adobe.fiber.valueobjects
com.adobe.gravity.binding
com.adobe.gravity.context
com.adobe.gravity.flex.bundleloader
com.adobe.gravity.flex.progress
com.adobe.gravity.flex.serviceloader
com.adobe.gravity.framework
com.adobe.gravity.init
com.adobe.gravity.service.bundleloader
com.adobe.gravity.service.logging
com.adobe.gravity.service.manifest
com.adobe.gravity.service.progress
com.adobe.gravity.tracker
com.adobe.gravity.ui
com.adobe.gravity.utility
com.adobe.gravity.utility.async
com.adobe.gravity.utility.error
com.adobe.gravity.utility.events
com.adobe.gravity.utility.factory
com.adobe.gravity.utility.flex.async
com.adobe.gravity.utility.logging
com.adobe.gravity.utility.message
com.adobe.gravity.utility.sequence
com.adobe.gravity.utility.url
com.adobe.guides.control
com.adobe.guides.domain
com.adobe.guides.i18n
com.adobe.guides.spark.components.skins
com.adobe.guides.spark.components.skins.mx
com.adobe.guides.spark.headers.components
com.adobe.guides.spark.headers.skins
com.adobe.guides.spark.layouts.components
com.adobe.guides.spark.layouts.skins
com.adobe.guides.spark.navigators.components
com.adobe.guides.spark.navigators.renderers
com.adobe.guides.spark.navigators.skins
com.adobe.guides.spark.util
com.adobe.guides.spark.wrappers.components
com.adobe.guides.spark.wrappers.skins
com.adobe.guides.submit
com.adobe.icc.dc.domain
com.adobe.icc.dc.domain.factory
com.adobe.icc.editors.events
com.adobe.icc.editors.handlers
com.adobe.icc.editors.managers
com.adobe.icc.editors.model
com.adobe.icc.editors.model.config
com.adobe.icc.editors.model.el
com.adobe.icc.editors.model.el.operands
com.adobe.icc.editors.model.el.operators
com.adobe.icc.enum
com.adobe.icc.external.dc
com.adobe.icc.obj
com.adobe.icc.services
com.adobe.icc.services.category
com.adobe.icc.services.config
com.adobe.icc.services.download
com.adobe.icc.services.export
com.adobe.icc.services.external
com.adobe.icc.services.formbridge
com.adobe.icc.services.fragmentlayout
com.adobe.icc.services.layout
com.adobe.icc.services.letter
com.adobe.icc.services.locator
com.adobe.icc.services.module
com.adobe.icc.services.render
com.adobe.icc.services.submit
com.adobe.icc.services.user
com.adobe.icc.token
com.adobe.icc.vo
com.adobe.icc.vo.render
com.adobe.icomm.assetplacement.controller
com.adobe.icomm.assetplacement.controller.utils
com.adobe.icomm.assetplacement.data
com.adobe.icomm.assetplacement.model
com.adobe.livecycle.assetmanager.client
com.adobe.livecycle.assetmanager.client.event
com.adobe.livecycle.assetmanager.client.handler
com.adobe.livecycle.assetmanager.client.managers
com.adobe.livecycle.assetmanager.client.model
com.adobe.livecycle.assetmanager.client.model.cms
com.adobe.livecycle.assetmanager.client.service
com.adobe.livecycle.assetmanager.client.service.search
com.adobe.livecycle.assetmanager.client.service.search.cms
com.adobe.livecycle.assetmanager.client.utils
com.adobe.livecycle.content
com.adobe.livecycle.rca.model
com.adobe.livecycle.rca.model.constant
com.adobe.livecycle.rca.model.document
com.adobe.livecycle.rca.model.participant
com.adobe.livecycle.rca.model.reminder
com.adobe.livecycle.rca.model.stage
com.adobe.livecycle.rca.service
com.adobe.livecycle.rca.service.core
com.adobe.livecycle.rca.service.core.delegate
com.adobe.livecycle.rca.service.process
com.adobe.livecycle.rca.service.process.delegate
com.adobe.livecycle.rca.token
com.adobe.livecycle.ria.security.api
com.adobe.livecycle.ria.security.service
com.adobe.mosaic.layouts
com.adobe.mosaic.layouts.dragAndDrop
com.adobe.mosaic.layouts.interfaces
com.adobe.mosaic.mxml
com.adobe.mosaic.om.constants
com.adobe.mosaic.om.events
com.adobe.mosaic.om.impl
com.adobe.mosaic.om.interfaces
com.adobe.mosaic.skinning
com.adobe.mosaic.sparklib.editors
com.adobe.mosaic.sparklib.optionMenu
com.adobe.mosaic.sparklib.scrollableMenu
com.adobe.mosaic.sparklib.scrollableMenu.skins
com.adobe.mosaic.sparklib.tabLayout
com.adobe.mosaic.sparklib.tabLayout.events
com.adobe.mosaic.sparklib.tabLayout.layouts
com.adobe.mosaic.sparklib.tabLayout.skins
com.adobe.mosaic.sparklib.text
com.adobe.mosaic.sparklib.util
com.adobe.solutions.acm.authoring.presentation
com.adobe.solutions.acm.authoring.presentation.actionbar
com.adobe.solutions.acm.authoring.presentation.common
com.adobe.solutions.acm.authoring.presentation.events
com.adobe.solutions.acm.authoring.presentation.fragment
com.adobe.solutions.acm.authoring.presentation.letter
com.adobe.solutions.acm.authoring.presentation.letter.data
com.adobe.solutions.acm.authoring.presentation.preview
com.adobe.solutions.acm.authoring.presentation.rte
com.adobe.solutions.acm.ccr.presentation
com.adobe.solutions.acm.ccr.presentation.contentcapture
com.adobe.solutions.acm.ccr.presentation.contentcapture.events
com.adobe.solutions.acm.ccr.presentation.contentcapture.preview
com.adobe.solutions.acm.ccr.presentation.datacapture
com.adobe.solutions.acm.ccr.presentation.datacapture.renderers
com.adobe.solutions.acm.ccr.presentation.pdf
com.adobe.solutions.exm
com.adobe.solutions.exm.authoring
com.adobe.solutions.exm.authoring.components.controls
com.adobe.solutions.exm.authoring.components.toolbars
com.adobe.solutions.exm.authoring.domain
com.adobe.solutions.exm.authoring.domain.expression
com.adobe.solutions.exm.authoring.domain.impl
com.adobe.solutions.exm.authoring.domain.method
com.adobe.solutions.exm.authoring.domain.variable
com.adobe.solutions.exm.authoring.enum
com.adobe.solutions.exm.authoring.events
com.adobe.solutions.exm.authoring.model
com.adobe.solutions.exm.authoring.renderer
com.adobe.solutions.exm.authoring.view
com.adobe.solutions.exm.expression
com.adobe.solutions.exm.impl
com.adobe.solutions.exm.impl.method
com.adobe.solutions.exm.method
com.adobe.solutions.exm.mock
com.adobe.solutions.exm.mock.method
com.adobe.solutions.exm.runtime
com.adobe.solutions.exm.runtime.impl
com.adobe.solutions.exm.variable
com.adobe.solutions.prm.constant
com.adobe.solutions.prm.domain
com.adobe.solutions.prm.domain.factory
com.adobe.solutions.prm.domain.impl
com.adobe.solutions.prm.domain.manager
com.adobe.solutions.prm.presentation.asset
com.adobe.solutions.prm.presentation.constant
com.adobe.solutions.prm.presentation.document
com.adobe.solutions.prm.presentation.event
com.adobe.solutions.prm.presentation.file
com.adobe.solutions.prm.presentation.project
com.adobe.solutions.prm.presentation.team
com.adobe.solutions.prm.presentation.util
com.adobe.solutions.prm.service
com.adobe.solutions.prm.services.impl
com.adobe.solutions.prm.vo
com.adobe.solutions.rca.constant
com.adobe.solutions.rca.domain
com.adobe.solutions.rca.domain.common
com.adobe.solutions.rca.domain.factory
com.adobe.solutions.rca.domain.impl
com.adobe.solutions.rca.domain.impl.manager
com.adobe.solutions.rca.domain.manager
com.adobe.solutions.rca.presentation
com.adobe.solutions.rca.presentation.comment
com.adobe.solutions.rca.presentation.constant
com.adobe.solutions.rca.presentation.event
com.adobe.solutions.rca.presentation.gantt
com.adobe.solutions.rca.presentation.gantt.ruler
com.adobe.solutions.rca.presentation.template
com.adobe.solutions.rca.presentation.template.audit
com.adobe.solutions.rca.presentation.template.definition
com.adobe.solutions.rca.presentation.template.documents
com.adobe.solutions.rca.presentation.template.stages
com.adobe.solutions.rca.presentation.util
com.adobe.solutions.rca.service
com.adobe.solutions.rca.services.impl
com.adobe.solutions.rca.vo
com.adobe.solutions.rca.vo.um
com.adobe.viewsource
fl.accessibility
fl.containers
fl.controls
fl.controls.dataGridClasses
fl.controls.listClasses
fl.controls.progressBarClasses
fl.core
fl.data
fl.display
fl.events
fl.ik
fl.lang
fl.livepreview
fl.managers
fl.motion
fl.motion.easing
fl.rsl
fl.text
fl.transitions
fl.transitions.easing
fl.video
flash.accessibility
flash.concurrent
flash.crypto
flash.data
flash.desktop
flash.display
flash.display3D
flash.display3D.textures
flash.errors
flash.events
flash.external
flash.filesystem
flash.filters
flash.geom
flash.globalization
flash.html
flash.media
flash.net
flash.net.dns
flash.net.drm
flash.notifications
flash.permissions
flash.printing
flash.profiler
flash.sampler
flash.security
flash.sensors
flash.system
flash.text
flash.text.engine
flash.text.ime
flash.ui
flash.utils
flash.xml
flashx.textLayout
flashx.textLayout.compose
flashx.textLayout.container
flashx.textLayout.conversion
flashx.textLayout.edit
flashx.textLayout.elements
flashx.textLayout.events
flashx.textLayout.factory
flashx.textLayout.formats
flashx.textLayout.operations
flashx.textLayout.utils
flashx.undo
ga.controls
ga.layouts
ga.model
ga.uiComponents
ga.util
ga.views
ga.wrappers
lc.foundation
lc.foundation.domain
lc.foundation.events
lc.foundation.ui
lc.foundation.util
lc.preloader
lc.procmgmt
lc.procmgmt.commands
lc.procmgmt.domain
lc.procmgmt.events
lc.procmgmt.formbridge
lc.procmgmt.impl
lc.procmgmt.ui.attachments
lc.procmgmt.ui.controls
lc.procmgmt.ui.controls.card
lc.procmgmt.ui.controls.renderer
lc.procmgmt.ui.help
lc.procmgmt.ui.layout
lc.procmgmt.ui.presentationmodel
lc.procmgmt.ui.process
lc.procmgmt.ui.search
lc.procmgmt.ui.startpoint
lc.procmgmt.ui.task
lc.procmgmt.ui.task.form
lc.procmgmt.ui.task.form.commands
lc.procmgmt.ui.tracking
mx.accessibility
mx.automation
mx.automation.air
mx.automation.delegates
mx.automation.delegates.advancedDataGrid
mx.automation.delegates.charts
mx.automation.delegates.containers
mx.automation.delegates.controls
mx.automation.delegates.controls.dataGridClasses
mx.automation.delegates.controls.fileSystemClasses
mx.automation.delegates.core
mx.automation.delegates.flashflexkit
mx.automation.events
mx.binding
mx.binding.utils
mx.charts
mx.charts.chartClasses
mx.charts.effects
mx.charts.effects.effectClasses
mx.charts.events
mx.charts.renderers
mx.charts.series
mx.charts.series.items
mx.charts.series.renderData
mx.charts.styles
mx.collections
mx.collections.errors
mx.containers
mx.containers.accordionClasses
mx.containers.dividedBoxClasses
mx.containers.errors
mx.containers.utilityClasses
mx.controls
mx.controls.advancedDataGridClasses
mx.controls.dataGridClasses
mx.controls.listClasses
mx.controls.menuClasses
mx.controls.olapDataGridClasses
mx.controls.scrollClasses
mx.controls.sliderClasses
mx.controls.textClasses
mx.controls.treeClasses
mx.controls.videoClasses
mx.core
mx.core.windowClasses
mx.data
mx.data.crypto
mx.data.errors
mx.data.events
mx.data.messages
mx.data.mxml
mx.data.offline.errors
mx.data.utils
mx.effects
mx.effects.easing
mx.effects.effectClasses
mx.events
mx.filters
mx.flash
mx.formatters
mx.geom
mx.graphics
mx.graphics.codec
mx.graphics.shaderClasses
mx.logging
mx.logging.errors
mx.logging.targets
mx.managers
mx.messaging
mx.messaging.channels
mx.messaging.config
mx.messaging.errors
mx.messaging.events
mx.messaging.management
mx.messaging.messages
mx.modules
mx.netmon
mx.olap
mx.olap.aggregators
mx.preloaders
mx.printing
mx.resources
mx.rpc
mx.rpc.events
mx.rpc.http
mx.rpc.http.mxml
mx.rpc.livecycle
mx.rpc.mxml
mx.rpc.remoting
mx.rpc.remoting.mxml
mx.rpc.soap
mx.rpc.soap.mxml
mx.rpc.wsdl
mx.rpc.xml
mx.skins
mx.skins.halo
mx.skins.spark
mx.skins.wireframe
mx.skins.wireframe.windowChrome
mx.states
mx.styles
mx.utils
mx.validators
org.osmf.containers
org.osmf.display
org.osmf.elements
org.osmf.events
org.osmf.layout
org.osmf.logging
org.osmf.media
org.osmf.metadata
org.osmf.net
org.osmf.net.dvr
org.osmf.net.httpstreaming
org.osmf.net.metrics
org.osmf.net.qos
org.osmf.net.rtmpstreaming
org.osmf.net.rules
org.osmf.traits
org.osmf.utils
spark.accessibility
spark.automation.delegates
spark.automation.delegates.components
spark.automation.delegates.components.gridClasses
spark.automation.delegates.components.mediaClasses
spark.automation.delegates.components.supportClasses
spark.automation.delegates.skins.spark
spark.automation.events
spark.collections
spark.components
spark.components.calendarClasses
spark.components.gridClasses
spark.components.mediaClasses
spark.components.supportClasses
spark.components.windowClasses
spark.core
spark.effects
spark.effects.animation
spark.effects.easing
spark.effects.interpolation
spark.effects.supportClasses
spark.events
spark.filters
spark.formatters
spark.formatters.supportClasses
spark.globalization
spark.globalization.supportClasses
spark.layouts
spark.layouts.supportClasses
spark.managers
spark.modules
spark.preloaders
spark.primitives
spark.primitives.supportClasses
spark.skins
spark.skins.mobile
spark.skins.mobile.supportClasses
spark.skins.spark
spark.skins.spark.mediaClasses.fullScreen
spark.skins.spark.mediaClasses.normal
spark.skins.spark.windowChrome
spark.skins.wireframe
spark.skins.wireframe.mediaClasses
spark.skins.wireframe.mediaClasses.fullScreen
spark.transitions
spark.utils
spark.validators
spark.validators.supportClasses
xd.core.axm.enterprise.view.components
xd.core.axm.enterprise.view.skins
xd.core.axm.view.components
xd.core.axm.view.components.support

언어 요소

전역 상수
전역 함수
연산자
명령문, 키워드 및 지시문
특수 유형 연산자

부록

새로운 내용
컴파일러 오류
컴파일러 경고
런타임 오류
ActionScript 3으로 마이그레이션
지원되는 문자 세트
MXML 전용 태그
모션 XML 요소
Timed Text 태그
사용되지 않는 요소의 목록
액세스 가능성 구현 상수
ActionScript 예제 사용 방법
법적 고지 사항
패키지flash.xml
클래스public class XMLNode
상속XMLNode Inheritance Object
하위 클래스 XMLDocument

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

XMLNode 클래스는 ActionScript 2.0에 있었고 ActionScript 3.0에서 이름이 변경된 레거시 XML 객체를 나타냅니다. ActionScript 3.0에서는 E4X(ECMAScript for XML)를 지원하는 새로운 최상위 XML 클래스 및 관련 클래스를 대신 사용하는 것이 좋습니다. XMLNode 클래스는 이전 버전과의 호환성을 위해 제공됩니다.

예제 보기

관련 API 요소



공용 속성
 속성정의 주체
  attributes : Object
지정된 XMLNode 인스턴스의 특성이 모두 들어 있는 객체입니다.
XMLNode
  childNodes : Array
[읽기 전용] 지정된 XMLNode 객체의 자식 배열입니다.
XMLNode
 Inheritedconstructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다.
Object
  firstChild : XMLNode
지정된 XMLDocument 객체를 평가하고 부모 노드의 자식 목록에서 첫 번째 자식을 참조합니다.
XMLNode
  lastChild : XMLNode
노드의 자식 목록에서 마지막 자식을 참조하는 XMLNode 값입니다.
XMLNode
  localName : String
[읽기 전용] XML 노드 이름의 로컬 이름 부분입니다.
XMLNode
  namespaceURI : String
[읽기 전용] XML 노드에 접두어가 있는 경우 namespaceURI는 일반적으로 네임스페이스 URI라고 하는 해당 접두어(URI)에 대한 xmlns 선언 값입니다.
XMLNode
  nextSibling : XMLNode
부모 노드의 자식 목록에서 다음 형제 노드를 참조하는 XMLNode 값입니다.
XMLNode
  nodeName : String
XMLNode 객체의 노드 이름을 나타내는 문자열입니다.
XMLNode
  nodeType : uint
nodeType 상수 값으로, XML 요소의 경우 XMLNodeType.ELEMENT_NODE이고 텍스트 노드의 경우 XMLNodeType.TEXT_NODE입니다.
XMLNode
  nodeValue : String
XMLDocument 객체의 노드 값입니다.
XMLNode
  parentNode : XMLNode
지정된 XML 객체의 부모 노드를 참조하는 XMLNode 값입니다. 노드에 부모가 없으면 null이 반환됩니다.
XMLNode
  prefix : String
[읽기 전용] XML 노드 이름의 접두어 부분입니다.
XMLNode
  previousSibling : XMLNode
부모 노드의 자식 목록에서 이전 형제를 참조하는 XMLNode 값입니다.
XMLNode
공용 메서드
 메서드정의 주체
  
XMLNode(type:uint, value:String)
새 XMLNode 객체를 만듭니다.
XMLNode
  
지정된 노드를 XML 객체의 자식 목록에 추가합니다.
XMLNode
  
지정된 XML 객체와 유형, 이름, 값 및 특성이 동일한 새 XML 노드를 구성하여 반환합니다.
XMLNode
  
노드의 지정된 접두어와 연결된 네임스페이스 URI를 반환합니다.
XMLNode
  
노드의 지정된 네임스페이스 URI와 연결된 접두어를 반환합니다.
XMLNode
  
지정된 XMLNode 객체에 자식 노드가 있는지 여부를 나타냅니다.
XMLNode
 Inherited
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다.
Object
  
XML 객체의 자식 목록에서 beforeNode 노드 앞에 새 자식 노드를 삽입합니다.
XMLNode
 Inherited
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다.
Object
 Inherited
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다.
Object
  
부모에서 지정된 XML 객체를 제거합니다.
XMLNode
 Inherited
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다.
Object
 Inherited
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다.
Object
  
지정된 XMLNode 객체를 평가하여 노드, 자식 및 특성을 비롯한 XML 구조의 텍스트 표현을 구성한 후 결과를 문자열로 반환합니다.
XMLNode
 Inherited
지정된 객체의 프리미티브 값을 반환합니다.
Object
속성 세부 정보

attributes

속성
attributes:Object

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

지정된 XMLNode 인스턴스의 특성이 모두 들어 있는 객체입니다. XMLNode.attributes 객체에는 XMLNode 인스턴스의 각 특성에 대한 변수가 하나씩 들어 있습니다. 이러한 변수는 객체의 일부로 정의되므로 일반적으로 객체 속성이라고 합니다. 각 특성의 값은 해당 속성에 문자열로 저장됩니다. 예를 들어 color라는 특성이 있는 경우 다음 코드와 같이 color를 속성 이름으로 지정하여 해당 특성의 값을 검색할 수 있습니다.

	 var myColor:String = doc.firstChild.attributes.color
	 



구현
    public function get attributes():Object
    public function set attributes(value:Object):void

childNodes

속성 
childNodes:Array  [읽기 전용]

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

지정된 XMLNode 객체의 자식 배열입니다. 배열의 각 요소는 자식 노드를 나타내는 XMLNode 객체에 대한 참조입니다. 이 속성은 읽기 전용으로, 자식 노드를 조작하는 데 사용할 수 없습니다. 자식 노드를 조작하려면 appendChild(), insertBefore()removeNode() 메서드를 사용합니다.

이 속성은 텍스트 노드(nodeType == 3)에 대해 정의되어 있지 않습니다.



구현
    public function get childNodes():Array

관련 API 요소

firstChild

속성 
public var firstChild:XMLNode

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

지정된 XMLDocument 객체를 평가하고 부모 노드의 자식 목록에서 첫 번째 자식을 참조합니다. 이 속성은 노드에 자식이 없을 경우 null이고, 노드가 텍스트 노드일 경우 undefined입니다. 이 속성은 읽기 전용이므로 자식 노드를 조작하는 데 사용할 수 없습니다. 자식 노드를 조작하려면 appendChild(), insertBefore()removeNode() 메서드를 사용합니다.

관련 API 요소

lastChild

속성 
public var lastChild:XMLNode

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

노드의 자식 목록에서 마지막 자식을 참조하는 XMLNode 값입니다. 노드에 자식이 없으면 XMLNode.lastChild 속성은 null입니다. 이 속성은 자식 노드를 조작하는 데 사용할 수 없습니다. 자식 노드를 조작하려면 appendChild(), insertBefore()removeNode() 메서드를 사용합니다.

관련 API 요소

localName

속성 
localName:String  [읽기 전용]

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

XML 노드 이름의 로컬 이름 부분입니다. 이 속성은 네임스페이스 접두어가 없는 요소 이름입니다. 예를 들어 <contact:mailbox/>bob@example.com</contact:mailbox> 노드에는 전체 요소 이름 "contact.mailbox"를 구성하는 로컬 이름 "mailbox"와 접두어 "contact"가 있습니다.

XML 노드 객체의 prefix 속성을 통해 네임스페이스 접두어에 액세스할 수 있습니다. nodeName 속성은 접두어와 로컬 이름을 포함한 전체 이름을 반환합니다.



구현
    public function get localName():String

namespaceURI

속성 
namespaceURI:String  [읽기 전용]

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

XML 노드에 접두어가 있는 경우 namespaceURI는 일반적으로 네임스페이스 URI라고 하는 해당 접두어(URI)에 대한 xmlns 선언 값입니다. xmlns 선언은 XML 계층 구조에서 현재 노드 또는 상위 노드에 있습니다.

XML 노드에 접두어가 없으면 namespaceURI 속성의 값은 xmlns="http://www.example.com/"과 같이 기본 네임스페이스가 정의되어 있는지 여부에 따라 달라집니다. 기본 네임스페이스가 있으면 namespaceURI 속성의 값은 기본 네임스페이스의 값이 되고, 기본 네임스페이스가 없으면 해당 노드의 namespaceURI 속성은 빈 문자열("")이 됩니다.

getNamespaceForPrefix() 메서드를 사용하여 특정 접두어와 연결된 네임스페이스를 식별할 수 있습니다. namespaceURI 속성은 노드 이름과 연결된 접두어를 반환합니다.



구현
    public function get namespaceURI():String

관련 API 요소

nextSibling

속성 
public var nextSibling:XMLNode

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

부모 노드의 자식 목록에서 다음 형제 노드를 참조하는 XMLNode 값입니다. 노드에 다음 형제 노드가 없으면 이 속성은 null입니다. 이 속성은 자식 노드를 조작하는 데 사용할 수 없습니다. 자식 노드를 조작하려면 appendChild(), insertBefore()removeNode() 메서드를 사용합니다.

관련 API 요소

nodeName

속성 
public var nodeName:String

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

XMLNode 객체의 노드 이름을 나타내는 문자열입니다. XMLNode 객체가 XML 요소인 경우(nodeType == 1) nodeName은 XML 파일의 노드를 나타내는 태그의 이름입니다. 예를 들어 TITLE은 HTML TITLE 태그의 nodeName입니다. XMLNode 객체가 텍스트 노드인 경우(nodeType == 3) nodeName은 null입니다.

관련 API 요소

nodeType

속성 
public var nodeType:uint

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

nodeType 상수 값으로, XML 요소의 경우 XMLNodeType.ELEMENT_NODE이고 텍스트 노드의 경우 XMLNodeType.TEXT_NODE입니다.

nodeType은 W3C DOM 수준 1 권장 사항(http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html)의 NodeType 열거형 숫자 값입니다. 다음 표에서는 이러한 값을 보여 줍니다.

정수 값정의된 상수
1ELEMENT_NODE
3TEXT_NODE
5ENTITY_REFERENCE_NODE
7PROCESSING_INSTRUCTION_NODE
9DOCUMENT_NODE
11DOCUMENT_FRAGMENT_NODE

Flash Player의 내장 XMLNode 클래스는 XMLNodeType.ELEMENT_NODEXMLNodeType.TEXT_NODE만 지원합니다.

관련 API 요소

nodeValue

속성 
public var nodeValue:String

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

XMLDocument 객체의 노드 값입니다. XMLDocument 객체가 텍스트 노드인 경우 nodeType은 3이고 nodeValue는 노드의 텍스트입니다. XMLDocument 객체가 XML 요소인 경우 nodeType은 1이고 nodeValuenull이며 읽기 전용입니다.

관련 API 요소

parentNode

속성 
public var parentNode:XMLNode

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

지정된 XML 객체의 부모 노드를 참조하는 XMLNode 값입니다. 노드에 부모가 없으면 null이 반환됩니다. 이 속성은 읽기 전용이므로 자식 노드를 조작하는 데 사용할 수 없습니다. 자식 노드를 조작하려면 appendChild(), insertBefore()removeNode() 메서드를 사용합니다.

관련 API 요소

prefix

속성 
prefix:String  [읽기 전용]

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

XML 노드 이름의 접두어 부분입니다. 예를 들어 <contact:mailbox/>bob@example.com</contact:mailbox> 노드에는 전체 요소 이름 "contact.mailbox"를 구성하는 접두어 "contact"와 로컬 이름 "mailbox"가 있습니다.

XML 노드 객체의 nodeName 속성은 접두어와 로컬 이름을 포함한 전체 이름을 반환합니다. localName 속성을 통해 요소 이름의 로컬 이름 부분에 액세스할 수 있습니다.



구현
    public function get prefix():String

previousSibling

속성 
public var previousSibling:XMLNode

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

부모 노드의 자식 목록에서 이전 형제를 참조하는 XMLNode 값입니다. 노드에 이전 형제 노드가 없으면 이 속성은 null입니다. 이 속성은 자식 노드를 조작하는 데 사용할 수 없습니다. 자식 노드를 조작하려면 appendChild(), insertBefore()removeNode() 메서드를 사용합니다.

관련 API 요소

생성자 세부 정보

XMLNode

()생성자
public function XMLNode(type:uint, value:String)

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

새 XMLNode 객체를 만듭니다. XMLNode 클래스의 메서드를 호출하기 전에 생성자를 사용하여 XMLNode 객체를 만들어야 합니다.

참고: createElement()createTextNode() 메서드를 사용하여 요소와 텍스트 노드를 XML 문서 트리에 추가합니다.

매개 변수
type:uint — 노드 유형: XML 요소의 경우 1, 텍스트 노드의 경우 3.
 
value:String — 새 XMLNode 객체를 만들기 위해 파싱할 XML 텍스트입니다.

관련 API 요소

메서드 세부 정보

appendChild

()메서드
public function appendChild(node:XMLNode):void

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

지정된 노드를 XML 객체의 자식 목록에 추가합니다. 이 메서드는 childNode 매개 변수가 참조하는 노드에서 직접 작동하며 노드 복사본을 추가하지 않습니다. 추가할 노드가 이미 다른 트리 구조에 존재할 경우 노드를 새 위치에 추가하면 기존 위치에서 해당 노드가 제거됩니다. childNode 매개 변수가 이미 다른 XML 트리 구조에 있는 노드를 참조하는 경우 추가된 자식 노드는 기존 부모 노드에서 제거된 후 새 트리 구조에 배치됩니다.

매개 변수

node:XMLNode — 현재 위치에서 my_xml 객체의 자식 목록으로 이동할 노드를 나타내는 XMLNode입니다.

cloneNode

()메서드 
public function cloneNode(deep:Boolean):XMLNode

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

지정된 XML 객체와 유형, 이름, 값 및 특성이 동일한 새 XML 노드를 구성하여 반환합니다. deeptrue로 설정하면 모든 자식 노드가 재귀적으로 복제되어 원래 객체의 문서 트리와 정확히 일치하는 복사본이 만들어집니다.

반환된 노드의 복제는 더 이상 복제된 항목의 트리와 연결되지 않습니다. 결과적으로 nextSibling, parentNodepreviousSibling의 값은 모두 null이 됩니다. deep 매개 변수가 false로 설정되거나 my_xml 노드에 자식 노드가 없으면 firstChildlastChild도 null이 됩니다.

매개 변수

deep:Boolean — 부울 값으로, true로 설정하면 지정된 XML 객체의 자식이 재귀적으로 복제됩니다.

반환값
XMLNode — XMLNode 객체입니다.

getNamespaceForPrefix

()메서드 
public function getNamespaceForPrefix(prefix:String):String

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

노드의 지정된 접두어와 연결된 네임스페이스 URI를 반환합니다. URI를 확인하기 위해 getPrefixForNamespace()는 필요에 따라 XML 계층 구조에서 해당 노드부터 위쪽으로 검색하고 지정된 prefix에 대한 첫 번째 xmlns 선언의 네임스페이스 URI를 반환합니다.

지정된 접두어에 대해 정의된 네임스페이스가 없으면 이 메서드는 null을 반환합니다.

prefix로 빈 문자열("")을 지정한 경우 xmlns="http://www.example.com/"과 같이 노드의 기본 네임스페이스가 정의되어 있으면 해당 기본 네임스페이스 URI가 반환됩니다.

매개 변수

prefix:String — 메서드에서 연결된 네임스페이스를 반환할 접두어입니다.

반환값
String — 지정된 접두어와 연결된 네임스페이스입니다.

관련 API 요소

getPrefixForNamespace

()메서드 
public function getPrefixForNamespace(ns:String):String

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

노드의 지정된 네임스페이스 URI와 연결된 접두어를 반환합니다. 접두어를 확인하기 위해 getPrefixForNamespace()는 필요에 따라 XML 계층 구조에서 해당 노드를 검색하고 ns와 일치하는 네임스페이스 URI가 있는 첫 번째 xmlns 선언의 접두어를 반환합니다.

지정된 URI에 할당된 xmlns가 없으면 이 메서드는 null을 반환합니다. 지정된 URI에 할당된 xmlns가 있지만 할당에 연결된 접두어가 없으면 빈 문자열("")이 반환됩니다.

매개 변수

ns:String — 메서드에서 연결된 접두어를 반환할 네임스페이스 URI입니다.

반환값
String — 지정된 네임스페이스와 연결된 접두어입니다.

관련 API 요소

hasChildNodes

()메서드 
public function hasChildNodes():Boolean

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

지정된 XMLNode 객체에 자식 노드가 있는지 여부를 나타냅니다. 이 속성은 지정된 XMLNode 객체에 자식 노드가 있으면 true이고, 그렇지 않으면 false입니다.

반환값
Boolean — 지정한 XMLNode 객체에 자식 노드가 있으면 true를, 그렇지 않으면 false를 반환합니다.

insertBefore

()메서드 
public function insertBefore(node:XMLNode, before:XMLNode):void

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

XML 객체의 자식 목록에서 beforeNode 노드 앞에 새 자식 노드를 삽입합니다. beforeNode 매개 변수를 정의하지 않았거나 이 매개 변수가 null이면 appendChild() 메서드를 사용하여 노드가 추가됩니다. beforeNodemy_xml의 자식이 아니면 노드가 삽입되지 않습니다.

매개 변수

node:XMLNode — 삽입할 XMLNode 객체입니다.
 
before:XMLNodechildNode에 대한 삽입점 앞에 있는 XMLNode 객체입니다.

관련 API 요소

removeNode

()메서드 
public function removeNode():void

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

부모에서 지정된 XML 객체를 제거합니다. 또한 노드의 모든 하위 항목을 삭제합니다.

toString

()메서드 
public function toString():String

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

지정된 XMLNode 객체를 평가하여 노드, 자식 및 특성을 비롯한 XML 구조의 텍스트 표현을 구성한 후 결과를 문자열로 반환합니다.

생성자를 사용하여 만든 최상위 XMLDocument 객체의 경우 XMLDocument.toString() 메서드는 XMLDocument.xmlDecl 속성에 저장된 문서의 XML 선언, XMLDocument.docTypeDecl 속성에 저장된 문서의 DOCTYPE 선언, 객체의 모든 XML 노드에 대한 텍스트 표현을 차례로 출력합니다. XMLDocument.xmlDecl 속성이 null이면 XML 선언이 출력되지 않습니다. 또한 XMLDocument.docTypeDecl 속성이 null이면 DOCTYPE 선언이 출력되지 않습니다.

반환값
String — XMLNode 객체를 나타내는 문자열입니다.

관련 API 요소

XMLDocumentExample.as

다음 예제에서는 XMLDocument 및 XMLNode 클래스를 사용하여 XML 문서를 파싱하고 서식을 지정합니다. 외부 XML 파일을 로드하는 대신 이 예제에서는 최상위 XML 클래스를 사용하여 XML 문서를 만든 다음 파싱합니다.
package {
    import flash.display.Sprite;
    import flash.xml.XMLDocument;
    import flash.xml.XMLNode;
    import flash.xml.XMLNodeType;

    public class XMLDocumentExample extends Sprite {
        public function XMLDocumentExample() {
            var result:XMLDocument = new XMLDocument();
            result.ignoreWhite = true;
            result.parseXML(getXMLString());

            var books:Array = parseBooks(result.firstChild);
            trace("books: \n" + books);
        }

        private function parseBooks(node:XMLNode):Array {
            var books:Array = new Array();

            var kids:Array = node.childNodes;
            for each(var item:XMLNode in kids) {
                parseBook(item, books);
            }

            return books;
        }

        private function parseBook(node:XMLNode, books:Array):void {
            var item:Book = new Book();
            item.setPublisher(node.attributes.publisher);
            item.setName(node.attributes.name);
            books.push(item);
        }

        private function getXMLString():String {
            var list:XML = <books>
                                <book publisher="Addison-Wesley" name="Design Patterns" />
                                <book publisher="Addison-Wesley" name="The Pragmatic Programmer" />
                                <book publisher="Addison-Wesley" name="Test Driven Development" />
                                <book publisher="Addison-Wesley" name="Refactoring to Patterns" />
                                <book publisher="O'Reilly Media" name="The Cathedral & the Bazaar" />
                                <book publisher="O'Reilly Media" name="Unit Test Frameworks" />
                            </books>;
            return list.toXMLString();
        }
    }

}
class Book {
    private var publisher:String;
    private var name:String;

    public function setPublisher(publisher:String):void {
        this.publisher = publisher;
    }

    public function setName(name:String):void {
        this.name = name;
    }

    public function toString():String {
        return "[Book name: " + name + " publisher: " + publisher + "]\n";
    }
}




[ X ]영어로 표시되는 이유
ActionScript 3.0 참조 설명서의 내용이 영어로 나타납니다.

ActionScript 3.0 참조 설명서 중 일부는 전체 언어로 번역되지 않았습니다. 언어 요소가 번역되지 않은 경우 영어로 나타납니다. 예를 들어 ga.controls.HelpBox 클래스는 어떤 언어로도 번역되지 않았습니다. 그러므로 한국어 버전의 참조 설명서에서 ga.controls.HelpBox 클래스는 영어로 나타납니다.