toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-core
/
korlibs.io.serialization.xml
/
Xml
Xml
data
class
Xml
(
val
type
:
Xml.Type
,
val
name
:
String
,
val
attributes
:
Map
<
String
,
String
>
,
val
allChildren
:
List
<
Xml
>
,
val
content
:
String
)
Members
Members & Extensions
Constructors
Xml
Link copied to clipboard
constructor
(
type
:
Xml.Type
,
name
:
String
,
attributes
:
Map
<
String
,
String
>
,
allChildren
:
List
<
Xml
>
,
content
:
String
)
Types
Companion
Link copied to clipboard
object
Companion
Encode
Link copied to clipboard
object
Encode
Entities
Link copied to clipboard
object
Entities
Stream
Link copied to clipboard
object
Stream
Type
Link copied to clipboard
enum
Type
:
Enum
<
Xml.Type
>
Properties
all
Children
Link copied to clipboard
val
allChildren
:
List
<
Xml
>
all
Children
No
Comments
Link copied to clipboard
val
allChildrenNoComments
:
List
<
Xml
>
all
Node
Children
Link copied to clipboard
val
allNodeChildren
:
List
<
Xml
>
attributes
Link copied to clipboard
val
attributes
:
Map
<
String
,
String
>
attributes
LC
Link copied to clipboard
val
attributesLC
:
Map
<
String
,
String
>
attributes
Str
Link copied to clipboard
val
attributesStr
:
String
content
Link copied to clipboard
val
content
:
String
descendants
Link copied to clipboard
val
descendants
:
Sequence
<
Xml
>
inner
Xml
Link copied to clipboard
val
innerXml
:
String
is
Comment
Link copied to clipboard
val
Xml
.
isComment
:
Boolean
is
Node
Link copied to clipboard
val
Xml
.
isNode
:
Boolean
is
Text
Link copied to clipboard
val
Xml
.
isText
:
Boolean
name
Link copied to clipboard
val
name
:
String
name
LC
Link copied to clipboard
val
nameLC
:
String
outer
Xml
Link copied to clipboard
val
outerXml
:
String
text
Link copied to clipboard
val
text
:
String
type
Link copied to clipboard
val
type
:
Xml.Type
Functions
attribute
Link copied to clipboard
fun
attribute
(
name
:
String
)
:
String
?
boolean
Link copied to clipboard
fun
boolean
(
name
:
String
,
defaultValue
:
Boolean
=
false
)
:
Boolean
boolean
Or
Null
Link copied to clipboard
fun
booleanOrNull
(
name
:
String
)
:
Boolean
?
child
Link copied to clipboard
fun
child
(
name
:
String
)
:
Xml
?
children
Link copied to clipboard
fun
children
(
name
:
String
)
:
Iterable
<
Xml
>
child
Text
Link copied to clipboard
fun
childText
(
name
:
String
)
:
String
?
descendants
Link copied to clipboard
fun
Xml
.
descendants
(
name
:
String
)
:
Sequence
<
Xml
>
double
Link copied to clipboard
fun
double
(
name
:
String
,
defaultValue
:
Double
=
0.0
)
:
Double
double
Null
Link copied to clipboard
fun
doubleNull
(
name
:
String
)
:
Double
?
first
Descendant
Link copied to clipboard
fun
Xml
.
firstDescendant
(
name
:
String
)
:
Xml
?
float
Link copied to clipboard
fun
float
(
name
:
String
,
defaultValue
:
Float
=
0.0f
)
:
Float
float
Null
Link copied to clipboard
fun
floatNull
(
name
:
String
)
:
Float
?
get
Link copied to clipboard
operator
fun
get
(
name
:
String
)
:
Iterable
<
Xml
>
get
Double
Link copied to clipboard
fun
getDouble
(
name
:
String
)
:
Double
?
get
Float
Link copied to clipboard
fun
getFloat
(
name
:
String
)
:
Float
?
get
Int
Link copied to clipboard
fun
getInt
(
name
:
String
)
:
Int
?
get
Long
Link copied to clipboard
fun
getLong
(
name
:
String
)
:
Long
?
get
String
Link copied to clipboard
fun
getString
(
name
:
String
)
:
String
?
has
Attribute
Link copied to clipboard
fun
hasAttribute
(
key
:
String
)
:
Boolean
int
Link copied to clipboard
fun
int
(
name
:
String
,
defaultValue
:
Int
=
0
)
:
Int
int
Null
Link copied to clipboard
fun
intNull
(
name
:
String
)
:
Int
?
long
Link copied to clipboard
fun
long
(
name
:
String
,
defaultValue
:
Long
=
0
)
:
Long
long
Null
Link copied to clipboard
fun
longNull
(
name
:
String
)
:
Long
?
str
Link copied to clipboard
fun
str
(
name
:
String
,
defaultValue
:
String
=
""
)
:
String
str
Null
Link copied to clipboard
fun
strNull
(
name
:
String
)
:
String
?
to
Outer
Xml
Indented
Link copied to clipboard
fun
toOuterXmlIndented
(
indenter
:
Indenter
=
Indenter()
)
:
Indenter
to
Outer
Xml
Indented
String
Link copied to clipboard
fun
toOuterXmlIndentedString
(
indenter
:
Indenter
=
Indenter()
)
:
String
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
uint
Link copied to clipboard
fun
uint
(
name
:
String
,
defaultValue
:
UInt
)
:
UInt
with
Extra
Child
Link copied to clipboard
fun
withExtraChild
(
node
:
Xml
)
:
Xml