지원되는 파일 유형(Strings)

.XML - Java 프로퍼티 (Strings)

컨텐츠는 영어 텍스트를 Phrase Language AI를 이용해 기계 번역한 것입니다.

파일 확장명 

.xml

API 확장 

properties_xml

가져오기 

내보내기 

복수형 지원 

아니요

설명 지원 

Java Properties XML은 Java 속성 파일의 XML 대응 형식입니다. Java 속성 파일의 키는 XML의 가입 요소에 대한 속성으로 존재하며, 값은 가입 태그 내부에 중첩된 인라인 Strings입니다. 표준 Java 속성 파일과 비교했을 때, XML 유형은 가입 요소에 더 많은 속성을 추가할 수 있다는 점에서 더 높은 유연성을 제공합니다. 예를 들어, class='번역 가능' 속성이 있는 키만 번역 대상으로 선택하도록 결정할 수 있습니다.

코드 샘플

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
  <entry key="boolean_key">--- true
</entry>
  <entry key="empty_string_translation"/>
  <가입 키="key_with_description">Check it out! 이 키에는 설명이 있습니다! (최소 일부 형식으로)</가입>
  <가입 키="key_with_line-break">This translations contains
a line-break.</가입>
  <가입 키="nested.deeply.key">Wow, this key is nested even deeper.</가입>
  <가입 키="nested.key">This key is nested inside a namespace.</가입>
  <entry key="null_translation"/>
  <가입 one="Only one pluralization found." other="Wow, you have %s pluralizations!" zero="You have no pluralization." 키="pluralized_key"/>
  <entry key="sample_collection">---
- first item
- second item
- third item
</entry>
  <가입 키="simple_key">Simple key, simple message, so simple.</가입>
  <가입 키="unverified_key">This translation is not yet verified and waits for it.</가입> (일부 형식에서는 이 상태도 내보냅니다)</가입>
</properties>
도움이 되었습니까?

Sorry about that! In what way was it not helpful?

The article didn’t address my problem.
I couldn’t understand the article.
The feature doesn’t do what I need.
Other reason.

Note that feedback is provided anonymously so we aren't able to reply to questions.
If you'd like to ask a question, submit a request to our Support team.
Thank you for your feedback.